MozillaZine

Automatic Image Resizing Checked In

Sunday January 19th, 2003

David Illsley writes: "Yesterday saw the checkin of automatic image resizing (bug 73322) to the Mozilla trunk. When turned on (it's disabled by default) it shrinks any image that is bigger than the window to make the whole image visible. When this is done, the cursor over the image changes to tell you that if you click, the image is restored to full size. You get the best of both worlds! This currently doesn't have a prefs UI in Phoenix but if you put the appropriate pref in you user.js file, it works just fine. This is one of the few features in IE that I have seen and liked and it's great that Moz now has it too. Thanks guys."

To enable this feature in Mozilla, go to Edit > Preferences > Appearance and check the 'Enable automatic image resizing' box. If you're using Phoenix, add the following line to your prefs.js or user.js file:

user_pref("browser.enable_automatic_image_resizing", true);

Phoenix Help has more information about editing Phoenix configuration files.


#33 Re: Performance/other problems analysis

by leafdigital

Monday January 20th, 2003 6:48 AM

You are replying to this message

Also I forgot to mention - there are at least a couple of newer resampling algorithms that result in better quality results than you'd get from bicubic resampling at least for certain types of image. Bicubic isn't always the best available. (Others include S-spline and Lanczos resampling.) But when you get to this level it probably depends on the different images, whether you're going larger or smaller, and so forth. IMO for browser software, bilinear would be enough to make resized images (esp. screenshots w/ 1-pixel lines or something) not obviously suck.

Example enlargement (bicubic vs. s-spline) <http://www.astro-photogra…hy.com/1100%20comparo.htm>

And re evil patent issues - I'm not aware of any on basic bilinear resampling, it's certainly an algorithm that will be available in open-source tools like Gimp etc.

--sam