Magento error “getimagesize(): Read error!”

MagentoProbably is explicit or maybe not, but this error is what happen when there is an a file under the media/import directory that as an invalid size, usually you can spot these files because they occupy 0 bytes.

Removing or uploading them again fix the issue.

How can I find the broken files?

With a simple bash command:
find . -size -1 -exec ls -l {} \;

Enjoy!

Advertisements

2 thoughts on “Magento error “getimagesize(): Read error!”

Your opinion is important!

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s