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

Add Wbmp & Otb Encoding / Decoding #2

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

Conversation

reshane
Copy link

@reshane reshane commented Feb 6, 2025

Related to Issue #1

Switched the image patch to my own fork to add the Wbmp & Otb formats to the image::ImageFormat enum so the hooks would register. Not exactly sure the best course of action to add the formats - whether to open a PR for the formats now, wait for the decoding-hooks branch to be merged, etc. guidance appreciated 😃

Note that OTA Bitmap Wikipedia article differs from ImageMagick implementation for the format (ImageMagick splits rows at bytes - padding with 0s, while Wikipedia explicitly claims this is not the case). (OTA Bitmap Wiki, ImageMagick implementation)
I have gone with an implementation consistent with ImageMagick, but the implementation consistent with the Wikipedia is easier, so if there is any evidence that the latter is valid I would be happy to switch it back.

I had some trouble finding otb / wbmp images with explicit licenses, so I drew the test images which is why there is no source listed for them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant