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

Custom libvips with ImageMagick 7 throws Input file contains unsupported image format. But vipsthumbnail handles the same images perfectly. #2303

Closed
haritonstefan opened this issue Jul 21, 2020 · 3 comments

Comments

@haritonstefan
Copy link

I'm trying to build a libvips from source with poppler and image magick, as I need to create .png thumbnails for BMP, PDF, PSD file formats.
After building, vipsthumbnail correctly creates thumbnails for BMP, WEBP, PDF, PSD. But if being used through sharp, it only handles PDF and WEBP, and raises Error: Input file contains unsupported image format for BMP and PSD.
I made this repo to reproduce the described behaviour.

  1. Yes to both.
    image

  2. I've made a repo reproducing the issue: sharp-custom-vips

  3. The expected behavior is to have the thumbnails generated

  4. Provided the link in answer no. 2

  5. Yes, samples are inclued in the repo

  6. npx envinfo --binaries --system

npx: installed 1 in 0.897s

  System:
    OS: Linux 5.4 Alpine Linux
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
    Memory: 367.82 MB / 15.34 GB
    Container: Yes
    Shell: 1.31.1 - /bin/ash
  Binaries:
    Node: 12.18.2 - /usr/local/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.14.5 - /usr/local/bin/npm
@lovell
Copy link
Owner

lovell commented Jul 21, 2020

Support for libvips compiled against ImageMagick 7 was added recently via #2258 and will be in the next release.

@lovell lovell changed the title Custom libvips with ImageMagick throws Input file contains unsupported image format. But vipsthumbnail handles the same images perfectly. Custom libvips with ImageMagick 7 throws Input file contains unsupported image format. But vipsthumbnail handles the same images perfectly. Jul 21, 2020
@lovell lovell added question and removed triage labels Jul 21, 2020
@haritonstefan
Copy link
Author

Thank you @lovell for your answer.

@lovell lovell added this to the v0.26.0 milestone Aug 23, 2020
@lovell
Copy link
Owner

lovell commented Aug 25, 2020

v0.26.0 now available.

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

No branches or pull requests

2 participants