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

Error generating thumbnails on Ubuntu 18.04 #192

Closed
dkam opened this issue Feb 20, 2019 · 2 comments
Closed

Error generating thumbnails on Ubuntu 18.04 #192

dkam opened this issue Feb 20, 2019 · 2 comments
Labels

Comments

@dkam
Copy link

dkam commented Feb 20, 2019

I'm unable to generate thumbnails. I suspect there's a dependency not installed.

image = Vips::Image.new_from_file('70b18abf6682076f.jpeg')
image.thumbnail_image
Vips::Error (VipsOperation: class "thumbnail_image" not found)
Vips::Image.thumbnail( '70b18abf6682076f.jpeg', 100, {} )
Vips::Error (VipsOperation: class "thumbnail" not found)

The command line thumbnail action doesn't work either which I suppose is the cause of the issue. The thumbnail binary is installed:

$ vips thumbnail
vips: unknown action "thumbnail"
$ vipsthumbnail -?
Usage:
  vipsthumbnail [OPTION…] - thumbnail generator

Ubuntu 18.04, libvips-tools, libvips-dev ,libtiff5-dev, libjpeg-turbo8-dev, libgsf-1-dev & libglib2.0-dev are installed.

@jcupitt
Copy link
Member

jcupitt commented Feb 20, 2019

Hello @dkam, Ubuntu 18.04 unfortunately bundles a very old libvips (8.4 I think? from 2016),

You'll probably need to build your own, or use something like Docker to run a cross-platform binary. There's a dockerfile here to build 8.7.1 on 18.04 which might help:

https://github.com/jcupitt/docker-builds/tree/master/ruby-vips-libvips-ubuntu18.04

@dkam
Copy link
Author

dkam commented Feb 21, 2019

Awesome thanks very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants