Hey! I've searched around for this.. but have only found how to make wine fonts smoother with anti-aliasing. But my problem is that Images, when they are resized in Wine applications they won't get resized smoothly, the images gets pixly and does not look good at all.. Good example of this is Spotify. I've asked this question earlier in ubuntu forums.. without any really goo answer. Thread found here http://ubuntuforums.org/showthread.php?t=1414328 Cheers, Artheus
Do you have a screenshot of the issue? Please post it along with more instructions to a bug report on Wine bugzilla. If possible also include a screenshot of how this looks on Windows. I worked on this code and have a patch which might fix this issue if it isn't another Wine bug.
On Wed, 2010-02-24 at 11:48 -0600, artheus wrote:> But my problem is that Images, when they are resized in Wine > applications they won't get resized smoothly, the images gets pixly > and does not look good at all.. Good example of this is Spotify. >I take it you're starting with an image at its natural (1:1) size and trying to enlarge it? If so that's expected: if you double its size each pixel in the image now occupies 4 pixels (a 2x2 block) and this gets noticeable. You can get odd effects by reducing a picture too, though generally reducing its size more or less works because this combines pixels by averaging them. The only programs that can do this well are those like GIMP, Photoshop or most web browsers which rescan the image and transform it into a new set of pixels. Even they pixellate if you blow a picture up much past its natural size, but usually can do a decent job of making it smaller. Bottom line: rescaling an image is a non-trivial exercise and its one that a lot of programs don't do well. This is especially true if you're adjusting the image size by altering the screen resolution and the program is one that was never designed or written to rescale images. Martin
Martin: I am not enlarging the image, as I am totally aware of what you explained there. But thanks anyway. Thunderbird: As I mentioned the program that I've mostly noticed this in is Spotify. I am making the Images smaller.. Here's some screenshots: Tray icon, looks smooth in windows tray [img]http://www.shareimages.com/image.php?35408-q5SWm5aek6Ckl5yX-screenshot.png[/img] Full size, looks good [img]http://www.shareimages.com/image.php?35409-q5SWm5aek6Ckl5yX-screenshot1.png[/img] resize to smaller.. Not good.. Can barely see "Caught in a Life" text. [img]http://www.shareimages.com/image.php?35410-q5SWm5aek6Ckl5yX-screenshot2.png[/img]
Okay! Thanks for that! But.. In Windows this resizing works great! These symptoms are not visible at all in Windows. The images gets resampled, and looks smooth. About the aspect ratio, It's the resizing function which is having trouble keeping that.. As I can only drag horizontally, which resizes the whole image automatically. And I thought that function would at least try to keep the aspects.. But are there any solutions to how I can force resampling of the images? Cheers, Artheus
These days we perform the stretching using XRender but by default it uses nearest neighbor during interpolation. Some days ago I submitted a patch to default to linear which should result in better quality but it wasn't added yet because we want to check what Windows is doing (and in the bug I wanted to fix, the bug was elsewhere).