You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2004/07/30 21:53:51 UTC
DO NOT REPLY [Bug 30417] New: -
ImageReader needs "uniform scale-to-fit" option
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30417>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30417
ImageReader needs "uniform scale-to-fit" option
Summary: ImageReader needs "uniform scale-to-fit" option
Product: Cocoon 2
Version: Current CVS 2.1
Platform: Other
OS/Version: Other
Status: NEW
Severity: Enhancement
Priority: Other
Component: sitemap components
AssignedTo: dev@cocoon.apache.org
ReportedBy: ml@wrinkledog.com
PROBLEM: I need to uniformly (i.e., preserving aspect ratio) scale an image for the best fit within a given
box.
I've prepared a patch to support this. It adds a <fit-uniform> parameter to ImageReader. This option
honors the value of <allow-enlarge>, so if <allow-enlarge> is "false", <fit-uniform> will reduce the
image if necessary to fit it, but never enlarge. The patch also updates the userdocs and includes
corrections there (and in the javadoc annotations).