Skip to content
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

Pin libjpegturbo to 2.x #390

Merged
merged 2 commits into from
Feb 26, 2025
Merged

Pin libjpegturbo to 2.x #390

merged 2 commits into from
Feb 26, 2025

Conversation

joecorall
Copy link
Contributor

@joecorall joecorall commented Feb 24, 2025

Closes #389

The cantaloupe image was installing libjpeg-turbo with apk, which installs libjpeg-turbo 3.x. However, that library wasn't getting loaded in cantaloupe, so cantaloupe was falling back to Java2dProcessor for jpgs

Failed to initialize TurboJpegProcessor (error: Can't load library: /opt/libjpeg-turbo/lib/libturbojpeg.so)

Once the package was installed properly, we discovered cantaloupe does not work with 3.x. With libjpeg-turbo 3.x installed correctly in cantaloupe it was throwing another error

Failed to initialize TurboJpegProcessor (error: 'org.libjpegturbo.turbojpeg.TJScalingFactor[] org.libjpegturbo.turbojpeg.TJ.getScalingFactors()')

So I rolled back to 2.0.2 as the cantaloupe docs recommend and saw the errors went away. Then bumped to the latest version on the 2.x branch: 2.1.5.1 and see cantaloupe loaded it OK

20:14:52.075 [qtp951050903-22] DEBUG e.i.l.c.p.ProcessorFactory - TurboJpegProcessor selected for format JPEG (ManualSelectionStrategy offered TurboJpegProcessor, Java2dProcessor)

@joecorall joecorall marked this pull request as draft February 24, 2025 15:10
@joecorall joecorall changed the title Link to libjpeg properly Fix to libjpeg turbo package name Feb 24, 2025
@joecorall joecorall marked this pull request as ready for review February 24, 2025 15:18
@joecorall joecorall changed the title Fix to libjpeg turbo package name Fix libjpeg turbo package name Feb 24, 2025
@joecorall joecorall marked this pull request as draft February 24, 2025 15:43
@joecorall joecorall changed the title Fix libjpeg turbo package name Pin libjpegturbo to 2.x Feb 24, 2025
@joecorall joecorall marked this pull request as ready for review February 24, 2025 20:18
@aOelschlager aOelschlager merged commit 308f9ea into main Feb 26, 2025
77 checks passed
@aOelschlager aOelschlager deleted the issue-389-libjpeg branch February 26, 2025 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cantaloupe cannot load turobojpeg library
2 participants