Jetpack Photon issue with PDF Image Generator
-
Found an issue while evaluating the PDF Image Generator plugin on a site using Jetpack Photon. The idea of that plugin is to auto generate an image of a PDF file when uploaded. In then inserts the image into the post as a link to the PDF file. In my humble opinion WordPress core should do this but that is another thread.
The problem is that this plugin adds [0] into the image file name. For example if the PDF file name is MyReport.pdf then the image file name is MyReport-pdf[0].jpg. I have raised the issue with the plugin author to see if the file name can be changed to something without special characters. Seems like a strange thing to do and it is a pain when working at the command line.
The issue on the Photon side is that it is stripping the [0] when generating the redirected URL to the Photon CDN. This then breaks because the image doesn’t exist at the stripped file name location.
Not sure if this is something that the Jetpack team could address.
I tried to reproduce this without the PDF Image Generator plugin by uploading the an image with [0] at the end of the file name. This failed because the media upload removed the [] so I was left with an image name with 0 at the end. Photon had no problem handling that case.
- The topic ‘Jetpack Photon issue with PDF Image Generator’ is closed to new replies.