Replies: 3 comments 9 replies
-
Hi @xamir82, We try to spend most of our time on the core library and leave packaging to downstream projects. It takes so much effort to support every platform, and for platforms we don't use ourselves, it's hard to find motivation. I know remi has nice libvips RPMs for redhat-style systems, I think there are PPAs around as well. I would build from source myself, it's not difficult. I have some sample dockerfiles here: https://github.com/jcupitt/docker-builds I would pick one that's similar to what you want and tweak it a bit. mozjpeg is slightly tricky: libjpeg is one of the core libraries on most systems, and mozjpeg is not binary compatible with the usual IJG libjpeg. This means you also need to build every dependency that uses libjpeg, either directly or indirectly. Unless you have mozjpeg as a hard requirement, I would stick with the standard (and very good) libjpeg-turbo. |
Beta Was this translation helpful? Give feedback.
-
I made you a dockerfile for mozjpeg: https://github.com/jcupitt/docker-builds/blob/master/libvips-mozjpeg-ubuntu20.04/Dockerfile You'd need to add some more useful dependencies though. |
Beta Was this translation helpful? Give feedback.
-
I'm also curious about this - it would be fantastic if there were a ppa repo for ubuntu at the very least. Any ideas on where we might find something like this, or what might be involved in setting it up? |
Beta Was this translation helpful? Give feedback.
-
Hi!
I'm building an app that uses VIPS's command-line tools under the hood to do some image manipulation, and I'm currently trying to write a Dockerfile for said app. I'll need VIPS alongside the app itself in final image, but I'm struggling with installing VIPS.
I'm using Ubuntu as the base image in the Dockerfile, so I can technically use
apt
to install VIPS but I'd much prefer to have the latest version instead of the usually-outdated versions available in the default Ubuntu repository.My first question would be this: Isn't there some sort of a PPA that provides the latest version of VIPS that users can simply use by doing
add-apt-repsoitory
? Much like the PPAs you'd find for FFmpeg, for example.On my local machine, I've installed VIPS via Homebrew, which has worked perfectly. So the thought of using Homebrew in the Dockerfile did cross my mind, but that would be a pretty unconventional thing to do, I think, (I've never actually seen someone use Homebrew in Docker for this type of use case), so I wanted to ask if you'd recommend that or not?
And I'm not even quite sure how to exactly do it. Should I, for example, install VIPS via Homebrew in one build stage in the Dockerfile and then just copy over the artifacts from
/home/linuxbrew/.linuxbrew
over to the final stage, or what?I've also considered building from source but it's difficult to the build VIPS from source with all the ideal dependencies. For example,
mozjpeg
is apparently recommended but it seems like I would need to build that from source as well, in addition to any other dependencies that might not be available viaapt
. The Homebrew version, on the other hand, seems to have been built with the ideal dependencies already.Also, doesn't VIPS provide static builds somewhere? Once again to use FFmpeg as an example, something like this?
Thank you very much in advance :)
Beta Was this translation helpful? Give feedback.
All reactions