JPEG Shows in Firefox but Not IE8

自闭症网瘾萝莉.ら 提交于 2019-12-10 00:55:18

问题


I'm working on a Sidebar Gadget and cannot get my JPEGs to show up (PNGs work). When I try to open the file by itself in IE8 it doesn't work. Firefox, of course, can open it fine.

JPEG Details:

Dimensions: 1080X900 180 dpi Bit depth 24 Color representation: uncalibrated

I've found some things talking about the images being compressed incorrectly (?) but I haven't been able to get it working...

Any clues?


回答1:


Why are you dealing with the image at 180 dpi and not the 72dpi screen resolution? At screen resolution the image will be roughly double that size. Still, the size is manageable for any browser.

When creating a gadget, you should be using PNGs for all the elements of the gadgets. Are you having issues displaying JPEG photos?

Have you looked for the yellow bar at the top of IE that blocks certain suspicious content from being loaded (popups, activex, javascript, etc.)? If it appears, try telling it to "allow".

Lastly, what are you using to compress your images to JPEG?

EDIT: If you want to do batch conversion use the batch converter in photoshop or use the Actions panel to record the conversion process for a single image, then replay the action on an entire folder. Additionally, you can save this action to a "droplet" which is a small application containing the action that you can drop an image or folder on top to.

Alternatively, if you don't fell like learning Actions, XNView is an excellent image viewer and converter that supports something like 160 different image formats and can batch convert and batch rename huge lists of files.




回答2:


IE8 drops support for CMYK JPEG and renders them as the infamous red X without so much as a warning.

If you have ImageMagick:

identify -verbose image.jpg

will show you the image colorspace. If it's CMYK, you can convert to RGB with:

convert broken.jpg -colorspace RGB fixed.jpg



回答3:


If you need to do CMYK to RGB conversion on a whole batch of JPEG-images, this command may be helpful to you:

for i in *.jpg; do convert "$i" -colorspace RGB "$i"; done

PS: If you'd like to see what is going on, just add -verbose:

for i in *.jpg; do convert "$i" -colorspace RGB -verbose "$i"; done



回答4:


I had a similar issue with IE8 not displaying two JPEG images. FF, Safari, Chrome all displayed them without complaint but IE acted as if the files were not there. I have no idea what was going on, but a quick image conversion to gif or png fixed the problem. Just another in a long line of confirmations that IE sucks.




回答5:


Had similar problems with existing images, which will not show up in IE8.

Problem is, as converter42 says: CMYK-Images

Convert them to RGB colorspace and all is good

The Solution with the PNG is not the best, because PNG files can be MUUUCH larger than JPGS.




回答6:


If you are using photoshop for creating the jpgs. Try the below.

  1. Open the file and go to 'Image' menu
  2. Go to Mode
  3. Select RGB
  4. Save and upload to server.

This should work.




回答7:


I fixed this issue by opening the CMYK JPEG file in Windows Paint and then saving as a JPEG, which Paint encodes as RGB by default. Not a great solution because I'm sure that Paint's converter is not as robust as Photoshop's, but this can be a quick fix if the job needs to be done now and there's no access to the tools above.



来源:https://stackoverflow.com/questions/1204288/jpeg-shows-in-firefox-but-not-ie8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!