Why doesn't Safari on iPad show a large jpeg wrapped in an IMG tag?

The last time I saw someone asking why Safari on the iPad does not show some 1920x1440 jpeg with real size, and I solved this riddle. You should use progressive jpeg coding . However, I find another problem.

Let's say demo.jpg is progressive jpeg coding from 2000x3000, and I upload it to my site. Then I access it via url ... demo.jpg, Safari will show it with a size of 2000x3000, perfect.

Now I am creating the simplest html file called mypic.html. This html has only an img tag with src = demo.jpg or src = demo.jpg width = 2000 height = 3000 inside the body. Now I am accessing it through url ... mypic.html. This time Safari shows a very small question mark icon?

Does anyone know why the last case fails?

+3
source share
1 answer

The problem is that memory is available to Safari. The total amount of RAM is only 256 MB, and Safari stops showing the image much smaller. You need to reduce them.

+1
source

Source: https://habr.com/ru/post/1758956/


All Articles