Closed misel228 closed 8 months ago
Hi,
We apologize for the late reply. Is this still a problem? There have been a few updates to the Inkplate library since the day you reported the problem. Try to download the latest version of the Inkplate library and the latest version of the board definition and then run the code. If it is still a problem, we will try to solve it as soon as possible.
Thanks for getting back
Somewhere deep in another issue someone mentioned that chunked transfers were not supported. I've since modified the PHP script to return the file size in the header which in turn caused Apache to not send it chunked and then it worked.
@misel228 thanks for the pointer. Same happened for me as well.
For the posterity the fix with plain PHP is to call
header('Content-Length: ' . strlen($imageContent));
Ofc if one is using some nice framework like Laravel or Symfony, then the same should be done through its response objects and so forth.
Closing this as there's no more activity, please reopen the issue if you think it needs more attention
I've been trying to create an image rotator from my personal library and I can't get my Inkplate 6COLOR to load jpeg files.
The code below is a minimal version that tries to load a jpeg off of my server. What you cannot see is that the URL is actually hiding a PHP script with mod_rewrite to serve a JPG file or a PNG file depending on the chosen file extension.
If I change the end of the URL to .png and use the drawImage line with the format
display.PNG
everything works and I see three red letters on my display. But the code below shows only a blank screen when it should show three blue letters "JPG".I'm very well aware that this code might be completely correct and that my server code needs enhancement. I have already corrected the mime type from "image/jpg" to "image/jpeg" and I have disabled an automated protocol elevation to HTTPS.
I don't know why the screen stays blank. Please advise.