dimsemenov / PhotoSwipe

JavaScript image gallery for mobile and desktop, modular, framework independent
http://photoswipe.com
MIT License
24.12k stars 3.31k forks source link

Possible to zoom an image without it pixelating? #214

Closed chirpie closed 12 years ago

chirpie commented 12 years ago

This is on an iPad 2, running iOS 5.

I was hoping to place a large image in the viewer (Say, 2,048 pixels in width) and then be able to pinch/zoom in on it x2 with it still being clear. Instead, it's completely blocky, like it's zooming in on the existing pixel data when it was fit to scale.

Is it iOS getting in the way or am I implementing something incorrectly?

Thanks! :-)

chirpie commented 12 years ago

I am an idiot. I forgot, iOS plays nice with .png files and not jpgs.

Using png files instead of jpgs solved the issue. I wish I could use jpgs, that'd really cut down on my file sizes, but this'll work.

I'll close this item. Have a nice day. :-)

mrsln commented 12 years ago

Hi. I couldn't get it work with a large high resolution png, because of Safari memory limit, but I got a nice picture with a progressive jpeg.