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

height of each frame needs to be multiple of 8 #1

Open
ghost opened this issue Feb 7, 2016 · 1 comment
Open

height of each frame needs to be multiple of 8 #1

ghost opened this issue Feb 7, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 7, 2016

If you use an image (with or without frames), each frame height has to be an multiple of 8.
This means that if your frame is actually 6 pixels high, you'll have to add 2 empty pixels.
so if the image has 3 frames of 5 pixels high, your image needs to have a total height of 24 and not 15.

The resulting array needs to be in full bytes, so multiple of 8

img2ard could take this in account, by adding the missing bits by itself

if you name the image correct: image_5x6.png img2ard should now the height is 6 but it needs to ad 2 extra empty pixels for the output.

@joshgoebel
Copy link
Owner

Please provide a sample PNG and the output you're seeing.

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

No branches or pull requests

1 participant