When imagemagick converts a single page PDF to images, it uses a slightly different template for the filename -- [fid].jpg instead of [fid]-[page#].jpg like it does with multi-page PDF's. pdf_to_imagefield isn't accounting for this, and therefore isn't saving single page PDF images properly. Attached is a patch that should fix this.
| Comment | File | Size | Author |
|---|---|---|---|
| pdf_to_imagefield_single_page.patch | 2.09 KB | mcarbone |
Comments
Comment #1
primerg commentedI applied the patch and it worked for me. I haven't experienced error yet. I will report if I do experience anything weird. Thanks for the patch!
Comment #2
2ndmile commentedPatch applied with no problems or adverse side-effects. Thanks!
Comment #3
d.cox commentedThank you, patch works great!
Comment #4
vectoroc commented+1
Comment #5
baronmunchowsen commentedPatch works an absolute charm! +1
Comment #6
tigron commentedIs this patch needed for the Dev ? I did a dry run and received a Hunk #1 failed at 119. Should I revert back to the beta ?
Update: The patch was needed in my case with the dev. I applied the patch manually and everything works now.
Thanks for the patch !!
Comment #7
mcarbone commentedThanks, I should've created the patch on dev originally. In any case, I just ran it on dev and it applied cleanly.
Comment #8
dman commentedProblem is gone in 2.x AFAIK