Skip to content

how to convert PNG image to C array #311

Answered by ciniml
patricegamakuoh asked this question in Q&A
Discussion options

You must be logged in to vote

You can use xxd command if you are using Linux or WSL on Windows.

$ xxd -i foo.png foo.h

The file foo.h contains C style array which represents the contents of foo.png

Replies: 3 comments 3 replies

Comment options

ciniml
Nov 15, 2022
Collaborator Sponsor

You must be logged in to vote
2 replies
@patricegamakuoh
Comment options

@tobozo
Comment options

tobozo Nov 15, 2022
Collaborator

Answer selected by patricegamakuoh
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@patricegamakuoh
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants