JPG Images not displaying in IE and Firefox - html

I'm having a weird problem and it's driving me crazy. The problem is that every jpg image is not displayed in IE and Firefox browsers, while displaying properly in Chrome and Opera. What could be the cause of this problem? In IE when trying to open a jpg image into a new tab, shows me a bunch of strange characters instead of showing me the image, in Mozilla it pops in the "Save image" insted of open it.
Thank you in advance!

You got an JPG which uses CMYK instead of RGB encoding, and Firefox/IE choke on such files. You just need to convert the JPGs to RGB colorspace, or in Photoshop you can save image like " Save for web"

The server is sending images with text/plain MIME type. The "strange characters" are the text form of the image bytes.
On a nginx server, add the following to /etc/nginx/mime.types to make sure it serves jpg files as an image.
types {
image/jpeg jpg;
}
For an Apache server, create an .htaccess file in the same directory as the images. Add the line:
AddType image/jpeg .jpg

I found the problematic plugin, it's called "EWWW Image Optimizer" which converts the JPG images to WebP format. They have an alternative rewriting in case the images are served from a CDN which seems to not be working yet.
Thank you for trying to help me!

Related

Images being found on website load but not loaded correctly (broken)

Have this weird case when my images are being found in sources, linked correctly, src url is okay, but still not being displayed. Other images in that same folder are being loaded and displayed just fine, but my new uploaded images are not. I'm using open cart and upload images via ftp. Permissions are fine 644 like the others. I asked other developers in my team and no one has any clue why is that. Guys tried downlaoding and opening the image on their computer and can't even open it, whereas I'm using MAC and can open the same images on my computer without any problems. Images are saved as .jpg from Photoshop. What's the deal here? Here is how it looks in Mozilla:
This can happen because of corrupted image file. Most likely it is the extension problem of the file. Instead of doing save as in Photoshop, try exporting the image through export settings and choose png or jpg format there. It should work fine now, it worked for me.
Just to make sure on this front - Are you uploading them as .JPG or .jpg? If so, the problem may lie there...
If you link to a file that is .jpg and you put .JPG into the code for the link, the link will not work.
Make sure you're not using uppercase JPG as some servers will not read/detect them, and you will not able to see the pictures until you change the extension to lower case jpg.
Also, make sure the color mode, if saving them from Photoshop directly to jpg, is RGB format. If you use any other color mode, it may not display at all. CMYK files for example will not display correctly.

Did I just create a real animated .JPG file?

It all started with this GIF image I found online: https://media.giphy.com/media/9fbYYzdf6BbQA/giphy.gif
I downloaded it to my computer, which runs Windows 10, put it on my desktop, and edited the file name to change ".gif" to ".jpg." The conversion ended up working fine, and I opened the image saved to my computer in my internet browser, Opera, just to see if it would still animate. It opened a file:// URL, and it showed the jpg normally, animating like a GIF would. So, I decided to see if other people saw the JPG animating like a gif, and on a forum site I am an admin for, I uploaded the image as an attachment to a thread. I made the thread, this was the image file I now had, basically just a normal JPG but animated: s4224.storage.proboards.com/5644224/t/crq4LpxP3rTT6eTORg1o.jpg
When I opened the image in Firefox, and got info on the image, Firefox still thought it was a gif in one area showing the file type, though. Internet Explorer said nothing about it being a GIF when I opened the image in that browser. I then saved the page as a JPG, uploaded it to vgy.me, and still got a .JPG result: vgy.me/dX1KGD.jpg
So, have I created a normal, animated .JPG image? Or is it still just a .GIF file that tricks internet browsers? I remember while I was inspecting the image in Opera that it showed the file/image type as "image/jpeg" as well. Seems to be keeping that metadata!
If you serve a file with a .jpg extension, web servers will normally serve that with a media type of image/jpeg, hence that what will get reported in the browser.
But in practice, image files have very different formats, and it's easy for browsers to inspect the file data itself to decide whether it's a JPG or GIF file and process it accordingly. The process that browsers use for doing this is defined in the MIME Sniffing Standard, which includes the MIME sniffing in an image context algorithm.
So, as Xufox says in their comment, it's still a GIF file regardless of its extension.
https://answers.microsoft.com/en-us/windows/forum/apps_windows_10-photos-winpc/living-images-in-windows-10-photo-app/15736942-9fa7-48eb-bfd4-2152acb582ce
"If you copy the file to a computer and then change the extension to .zip, and open the zip file, you will be able to see the separate jpeg and MP4 files inside. This is what you were asking I assume?"

