[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-3143) PDF (patch included): optimized p:image scaling according to parameters
Norman Richards (JIRA)
jira-events at lists.jboss.org
Mon Jan 19 18:24:04 EST 2009
[ https://jira.jboss.org/jira/browse/JBSEAM-3143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Norman Richards closed JBSEAM-3143.
-----------------------------------
Resolution: Done
I've added a scaleToFit option:
<p:image value="/jboss.jpg" scaleToFit="300 600" />
Does that work for you? I thought that was a little easier to understand. I also thought using height and width and then scale="fit" was another option, but we already have scalePercent. which would probably need to be changed too.
> PDF (patch included): optimized p:image scaling according to parameters
> -----------------------------------------------------------------------
>
> Key: JBSEAM-3143
> URL: https://jira.jboss.org/jira/browse/JBSEAM-3143
> Project: Seam
> Issue Type: Feature Request
> Components: PDF
> Reporter: Ari Takku
> Assignee: Norman Richards
> Priority: Minor
> Fix For: 2.1.2.CR1
>
> Attachments: UIImage.java.optimized_dimension.patch
>
>
> While including images in a PDF-document, there is a need to optimize images for certain area (i.e. width x height). Naturally, this optimization should not ruin the proportional dimensions of the image.
> A feature request: add two parameters, namely maximumWIdth and maximumHeight to p:image.
> One try-out to provide this feature is attached as patch (untested).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list