The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features

See the new Forums

Better quality downscaling of images

Forums » Opera for Windows/Mac/Linux » Desktop wish-list

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

6. December 2011, 18:14:06

50sQuiff

Posts: 5

Better quality downscaling of images

I've noticed that Opera does quite a poor job of downscaling images compared to all other browsers (despite beating them in almost every other department). Images that appear smooth in Chrome appear like little pixellated blobs in some cases.

I think this matters because there are use-cases where a site wants to show a third-party image as a clickable thumbnail without having to process it manually or in PHP.

Has anyone else noticed this?

6. December 2011, 20:12:43

Pesala

Reclining Buddha

Posts: 27343

Originally posted by 50sQuiff:

Has anyone else noticed this?


No. A link would help a lot.
Skins Tips Buttons Backup Security User Scripts Language Forums
Browser JS Changelogs Opera Next Dragonfly Bugs FTP
My Website Opera Review My Fonts IrfanView Search Downloads
Opera 11.64 on Windows 7 64-bit • AMD A10-6800K, 8 Gbyte RAM specs idea
Rules of Conduct and Posting RulesPlease Don't ShoutEditing PostsOpera Config Links

6. December 2011, 21:23:23

50sQuiff

Posts: 5

It's particularly evident on detailed graphics like financial charts. Take this random chart I plucked off Google images: http://www.marketvolume.com/sbv/images/2009/20091113_sp500.gif

Now resize your browser down to 'thumbnail size' and compare the results in IE, FF, Chrome and Opera. All except Opera seem to apply a nice scaling algorithm.

6. December 2011, 21:32:17

Frenzie

Posts: 15571

I haven't been able to spot any substantial difference while playing with the window size. Here's a screenshot where I tried to roughly match the respective window sizes for demonstrative purposes. Left Fx 8.0, right Opera 11.60.

The DnD Sanctuary — a safety net for My Opera's demise.

6. December 2011, 21:36:02

Pesala

Reclining Buddha

Posts: 27343

Make sure Interpolate Images is enabled. It is by default.
Skins Tips Buttons Backup Security User Scripts Language Forums
Browser JS Changelogs Opera Next Dragonfly Bugs FTP
My Website Opera Review My Fonts IrfanView Search Downloads
Opera 11.64 on Windows 7 64-bit • AMD A10-6800K, 8 Gbyte RAM specs idea
Rules of Conduct and Posting RulesPlease Don't ShoutEditing PostsOpera Config Links

6. December 2011, 21:57:24 (edited)

Frenzie

Posts: 15571

It occurs to me that it would be more useful to have that image on a HTML testcase page so the size can be precisely controlled. You should probably do this to make clear precisely what it is that you're seeing.

Something like this would probably suffice. Adjust the pixel value to whatever you need to show the problem as it occurs for you.
<!DOCTYPE html>
<title>Image resizing test</title>
<style>
img{display:block}
img{width:100px}
img+img{width:150px}
img+img+img{width:200px}
img+img+img+img{width:300px}
</style>
<img src="http://www.marketvolume.com/sbv/images/2009/20091113_sp500.gif">
<img src="http://www.marketvolume.com/sbv/images/2009/20091113_sp500.gif">
<img src="http://www.marketvolume.com/sbv/images/2009/20091113_sp500.gif">
<img src="http://www.marketvolume.com/sbv/images/2009/20091113_sp500.gif">

Edit: updated the testcase to be a little more comprehensive. Note that I don't notice any difference worth mentioning.

Run it here: http://files.myopera.com/Frenzie/files/test/image-resize-test.html

This is what it looks like for me.

It seems to me that on the smaller ones there's no real difference while on the 300px-wide screenshot Opera actually has some almost readable text which is completely illegible in Firefox. That'd be quite the opposite of the original claim. Check your settings and post a screenshot of the testcase please (or adjust it to widths that are more appropriate for showing the problem!). smile
The DnD Sanctuary — a safety net for My Opera's demise.

6. December 2011, 22:32:00

50sQuiff

Posts: 5

Thanks for taking the time to create that test.

I get the same results as you in Firefox. I believe that you need to set the image-rendering property get high quality scaling in FF. On the other hand, here are the results from Chrome and IE8 respectively:






6. December 2011, 23:13:24

dagothur

Posts: 9

Bad downscaling is especially noticeable with simple graphics (vectors and solid colours). Here's a quick example:



As you can see the image (4000x4000 original size) is downscaled perfectly in an external image viewer (IrfanView) and in Chrome. But it has jagged outlines in Opera, Firefox and IE.

9. December 2011, 09:41:20

50sQuiff

Posts: 5

Any thoughts on this now there are some good side-by-side screenshots for comparison?

9. December 2011, 10:29:37

Frenzie

Posts: 15571

My primary thought is that in Irfanview you can choose between half a dozen (or even more) different algorithms for rescaling, some of which do well on drawings while others do well on (certain types of) photographs. There's also the matter of how computationally intense certain methods of rescaling are. But yes, for the screenshots as given (for the chart and the hello kitty) Chrome's method clearly looks best.

I added some JS to the testcase to make it slightly easier to play around with http://files.myopera.com/Frenzie/files/test/image-resize-test.html
The DnD Sanctuary — a safety net for My Opera's demise.

15. February 2012, 20:01:07

dagothur

Posts: 9

I'm going to have to bump this since it looks like this problem finally got fixed in Firefox, leaving Opera the only modern browser with such poor downscaling.
https://bugzilla.mozilla.org/show_bug.cgi?id=486918

25. February 2012, 02:18:20

/g/ is strong in here

Forums » Opera for Windows/Mac/Linux » Desktop wish-list