-
Notifications
You must be signed in to change notification settings - Fork 589
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to add Group3/Group4 TIFFs into Version 1.2.0 #91
Comments
Yes, the reason for this is that images are now read by Apache Sanselan (Commons Imaging), which seems to be unable to read those types of TIFF images. |
I have been able to reproduce this problem with loading .TIFF files with group 3/4, with Apache Sanselan version 0.97-incubator. I have tested Apache Commons Imaging version 1.0-SNAPSHOT, and that was fortunately able to load a .TIFF image with Group 3 correctly. So in time, this will work correctly, once Apache Commons Imaging has a proper maven release to the public maven repo. I have updated the master branch of OpenPDF to use Apache Commons Imaging version 1.0-SNAPSHOT. @jsorah Can you perhaps please try the latest master branch and see if that works correctly? |
@andreasrosdal I pulled the latest master version and ran it on my code and it is working correctly now. Unfortunately I do not have many suggestions on how to improve this - it certainly makes the most sense to offload this piece to another project. I think the downside is that commons-imaging has been "in progress" for many years at this point. Thanks for looking at this so quickly, I just wanted to note the issue and not so much make you feel like you had to fix it :-). |
As described in issue #92, a new release of Commons-Imaging is likely to come very soon, (Closing as a duplicate of #92). |
Hello, when trying to add a Group3 or Group4 TIFF image into a PDF in release 1.2.0, there is an exception thrown by the underlying sanselan library for "unknown compression":
This was working previously in version 1.0.5, I presume because the method by which TIFFs were read has changed.
My initial research indicates that Group3/Group4 support was added to some later version of the sanselan/commons-imaging project, but unsure of how stable these releases are.
The text was updated successfully, but these errors were encountered: