Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icons: Make PNG/XPM transparent, hi-res #30

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on May 22, 2024

  1. Icons: Make PNG/XPM transparent, hi-res

    Extend the ImageMagick `convert` commands for generating icon bitmaps:
    - Add `-background none`, to render with background transparency.
    - Add `-density 300x300`, to render larger sizes at full resolution.
    
    Because the SVG's internal coordinate system is only sized for
    64x64 pixels, ImageMagick will render at that size and then scale
    the _bitmap_ up, when outputting larger image sizes. Increasing
    the DPI using `-density` allows it to upscale the SVG vectors at
    full resolution.
    
    Signed-off-by: FeRD (Frank Dana) <[email protected]>
    ferdnyc committed May 22, 2024
    Configuration menu
    Copy the full SHA
    7d59e2b View commit details
    Browse the repository at this point in the history
  2. Reset icon DPI to 96x96 (screen-res)

    Output the icon bitmap images at standard 96 DPI, not the 300 DPI we
    temporarily scaled the coordinate system to when rasterizing the SVG.
    
    Signed-off-by: FeRD (Frank Dana) <[email protected]>
    ferdnyc committed May 22, 2024
    Configuration menu
    Copy the full SHA
    d118413 View commit details
    Browse the repository at this point in the history