Skip to content

Pixmap.tobytes, from Bytes to numpy.ndarray #1208

Discussion options

You must be logged in to vote

The simplest thing to do is Pixmap.pil_tobytes(...). This offers you using all Pillow arguments, e.g. creating a bytes object in JPEG format is as simple as pix.pil_tobytes("JPEG"). There you could add all the goodies like "optimize" and what not.

Replies: 4 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@p1-dta
Comment options

Answer selected by p1-dta
Comment options

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

Comment options

You must be logged in to vote
6 replies
@paopjian
Comment options

@JorjMcKie
Comment options

@JorjMcKie
Comment options

@korotaS
Comment options

@jonashaag
Comment options

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