Skip to content

display.drawImage Fails on Transfer-Encoding: chunked HTTP Requests  #149

@leoherzog

Description

@leoherzog

I have an Inkplate 10 project that's using the sample Image_Frame code, but to pull a thumbnail image from Google Slides instead of Unsplash. Attached is an example of the generated image:

Slide 1

Example URL that I'm dynamically fetching via Apps Script and using in drawImage() (not sure how long this will remain valid):

https://lh5.googleusercontent.com/hdLLrW3Lo5Z6qs8NEZfgf8GvnWElxnPadUUVbWKm3Qs9e7RNqTS2xR98vIFaLqUE8qPeXEzzP-r9C3MRsZpoQIJ5nO5-ndkDlvGBZypsL3fRsqtK_TTifinKQwVkT3zj0uKcP2c6ahqVTO2gd7YsWZoZIy_5i60QOkuR_cg7O5nuemI9puELDlET9TUElSCxZMRLMNfpYCLjyNzp02RJstshrgrnKc1qSk4iolO_jjIURspTPSo=s1200

When I call Serial.println(display.drawImage(url, display.PNG, 0, 0));, a 0 is printed, indicating that there was an error. How do I determine what the error is? Are there certain types of PNG files that aren't supported? The url variable is correct when logged.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions