• Resolved Jamas

    (@jamas)


    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.

    https://www.ads-software.com/plugins/jetpack/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Photon does indeed remove arguments from the end of the image URLs, to be able to grab the biggest image it can find.

    Unfortunately that makes it incompatible with the PDF Image Generator plugin right now.

    I’ve subscribed to the other thread you started in the the PDF Image Generator plugin support forums, and I’ll do my best to see how we can work together to fix this once the author replies!

    Thread Starter Jamas

    (@jamas)

    @jeremy

    Thanks for following up. The author of the plugin has made an update, removes the [0] in the file name. I have tested it and it works great with Jetpack Photon now. As always thanks for the great Jetpack support.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Jetpack Photon issue with PDF Image Generator’ is closed to new replies.