image problem with dreamweaver

i'm trying to create a newsletter in a single html file, which will be loaded into outlook express and sent out as a mail.
i have like a few images embedded onto the html file but 2 of them cant be loaded for preview in design mode. there is no problem for the rest of the images. those images that cant be loaded has the grey color icon.
the directory for the images are the same. i have copied and pasted the absolute directory for the images that cant load and it doesnt work.
the images loads fine when executed from the html file that was uploaded to the webserver.
edit:
it only loads fine in firefox, and not ie!
i need to get the newsletter out tomorrow, any assistance here?
thanks in advance.
That sounds like a transparent PNG. If you are using an old version of IE, you are out of luck for the HTML email. Try using another type of image (8-bit PNG, PNG with no alpha values, JPEG, GIF). Open the image in your editor and save it as an 8-bit PNG, for example. An 8-bit PNG can only have binary transparency. You may have to redesign the page/email.

jpg image not getting rendered in HTML

I have one jpg image which is getting rendered in FF but not in IE6.
<img src="Image/warn.jpg" alt="aimage" />
Path is correct as this is working on FF. any clue?
Well, the file name would be server-side so it shouldn't matter if you use IE6 or FF or Chrome or Opera. IE6 is probably able to find the file, just not to display it.
With JPG files, there is an option to store it as progressive or as a lossless JPG file. It's likely that this image happens to be in a file format that IE6 just doesn't understand. The lossless JPG format is slightly newer than IE6, I think.
Is it really a jpg image, isn't it e.g. PNG with wrong suffix? Have you tried to use directly the url of the jpeg image?
try to right-click the image and then click properties, in the properties click the security tab, and in the security tab I think you should just add user group.

Images not displaying in WebKit based browsers

For some strange, bizarre reason, my images in my website just will not display on webkit based languages (such as safari and chrome).
This is the image tag
<img src="images/dukkah.jpg" class="imgleft"/>
Not only does it not display in the website, it wont display when accessed directly at http://kilkin.massiveatom.com/kilkin/images/dukkah.jpg
...Why?
Imagemagick reports that this particular image is saved in CMYK colorspace instead of the more standard RGB. Try converting it, it should be more compatible with the webkit rendering engine.
Imagemagick is available for download from http://www.imagemagick.org/script/index.php - it's available for windows and *NIX systems.
I have come across this problem a couple of times.
I think it is because of some problem in the file format.
Try importing the file in some image editor and saving it again. This should get rid of the problem.
I tried the url you gave in FireFox 3 and IE 6, IE 6 won't show it either, firefox works. My guess is that there is something wrong with the jpg file.
Are you JPEG's compressed in Jpeg 2000 Format? If so, there is a known bug:
https://bugs.webkit.org/show_bug.cgi?id=8754
"The image “http://kilkin.massiveatom.com/kilkin/images/dukkah.jpg” cannot be displayed, because it contains errors." and the image itself has some XML-fragment in it. So as others proposed: try to open with an editor and resave it.
It's as stated elsewere a bug in the image.
Irfanview is a very good viewer that will display any image (and other formats as well), is small and free and will also let you adjust, crop or rescale images very easily without heavy programs like photoshop.
I suggest download irfanview and the image, open the image in irfanview and hit CTRL+S and save it over itself. Then upload the image again. Any problem should be solved.
Your image file does not contain image data, it contains html text:
$ curl -s http://kilkin.massiveatom.com/kilkin/images/dukkah.jpg
<html><head></head><body><!-- vbe --></body></html>