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:
#11 Sampling mode.
by neilcreek <firstname.lastname@example.org>
Sunday January 19th, 2003 10:03 PM
You are replying to this message
The artifacts that result from this kind of scaling depends on the sampling mode to choose which pixels will be kept. I'd like to know what kind of sampling mode is used in Moz's implimentation.
Nearest neighbour - fastest but REALLY ugly Bilinear - slower but looks okay on low contrast images (text and edges still look bad) Bicubic - slowest but looks great! No image artifacts at all, just a little softening of the details. A sharpening filter can be run over the image to clean it up a bit, but that adds more time again.
I personally hope that bicubic sampling is used, for the best looking images. Computers are faster these days, and most imave viewing programs (like ACDSee) can do bicubic scaling pretty quickly. Idealy, the user could choose the scaling mode in the preferences, to suit their computer's speed, perhaps set to nearest neighbour by default.
Is there a problem with copyright or IP for using these different modes?