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

Running vips on openjdk:8-jre-alpine #7

Open
jvence opened this issue Feb 11, 2021 · 3 comments
Open

Running vips on openjdk:8-jre-alpine #7

jvence opened this issue Feb 11, 2021 · 3 comments

Comments

@jvence
Copy link

jvence commented Feb 11, 2021

Any chance this would compile and run on openjdk:8-jre-alpine? Tried modifying the amazonlinux2 and libvips-openjpeg-alpine dockerfile to not avail. Thanks

@jcupitt
Copy link
Owner

jcupitt commented Feb 12, 2021

Sure, for example:

https://github.com/jcupitt/docker-builds/blob/master/libvips-openjdk-alpine/Dockerfile

If you need HEIC support it's a bit harder. You'd probably need to build libheif as well.

@jvence
Copy link
Author

jvence commented Feb 12, 2021

Yes I would need libheif. Can I modify https://github.com/jcupitt/docker-builds/blob/master/libvips-openjdk-alpine/Dockerfile to build libheif? Any pointers would be greatly appreciated.

@jcupitt
Copy link
Owner

jcupitt commented Feb 12, 2021

libheif in turn depends on some other packages, so you'd need to check those first.

HEIC decode uses libde265 and encode uses libx265. They have patent issues, so you'll need to be extremely careful with them.

libheif also supports AVIF, which needs libaom and erm something else I forget. If AVIF is enough, you'll need them too.

This builds libheif and libx265:

https://github.com/jcupitt/docker-builds/blob/master/ruby-vips-amazonlinux/Dockerfile

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

No branches or pull requests

2 participants