Convert some graphics to 2 bpp Grayscale#143
Merged
Rangi42 merged 1 commit intopret:masterfrom Dec 19, 2025
Merged
Conversation
Rangi42
approved these changes
Dec 19, 2025
Member
Rangi42
left a comment
There was a problem hiding this comment.
% find gfx -name '*.png' -exec file {} \+ | \grep -v ', [12]-bit grayscale, non-interlaced' | sort
gfx/diploma/diploma.png: PNG image data, 128 x 64, 8-bit/color RGBA, non-interlaced
gfx/intro/clouds.png: PNG image data, 16 x 32, 8-bit/color RGBA, non-interlaced
gfx/pikachu/unknown_e40cc.png: PNG image data, 40 x 8, 8-bit grayscale, non-interlaced
gfx/pikachu/unknown_e41d2.png: PNG image data, 40 x 16, 8-bit grayscale, non-interlaced
gfx/pikachu/unknown_e444b.png: PNG image data, 40 x 32, 8-bit grayscale, non-interlaced
gfx/pikachu/unknown_e4a99.png: PNG image data, 40 x 16, 8-bit grayscale, non-interlaced
gfx/pokemon/front/electrode.png: PNG image data, 40 x 40, 8-bit/color RGB, non-interlaced
gfx/sprites/bulbasaur.png: PNG image data, 16 x 48, 8-bit/color RGBA, non-interlaced
gfx/sprites/chansey.png: PNG image data, 16 x 48, 8-bit/color RGBA, non-interlaced
gfx/sprites/clefairy.png: PNG image data, 16 x 48, 8-bit/color RGBA, non-interlaced
gfx/sprites/james.png: PNG image data, 16 x 96, 8-bit/color RGBA, non-interlaced
gfx/sprites/jessie.png: PNG image data, 16 x 96, 8-bit/color RGBA, non-interlaced
gfx/sprites/jigglypuff.png: PNG image data, 16 x 48, 8-bit/color RGBA, non-interlaced
gfx/sprites/oddish.png: PNG image data, 16 x 48, 8-bit/color RGBA, non-interlaced
gfx/sprites/officer_jenny.png: PNG image data, 16 x 96, 8-bit/color RGBA, non-interlaced
gfx/sprites/pikachu.png: PNG image data, 16 x 96, 8-bit/color RGBA, non-interlaced
gfx/sprites/question_mark.png: PNG image data, 16 x 16, 8-bit/color RGBA, non-interlaced
gfx/sprites/sandshrew.png: PNG image data, 16 x 48, 8-bit/color RGBA, non-interlaced
gfx/sprites/surfing_pikachu.png: PNG image data, 16 x 96, 8-bit/color RGBA, non-interlaced
gfx/title/pokemon_logo_japan.png: PNG image data, 128 x 48, 8-bit/color RGBA, non-interlacedNice catch! Note that https://github.com/pret/gb-asm-tools has palfix.py which can also help with this sort of thing.
Contributor
Author
|
Wow, I didn't know you could |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some of the gifs in gfx/ use RGB or GRAY 8 bpp encoding, some also with alpha. This changes them all to 2 bpp GRAY.
Most of the files deflate in size except
gfx/pikachu/unknown_e40cc.png, which was previously 8 bpp gray, and probably used a better compression algorithm. I used ImageMagick to output the files.