The VG Resource

Full Version: A small fix for the blur in zoomed images
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
in Firefox 3, of course.

copied from PJ:
Quote:As of the official implementation of Gecko version 1.9.2, there will be a tag implemented that chooses the resizing algorithm used on a page, allowing you to choose between Nearest Neighbor (direct resize, no blur), Bilinear Filtering (low quality blur, which is currently used), or Bicubic Blur (high quality blur, what photoshop uses). Meaning that we'll no longer have blurry pixel art when we resize.

https://developer.mozilla.org/En/CSS/image-rendering

This is the official documentation. It'll be stuck in along with HTML 5, meaning that you can probably try out the new tags in the current Firefox 3.5 beta.

The tags to be added into the CSS styles are as follows:

img[src$=".gif"] { image-rendering: -moz-crisp-edges; -ms-interpolation-mode: nearest-neighbor; }
img[src$=".png"] { image-rendering: -moz-crisp-edges; -ms-interpolation-mode: nearest-neighbor; }

For an invidual image you'd use this code (can be factored into the BBcodes in the forum, and the display for individual images on the site):

<img style="-ms-interpolation-mode:nearest-neighbor" alt="images/WhateverAlt.jpg" src="images/Whatever.jpg"/>

The code will be fully implemented in Firefox 3.5, but as mentioned above, you can try it out now in the beta version.
is it posible to add said lines of code to TSR?
Interesting. This only affects Gecko 1.9.2+, though. Meaning it won't apply to Firefox 3.5 when it comes out soon.

It will only apply to Firefox 3.6 (1.9.2), which is planned for 2010.
(06-15-2009, 11:23 AM)K.D. Wrote: [ -> ]Interesting. This only affects Gecko 1.9.2+, though. Meaning it won't apply to Firefox 3.5 when it comes out soon.

It will only apply to Firefox 3.6 (1.9.2), which is planned for 2010.

Sorry for bumping such an old thread, but it is always better to post in existing ones than making new ones Wink

Anyway, firefox 3.6 is available for alpha testing. You can find all information on how to download it and how to prevent the zoom blur in all images here

Good luck fixing your browser!
(11-04-2009, 07:51 AM)MrLollige Wrote: [ -> ]Anyway, firefox 3.6 is available for alpha testing.

Wrong. Firefox 3.6 is in beta now.

(11-04-2009, 07:51 AM)MrLollige Wrote: [ -> ]Good luck fixing your browser!

Um. What?

tSR doesn't have to do anything with Firefox 3.6 right now. tSR isn't even involved with Firefox development.

You want Mozilla for Firefox related stuff.
Whoops, you are right about the 3.6 in beta now! That was news for me :p
However, in the beta this does not work! I just tested, and I don't know why, but in the alpha version it works just fine. So you still better download that alpha version!

And with fixing your browser I meant making sure that your images don't get blurred anymore.