Bug 364527 - Unnecessary scaling of small SVG and PNG icons leads to blurry thumbnails
Summary: Unnecessary scaling of small SVG and PNG icons leads to blurry thumbnails
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: view-engine: icons mode (show other bugs)
Version: 16.12.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
: 415334 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-06-20 07:39 UTC by varlesh
Modified: 2020-05-04 17:59 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
see on fullscreen (319.30 KB, image/png)
2018-01-11 04:37 UTC, varlesh
Details
zoom 48px thumbnail (9.49 KB, image/png)
2018-01-11 05:05 UTC, varlesh
Details
compare (813.75 KB, image/png)
2018-09-02 11:02 UTC, varlesh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description varlesh 2016-06-20 07:39:09 UTC
PNG and SVG thumbnails on Dolphin blurred.
Please see screens with compare Nautilus(left)/Dolphin(right):

http://imgur.com/a/ExRCx

Manajro x86_64
KDE 5.6.4
Dolphin 16.04.1


Reproducible: Always
Comment 1 null 2018-01-10 21:33:18 UTC
It took me a while to see what you mean, so here are some steps to see the problem:
- Start KMag, point it at the screenshot.
- Compare accessories-notes.svg.
- Note how Dolphin renders the SVG in such a way that antialiasing on the inner horizontal lines as well as the yellow outline occurs, while in Nautilus the SVG is rendered snapped to the pixel grid, so no antialiasing occurs as probably intended by the icon designer.

Testing with Qt 5.10.0, KF 5.40, Dolphin 17.08.3, the problem is still there. Maybe the problem is caused by Dolphin rendering a different size than the icon is optimized for, e.g. when previewing /usr/share/icons/breeze/apps/64/ with the thumbnail size set to 64px, the blur still occurs.

I see no PNGs in Dolphin in the screenshot, therefore changing the title of the bug for now to only focus on the SVG rendering problem.

Also, Nautilus skips the shadow/frame for SVGs (just like Gwenview) which makes sense, there is Bug 258514 for changing that in Dolphin.
Comment 2 varlesh 2018-01-11 04:36:00 UTC
I'm designer and draw icons (also i'm developer Breeze icon theme too), gui interface and etc. Often need check pixel align and i can't doing this. I need install nautilus or other FM, because Dolphin have frame for all preview thumbnails and thumbnails blurred.

All other FM's not have this frame and i can check pixel align - PCManFM-QT, Nautilus, Pantheon Files, Thunar and etc... It's bug only on Dolphin.
It's very uncomphortable for development.

See again on new screenshot:
- On left Dolphin on right Nautilus
- Original icon size 48px
- All icons have pixel align initially
- Nautilus show prefect pixel align
- Dolphin have frame, therefore icons reduced and blurred (it's good looking on unturned.svg - eyes blurred)
I can't check my work on dolphin, because it's impossible. I must instal another FM and use it.
Comment 3 varlesh 2018-01-11 04:37:11 UTC
Created attachment 109788 [details]
see on fullscreen
Comment 4 varlesh 2018-01-11 04:42:22 UTC
Frame thumbnail on Dolphin have size 48px but icon preview really reduced - it's blurred all elements on icon
Comment 5 varlesh 2018-01-11 04:47:37 UTC
I think need disable or remo this frame thumbnail. It's really not needed and spoil/change original image on preview.
Comment 6 varlesh 2018-01-11 04:52:27 UTC
it's happened not for SVG only. PNG's and other images blurred too, because frame/shadow used for that.
Comment 7 varlesh 2018-01-11 05:04:46 UTC
Also frame have wrong area size - it's 40px (without shadow). I think it's need check for other sizes too. Maybe it's help you.
Comment 8 varlesh 2018-01-11 05:05:57 UTC
Created attachment 109790 [details]
zoom 48px thumbnail
Comment 9 null 2018-01-11 22:21:59 UTC
Thanks for your additional comments. I suspect the blurs for SVG and PNG are a bit different each, caused by the icon shown too small (smaller area to render the SVG in vs. smaller area to downscale a prerendered PNG to), but nevertheless I adapted the bug title slightly.

This should be solved in two steps: Remove the shadow in Bug 258514, after that check whether any additional steps are necessary for your bug.

FWIW, Gwenview does not have shadows, but probably won't be good enough for you either due to lack of a precise thumbnail size control.
Comment 10 varlesh 2018-09-02 11:01:56 UTC
Any news?
I can't worked on Dolphin, i can't check pixel align -  all previews rendered with preview mask (with border and shadow). Why?
Other apps not have yet. See example PCManFM-Qt (Qt5), Krusader (Qt5) or NautiLus (GTK3). All file managers rendered original image without mask, borders, shadows and etc...

Why you don't want fix that?????????????
Comment 11 varlesh 2018-09-02 11:02:46 UTC
Created attachment 114741 [details]
compare
Comment 12 Adrian 2019-12-18 22:10:31 UTC
*** Bug 415334 has been marked as a duplicate of this bug. ***