-
Notifications
You must be signed in to change notification settings - Fork 3
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
Remove TurboJPEG from Cantaloupe (disabling as processor is not enough?) to allow PDF Y coordinate level tiling #60
Comments
See cantaloupe-project/cantaloupe#482 (comment) I will fork and point our docker to a new branch instead |
@DiegoPino fyi, we found that switching to the 6.0.0-noturbojpeg-multiarch container image fixed our grayscale jp2 problem! I did test the 6.0.1-multiarch image, and it does not fix it. We're going to test that noturbojpeg image on a staging site for a while to see if we find any problems. |
@patdunlavey thanks. So turbojpeg is to blame? It is deeply built into Cantaloupe so other than removing it from the build (and disabling it from the output) there is nothing I can do. Did you test https://hub.docker.com/layers/esmero/cantaloupe-s3/6.0.1-multiarch/images/sha256-a0b56db3d40dd7818e5c2fd3e62668af8ef5e045c45f23fe0e5bfb45ad60d0e4?context=explore with JPEG processing being Java2D? |
I did not try that. I will give that a test! |
Thanks for pointing out what I should have noticed would be an obvious change needed in cantaloupe.properties when libjpeg-turbo is removed. But in further testing, what I didn't expect, is that having Update: I'm sorry that I did not answer your question about testing with 6.0.1-multiarch. I tested esmero/cantaloupe-s3/6.0.1-multiarch, with and without the jpg processing being Java2D. For jpg files it makes no difference - they succeed. For jp2 files, it also makes no difference - they fail. |
I should clarify/emphasize that the jp2 files that fail are grayscale. It seems that color jp2s work fine with libjpeg-turbo installed. |
@patdunlavey yes Derek explained your issue with B&W JP2s on slack. Only real way of getting TurboJPEG out of the way is removing the library as I did in https://hub.docker.com/layers/esmero/cantaloupe-s3/6.0.0-noturbojpeg-multiarch/images/sha256-6ab80b37755c4cdb97b093fe5283aaa47c73aa19e8421235ac841ff3c3f7bf67?context=explore Probably the issue is on the writer (which as you detected will not be used if the library is not present)... but also there is this very old ISSUE open which matches the issue you are seeing with greyscale... There is a pull that addressed one of the problems but not the actual intermediate BMP issue with low bit colors. You all sure Kakadu did not work for this? |
Wonder also if you have write permissions to the temporary file system... |
See cantaloupe-project/cantaloupe#482
For some reason (explained there) when turbojpeg is around PDF tiling on Y coordinate is dead. Unmaintained lately, was fixed in 5.02, broke again in 5.04, and of course broken on our 6.x. I will try to fix our Fork's and might also introduce the PDF rendering flag we discussed a few months ago to make rendering more memory efficient
The text was updated successfully, but these errors were encountered: