Re:WebKit Limit on Retina JPG Image Display
by daeken on Thursday March 22, 2012 @09:30AM
(#3739572)
There's also no reason you can't split the image up (e.g. 2048x2048 -> 4x1024x1024) and render it in 4 pieces. Where a hard limitation like that exists, implementations frequently sidestep them.
[ Parent
| on HN ]
Re:WebKit Limit on Retina JPG Image Display
by mistercow on Thursday March 22, 2012 @09:37AM
(#3739597)
If you do this though, make sure you split at JPEG block boundaries. That means that every column should have a width divisible by 8 except the rightmost, and every row should have a height divisible by 8 except the bottom. Otherwise you may see a noticeable seam.
Re:WebKit Limit on Retina JPG Image Display
by jonhohle on Thursday March 22, 2012 @11:03AM
(#3739983)
You can split the JPEGs at bit mapped images on the device before rendering. At that pointed you wouldn't be limited tithe block boundaries anymore.
edit for clarity: don't manipulate images in the JPEG domain.