Thumbnails: add HiDpi folders

Nate Graham nate at kde.org
Sat Jun 6 21:05:43 UTC 2020



On 6/5/20 11:24 PM, Méven wrote:
>     Date: Mon, 1 Jun 2020 10:23:16 -0600
>     From: Nate Graham <nate at kde.org <mailto:nate at kde.org>>
>     To: xdg at lists.freedesktop.org <mailto:xdg at lists.freedesktop.org>
>     Subject: Re: Thumbnails: add HiDpi folders
>     Message-ID: <7a961085-09bc-2079-6918-2acd70e21ec5 at kde.org
>     <mailto:7a961085-09bc-2079-6918-2acd70e21ec5 at kde.org>>
>     Content-Type: text/plain; charset=utf-8; format=flowed
> 
>     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?
> 
> 
> Scale would be rounded up , that means 1.25 => 2, 3.25 => 4.
> Under X, the application will have to down scale while painting the 
> thumbnails.
> Under Wayland, with fractional scaling, application paint at the scale 
> ceil up,(1.25=> 2) and the fact that the scale factor is not an integer 
> is non of their concern, the compositor downscales on the GPU the 
> application then.

Sounds good to me, then! 👍👍👍👍

Nate



More information about the xdg mailing list