robhagemans / monobit

Tools for working with monochrome bitmap fonts
MIT License
208 stars 11 forks source link

int object is not iterable #11

Closed Guigui220D closed 2 years ago

Guigui220D commented 2 years ago

Trying to convert from a png image, I installed pillow. Running with latest python3, i get this error: image

Guigui220D commented 2 years ago

image

here is the debug log

robhagemans commented 2 years ago

Thanks, what's happening there is that it assumes the PNG has colours in RGB format. Will be fixed in some later version. For now you could convert the PNG to use RGB colours and run through monobit

On Mon, 26 Sep 2022, 20:32 Guillaume Derex, @.***> wrote:

[image: image] https://user-images.githubusercontent.com/24529384/192363701-468535e0-b2dc-4c72-b4e5-050d9ab4ccfb.png

here is the debug log

— Reply to this email directly, view it on GitHub https://github.com/robhagemans/monobit/issues/11#issuecomment-1258520585, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB25REXUKEVCHVCMV6E7TITWAH23JANCNFSM6AAAAAAQWDHTNQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Guigui220D commented 2 years ago

Aah iirc this picture had 1bpp which i thought was the good thing to do for a bitmap font Thanks!

robhagemans commented 2 years ago

Fixed with 738953c