Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Optimize image assets #5688

Closed
Closed

Description

@frederoni

Noticed that there are room for improvements in terms of image assets:

  • Compass.png is incorrect scale (2x = 1,8x, 3x = 2,81) (3x downscaling should be handled automatically) which results in half pixels when loading from resources.
  • Logo is positioned on half pixels which prevents pixel perfect rendering.
  • App Thinning cannot slice resources unless they're in an asset catalog. (would save ~12KB on 2x devices) (Cocoapods supports asset catalogs as of version 1.0)

Activity

  1. added
    iOS
    on Jul 14, 2016
  2. friedbunny commented on Jul 14, 2016

    @friedbunny
    Contributor

    Sounds great. Asset catalogs are iOS 7+, so we’re good there.

  3. 1ec5 commented on Jul 14, 2016

    @1ec5
    Contributor

    Logo is positioned on half pixels which prevents pixel perfect rendering.

    We mitigate this with fractional alignment rect insets. It would be great to get these images and their insets into an asset catalog.

  4. added this to the ios-v3.4.0 milestone on Jul 14, 2016
  5. 1ec5 commented on Jul 14, 2016

    @1ec5
    Contributor

    Using an asset catalog would also allow us to replace the existing default_marker.png with default_marker.pdf, which is scalable.

  6. modified the milestones: ios-future, ios-v3.4.0 on Aug 12, 2016
  7. added
    good first issue
    on Oct 18, 2016
  8. 1ec5 commented on May 13, 2017

    @1ec5
    Contributor

    #8703 proposes to replace these PNGs with PDFs.

  9. friedbunny commented on May 23, 2017

    @friedbunny
    Contributor

    Fixed by #9060, will be in v3.6.0-beta.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

good first issueiOS

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions