3

Last time I saw someone asks why Safari on iPad doesn't show some 1920x1440 jpeg with real size & I solved that puzzle. You have to use a progressive-encoded jpeg. However, I find another different problem.

Say, demo.jpg is a progressive-encoded jpeg with 2000x3000 & I upload it to my website. I then access it via url ...demo.jpg, Safari will show it with 2000x3000 size, perfect.

Now I make a most-simple html file named mypic.html. This html has only img tag with src=demo.jpg or src=demo.jpg width=2000 height=3000 inside body. Now I access it via url ...mypic.html. This time Safari show a very small icon of a question mark?

Does anybody know why the latter case fail?

1 Answer 1

1

The problem is about the memory available to Safari. The total amount of RAM is just 256MB, and Safari stops showing the image of much smaller size. You need to scale them down.

3
  • Thanks for reply. But then my question is why Safari allow large jpeg to show its actual size when the url is directlly linked to the jpeg file? Aug 10, 2010 at 17:02
  • @balmydrizzle: Because Apple decided to have a smaller cutoff for images on a webpage than by themselves.
    – Chuck
    Aug 10, 2010 at 17:14
  • Thanks, Chuck! Looks like everything is Apple's code rule, Sigh! Aug 10, 2010 at 17:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.