Outdated libvips in Ruby env

I have a Rails app that uses libvips for image processing. It has no problems locally, but it fails in production on images that use the CMYK color space. :face_with_monocle: I鈥檝e traced the cause to an issue that鈥檚 been fixed since libvips 8.8.0. :nerd_face:

The version Render provides for the Ruby env is 8.7.4. :sob:

According to libvips/ChangeLog at master 路 libvips/libvips 路 GitHub, 8.7.4 was released back in April 2019, and the most recent version is 8.13.4, released a few months ago.

I saw in another thread that one 鈥渇ix鈥 is to switch to a Docker build and specify what I need that way. I鈥檓 not a Docker expert, and I really don鈥檛 want to have to deal with switching over to a Docker-based build just to get an updated version of libvips. :face_exhaling: I鈥檝e got so much work to do, and want to show my client visible progress, not explain to them that we are going to lose however many days to me changing how our production build works.

Is there any other way? Like specifying library versions in the render.yaml or something?

Thanks,
Jim

Hi Jim,

Thanks for reaching out.

As I mentioned in the other post you commented on, I have raised a ticket internally for libvips to be updated on our native environment, but I don鈥檛 have any ETA on it being completed. I鈥檒l see if I can get an update.

Native environments don鈥檛 have sudo access to use apt, so currently, the only option to define a specific package yourself would be by taking the Docker route.

Kind regards

Alan

Thanks for the reply, @al_ps

Y鈥檃ll got any that starter Dockerfile that replicates your current ruby env which I could tweak from there?

Need It

I鈥檓 afraid it鈥檚 not quite that simple.

But you should be able to get a lot of the way with an official Ruby Docker image and apt-get, e.g.

FROM ruby:3.1-bullseyeRUN apt-get update \ && apt-get install -y --no-install-recommends \ libvips-dev \ libvips-tools \ nodejs ...

Alan

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.