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

Different formatting? #32

Open
tablatronix opened this issue May 27, 2020 · 2 comments
Open

Different formatting? #32

tablatronix opened this issue May 27, 2020 · 2 comments

Comments

@tablatronix
Copy link

tablatronix commented May 27, 2020

What do you think about allowing alternative formatting of output ?
eg. binary

I personally use this for icons and stuff for example

const unsigned char bitmap[] PROGMEM = {
  B00000000,B00000000, //  . . . . . . . . . . . . . . . .
  B00000000,B00000000, //  . . . . . . . . . . . . . . . .
  B00000111,B11100000, //  . . . . . # # # # # # . . . . .
  B00011111,B11111000, //  . . . # # # # # # # # # # . . .
  B01110000,B00001110, //  . # # # . . . . . . . . # # # .
  B11100000,B00000111, //  # # # . . . . . . . . . . # # #
  B00000111,B11100000, //  . . . . . # # # # # # . . . . .
  B00011110,B01111000, //  . . . # # # # . . # # # # . . .
  B00011000,B00011000, //  . . . # # . . . . . . # # . . .
@javl
Copy link
Owner

javl commented May 27, 2020

Originally I made image2cpp to generate source files for use with the Adafruit Arduino graphic libraries. It has been extended to some other formats as well but I feel it has become too bloated already. At least in its current form.
I'd like to support more formats, but I think the UI needs updating to accommodate this in such a way that beginners can still easily use the tool, as was the original intent.
So for now I won't be adding more formats, but feel free to add it in and send me a pull request.

@javl
Copy link
Owner

javl commented Mar 29, 2023

Seeing this issue again I'm not sure why I said this would make it more bloated, as it will just add an export option. I don't really have the time (or personal need) to add this, but anyone who is interested is still welcome to send in a pull request.

This would also fix #38, which is a request to format the output such that each line matches the width of the image.

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

No branches or pull requests

2 participants