mapbox / mapbox/spritezero

Bad space utilization when using lots of icons

Open
#63 3 comments 1 reaction 0 assignees View on GitHub
enhancement estimate-4 groomed jira-sync-complete p3
Dominant language
JavaScript
Stars
186
Forks
70
PR merge metrics
No merged PRs in 30d

Description

Would it be possible to call ShelfPack's `shrink` when generating the image file, as currently we're seeing a large unused area of the sprite:
![image](https://user-images.githubusercontent.com/11031099/58550176-1c22c980-8205-11e9-9b28-45a7af5ea5c2.png)

Whilst the png will compress the area, it is fully loaded as ARGB_8888 on Android wasting a lot of memory (especially on bigger `@2x`)

Contributor guide

Open the contributing guide

Research direction

Start by tracing the image-generation entry point and how ShelfPack is used there; the issue specifically asks whether ShelfPack's shrink operation can run while generating the image file. Done means the generated sprite has less unused area while preserving the icons and reducing the ARGB_8888 memory footprint described for Android.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.