1

Just wondering if it's possible to automatically create a .jpg file from a .pdf file when uploading.

I've been seeing a bunch ImageMagick suggestions, but my brain is too tired to grasp it tonight. I guess I'm wondering if there is any other solutions to get a scaled .jpg from a .pdf on upload.

3

If you need the JPGs for rendering on a page the Thumber add-on from ElectricPutty should do exactly what you need:

{exp:thumber:create src='/uploads/documents/yourfile.pdf' page='2' extension='jpg' height='250' class='awesome' title='Click to download' link='yes'}
| improve this answer | |
  • But be aware that you need ImageMagick (is most likely already installed) and Ghostscript on the server. – Dennis Frank Jan 22 '13 at 22:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.