• I use this plugin frequently to replace pdf files on our website. This part of the plugin works perfectly. However I did notice that with each new pdf that is uploaded to replace an existing one, an entirely new set of jpg image files are created (full size, thumbnail, medium, large). The image files from the replaced pdf file remains on the server and the new ones are created with a -# appended to the filenames. Is there a way for this plugin to replace the associated image files as well as the pdf file? Otherwise my web server is going to get cluttered with lots of unused image files. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • I’m not sure what you mean – uploading a PDF should not render a JPG anywhere. Could you clarify?

    Thread Starter jbarlowga

    (@jbarlowga)

    Creating image representations of pdf uploads was added in WordPress 4.7.

    https://make.ww.wp.xz.cn/core/2016/11/15/enhanced-pdf-support-4-7/

    With each upload to replace a current file with the Enable Media Replace plugin, a new set of images is created and leaves behind the previous set(s).

    Plugin Author ShortPixel

    (@shortpixel)

    Hi, ShortPixel recently took over Enable Media Replace plugin. We need to check why the plugin is not deleting the thumbnails before replacing, also for PDF. I put this on our todo list and will let you know as soon as I have something (probably in the next two to four weeks)

    I’d also appreciate having the thumbnail images be regenerated when replacing a PDF file. 🙂

    Thanks! Looking forward to this feature.

    Thread Starter jbarlowga

    (@jbarlowga)

    Any update on this feature?

    Thread Starter jbarlowga

    (@jbarlowga)

    I just noticed this had been marked resolved, but the issue still exists. Every time a pdf file is replaced, a new set of images is created. Can the new set of images replace the existing set of images, just as the new pdf file replaces the existing pdf file?

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘PDF Image Previews’ is closed to new replies.