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

Stefan Hegny commented on FOP-2849:
-----------------------------------

The issue seems to be the value "1" thats inside these BMPs at the horizontal / 
vertical resolution. Placing 0 at that value makes the images well-behaved. 
Probably not fop error at all, sorry!

> Scaling of Grayscale Windows BMP
> --------------------------------
>
>                 Key: FOP-2849
>                 URL: https://issues.apache.org/jira/browse/FOP-2849
>             Project: FOP
>          Issue Type: Bug
>          Components: image/unqualified
>    Affects Versions: 2.2
>         Environment: Linux
>            Reporter: Stefan Hegny
>            Priority: Minor
>         Attachments: big.bmp, big.fo
>
>
> I'm using external-graphics with grayscale 8bit Windows BMP Files. Whenever 
> the Image has to be scaled down, in the pdf it is flipped horizontally, 
> acutally not keeping its aspect ratio, and the grayscales look dim. See 
> big.fo. Sometimes when using imagemagic convert (-depth 8 -colors 256 -type 
> grayscale) I also managed to get it flipped vertically and goes out of the 
> block at the top. 
> Extracting the image with pdfimages gives a ppm, its aspect rafio is correct  
> but still the colours are dim.
> FO Files and sample BMPs are attached and here: 
> [https://www.magentacloud.de/share/6x.svy3pz9]
> The small works ok, the big shows the described effect with FOP 2.2 - Im not 
> sure if the issue is FOP of the Java Image IO, please advise
> Thanks & regards, Stefan



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to