Support » Plugin: EWWW Image Optimizer » PDF Error

  • Resolved John168

    (@john168)


    Love the plug-in but it is throwing an error on PDF files. Not a big problem but it is disturbing to my users when I have debug mode turned on. I am getting

    Notice: getimagesize() [function.getimagesize]: Read error! in /mysite/wp-content/plugins/ewww-image-optimizer/ewww-image-optimizer.php on line 1306. Unsupported file type

    It seems to show this error only on the latest PDF file. The others show “Unsupported file type” on the media library list, as I would expect.

    Thanks

    http://wordpress.org/extend/plugins/ewww-image-optimizer/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    Odd, it should show on every PDF while you have DEBUG turned on (it does for me). That said, it seems there are other issues with unsupported files in DEBUG mode that I’ve never paid attention to. I’ll see if those can’t get squeezed into the next release (I’m waiting on WP 3.5 before I release anyway).

    Plugin Author nosilver4u

    (@nosilver4u)

    Ah, it seems the real issue is that pdfs have no ‘metadata’ so far as WordPress is concerned, so prior to activating the plugin, everything is peachy. After optimization, we store an empty filename in the meta, which tricks it into trying to run getimagesize when it shouldn’t be.
    I’ve fixed the issue with storing empty filenames, but now there’s cleanup to be done…

    Great. I will watch for the update.

    Plugin Author nosilver4u

    (@nosilver4u)

    update released today

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PDF Error’ is closed to new replies.