Header RSS Feed
 
If you only want to see the articles of a certain category, please click on the desired category below:
ALL Android Backup BSD Database Hacks Hardware Internet Linux Mail MySQL Monitoring Network Personal PHP Proxy Shell Solaris Unix Virtualization VMware Windows Wyse

Firefox displays: The image cannot be displayed because it contains errors
Monday - Sep 8th 2014 - by - (1 comments)

Recently I was contacted by a user that on his website his uploaded images cannot be seen. According to the user, this must of course be an issue on the server... (arr!)

When I manually loaded the picture, I was a little bit surprised by the error message shown by Firefox:

The image "http://example.com/logo.png" cannot be displayed because it contains errors.

The image cannot be displayed because it contains errors

By testing the same URL on Chrome, the "classical" image not found/image broken image appeared:

broken image in chrome

To proof that its not a server issue, I uploaded a png picture myself and opened the URL. Which worked fine, of course. 

By using the "Page Info" on Firefox, additional information was shown about the images. First the working one, uploaded by me:

Page Info working image 

And then the non-working image:

Info image not working

Very interesting here are the mentioned dimensions. So there's definitely something wrong.

I told the user that there must have been either a FTP transfer error or that the pictures were not properly created. At the end it turned out, that the user transferred the images in ASCII mode instead of BINARY mode...

Yes, it's always the server! :-)

 

Add a comment

Show form to leave a comment

Comments (newest first):

jim wrote on Jul 7th, 2017:
Thanks! Wasted a few hours before reading your article.


Go to Homepage home
Linux Howtos how to's
Monitoring Plugins monitoring plugins
Links links

Valid HTML 4.01 Transitional
Valid CSS!
[Valid RSS]

6938 Days
until Death of Computers
Why?