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

Adam Nichols commented on PDFBOX-927:
-------------------------------------

I don't know much about image processing, but could this be related to 
PDFBOX-942?  Does the newly released PDFBox 1.5.0 have the same issue if you 
try the sample code from that issue?  Based on your comparison screenshot it 
looks like it may just be using too much compression and I noticed that 
1___Im0-1.jpg is a jpg.

Also, I'm looking at the API for PDXObjectImage and it looks like there is a 
getRGBImage() method.  Have you tried seeing if you can get a cleaner image 
from that?  Also, is there any patterns between the image quality and 
getBitsPerComponent()/getColorSpace()/getSuffix()?  For example does it only 
happen with JPGs?  All JPGs, or just some of them?

I've only dealt with one other image problem in PDFBox and that was related to 
encryption, so I'm no expert, but hopefully this helps at least point you in 
the right direction.  Also, feel free to look into the PDFBox code to see how 
it works, it's not as scary as you might imagine. :-)

> Problem on writing some kind of images to a File in filesystem
> --------------------------------------------------------------
>
>                 Key: PDFBOX-927
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-927
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.2.1, 1.3.1, 1.4.0
>         Environment: JDK5 / 6
>            Reporter: JOSE FREITAS
>            Priority: Minor
>         Attachments: 1___Im0-1.jpg, ExtractImages.java, comparison.png, test 
> with pdindexed.pdf
>
>
> I have an image object which is an instance of PDXObjectImage.
> If it has PDIndexed as colorspace.
>  
> "image.getColorSpace() instanceof PDIndexed"
> the image is wrongly rendered.
> Is there any known issue with this colorSpace?
> I think the problem could be at:
> image.write2file(...) or 
> image.write2OutputStream(...);

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to