weserv / images

Source code of wsrv.nl (formerly images.weserv.nl), to be used on your own server(s).
https://wsrv.nl/
BSD 3-Clause "New" or "Revised" License
1.84k stars 188 forks source link

PDF's no longer accepted #396

Closed jere-co closed 8 months ago

jere-co commented 8 months ago

I've been using this heavily to generate preview images of PDF documents, which worked great until recently.

Earlier, this worked perfectly:

`https://wsrv.nl/?url=${URL_TO_PDF_DOCUMENT}&output=jpg`;

But now is giving:

{"status":"error","code":404,"message":"Invalid or unsupported image format. Is it a valid image?"}

I couldn't find any reason why this no longer works. Any thoughts?

kleisauke commented 8 months ago

This seems to be caused by a configuration error after the update to libvips 8.15.0-rc1 (see https://github.com/weserv/rpms/commit/c9c2a9422096c213ceafe23c962d4f1e6aec13dd), which prevented the dynamic modules required for this format from being loaded. It should be fixed now.

I've modified our integration tests to prevent this from happening again, thanks for reporting this!

jere-co commented 8 months ago

Awesome! Thank you for the quick fix!