[ 
https://issues.apache.org/jira/browse/FOP-2398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14070179#comment-14070179
 ] 

Luis Bernardo commented on FOP-2398:
------------------------------------

I need to check the image but the intrinsic resolution can be set in the (old) 
APP0 segment or in the (newer) APP1 (EXIF) segment. The code was ignoring the 
APP1 segment which was causing problems with newer images that do not have the 
APP0 segment. The current code can handle both APP0 and APP1 and the first 
found is the one used. Now, images can have both segments, and can have 
different intrinsic resolutions in the different segments. If your image has 
APP1 before APP0 and the intrinsic resolution there is 72 that would explain 
the issue you see.

> [AFP] Image written as having 72 DPI instead of its intrinstic resolution
> -------------------------------------------------------------------------
>
>                 Key: FOP-2398
>                 URL: https://issues.apache.org/jira/browse/FOP-2398
>             Project: Fop
>          Issue Type: Bug
>          Components: renderer/afp
>    Affects Versions: trunk
>            Reporter: Seifeddine Dridi
>            Priority: Minor
>         Attachments: afp-config.xml, bug-image-dpi.afp, bug-image-dpi.fo, 
> image.jpg
>
>
> Prior to a change made in XMLGraphicsCommons 
> (https://issues.apache.org/jira/browse/XGC-87), rendering the attached FO to 
> AFP always results in an image with its original resolution. Now the image is 
> written with the default resolution of 72 DPI.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to