Thumbnails: add HiDpi folders

Nate Graham nate at kde.org
Mon Jun 1 16:23:16 UTC 2020


I like the idea. How would fractional scaling be handled though? If I'm 
using a 1.25x scale (as I am right now), would it generate an @2x 
thumbnail, store that, and scale it down for display? Or would it 
generate an @1.25x scale thumbnail?

Nate



On 5/26/20 12:45 AM, Méven wrote:
> Hello,
> 
> I have been working on adding support for HiDpi thumbnails in KDE 
> frameworks. [1]
> 
> So I'd like to take the high road and update the specification [2]
> 
> The crust of my specification update proposal is as follows :
> 
> Thumbnails generated with high-dpi (usually using a scale factor of 2) 
> should be stored in folder using a suffix a @<scale-factor as int>x 
> suffix, i.e :
> 
> $XDG_CACHE_HOME/thumbnails/large at 2x contains up to 512x512 thumbnails 
> with a scale factor of 2
> $XDG_CACHE_HOME/thumbnails/normal at 2x contains up to 256x256 thumbnails 
> with a scale factor of 2
> 
> An additional attribute Thumb::DevicePixelRatio might be added to store 
> the actual scale factor (as an int).
> 
> The @2x suffix is already used in breeze-icons to symbolize 2x scale 
> ratio resources. [3]
> 
> Once I have some traction with the proposal I will submit a merge 
> request [4].
> 
> [1]: https://phabricator.kde.org/D29397
> [2]: 
> https://specifications.freedesktop.org/thumbnail-spec/thumbnail-spec-latest.html
> [3]: 
> https://invent.kde.org/frameworks/breeze-icons/-/commit/2dcc2b712a88e726f31f3a4732ba2c39c01a2bce
> [4]: 
> https://gitlab.freedesktop.org/xdg/xdg-specs/-/blob/master/thumbnail/thumbnail-spec.sgml
> 
> Cheers,
> 
> --
> Méven Car
> 
> _______________________________________________
> xdg mailing list
> xdg at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/xdg
> 



More information about the xdg mailing list