Skip to content
  • Méven Car's avatar
    PreviewJob : Support for DeviceRatioPixel · ee3d4e0e
    Méven Car authored and David Faure's avatar David Faure committed
    Summary:
    Allow users of KPreviewJob to request a devicePixelRatio for generated thumbnails.
    The result image is not guaranteed to have this ratio, and users should paint it accordingly.
    
    Adds a convenient `setDefaultDevicePixelRatio` to allow an application to set its device pixel ratio preferred with a one liner patch.
    
    The images using a pixel ratio of 2 are stored in cache in ~/.cache/thumbnails/large for 256x256 (i.e 128128@ logical size) and ~/.cache/thumbnails/x-large for 512x512 (i.e 256x256 logical size) and xx-large for 1024x1024 (i.e 512x512 logical size)
    
    Follows xdg thumbnail specs 0.9 https://specifications.freedesktop.org/thumbnail-spec/thumbnail-spec-latest.html
    ee3d4e0e
Loading