1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] I have read an image file into a `bytes` object. How do I use `PIL.Image.frombytes`...

Discussão em 'Python' iniciado por Stack, Setembro 13, 2025.

  1. Stack

    Stack Membro Participativo

    I'd like to create a PIL image from data read from an image file. I believe I'm supposed to use PIL.Image.frombytes. But it has a size argument. I don't know the size of the image, isn't that supposed to come as part of the image? I don't know the size of the image in advance. How am I supposed to call the function with no size?

    Continue reading...

Compartilhe esta Página