Bad space utilization when using lots of icons
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- tooling
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.
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:

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)
- Dominant language
- JavaScript
- Stars
- 186
- Forks
- 70
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mapbox/spritezero
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
mapbox/spritezero#100 ·
-
Migrate to svgo 2.x Openjira-sync-complete
Difficulty 3/5 1-2 days Newbie friendliness 42/100
mapbox/spritezero#93 ·
-
estimate-2 groomed jira-sync-complete p3
Difficulty 1/5 Under an hour Newbie friendliness 45/100
mapbox/spritezero#88 · 1 comment · 4 reactions ·
-
estimate-2 groomed jira-sync-complete p3
Difficulty 4/5 3-5 days Newbie friendliness 25/100
mapbox/spritezero#84 · 7 comments · 4 reactions ·
-
estimate-2 groomed jira-sync-complete p3
Difficulty 4/5 3-5 days Newbie friendliness 20/100
mapbox/spritezero#82 · 3 reactions ·
All issues in mapbox/spritezero
Similar issues
-
bot:ai-assisted component:compact-js status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
midnightntwrk/midnight-sdk#403 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
DavidAnson/markdownlint-cli2#940 ·
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
githubnext/gh-aw-workshop#3692 ·
-
agent/guide documentation hive/hosted-available-lke648397-260827-5n31
Difficulty 2/5 1-3 hours Newbie friendliness 90/100