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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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).

Reply via email to