Title: PDF Error
Last modified: August 20, 2016

---

# PDF Error

 *  Resolved [John168](https://wordpress.org/support/users/john168/)
 * (@john168)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/pdf-error/)
 * 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/](http://wordpress.org/extend/plugins/ewww-image-optimizer/)

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

 *  Plugin Author [nosilver4u](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/pdf-error/#post-3247868)
 * 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](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/pdf-error/#post-3247869)
 * 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…
 *  Thread Starter [John168](https://wordpress.org/support/users/john168/)
 * (@john168)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/pdf-error/#post-3247872)
 * Great. I will watch for the update.
 *  Plugin Author [nosilver4u](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/pdf-error/#post-3247932)
 * update released today

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

The topic ‘PDF Error’ is closed to new replies.

 * ![](https://ps.w.org/ewww-image-optimizer/assets/icon-256x256.png?rev=1582276)
 * [EWWW Image Optimizer](https://wordpress.org/plugins/ewww-image-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ewww-image-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ewww-image-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/ewww-image-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ewww-image-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ewww-image-optimizer/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [nosilver4u](https://wordpress.org/support/users/nosilver4u/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/pdf-error/#post-3247932)
 * Status: resolved