Closed cbitterfield closed 9 months ago
Provide the actual files and I'll take a look. Are you checking the return codes? Perhaps your second file uses the interlaced option which isn't supported due to the higher RAM requirement on MCUs.
The files are not interlaced. But let me put together some test code and examples later today
——————————————————— Colin A. Bitterfield Mailto: @.*** Mobile: (571) 533-4700 ———————————————————
On Sep 17, 2023 at 8:03 AM -0400, Larry Bank @.***>, wrote:
Provide the actual files and I'll take a look. Are you checking the return codes? Perhaps your second file uses the interlaced option which isn't supported due to the higher RAM requirement on MCUs. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
It looks like the issue was self inflicted. I did not see the display "MAX_SIZE" parameter. Changing that fixed my issue. However I was able to get larger images sometimes. I also set the profile as sRGB/BuiltIn and model RGB/Alpha
Recommendations:
If I get industrious, I'll right a python3 function for the #3 and to create the .h file. The one I downloaded was old and had issues.
I try to avoid using external dependencies in my C libraries (e.g. malloc) because they're written to run on MCUs with no OS. This is why I prefer to pre-allocate static blocks of RAM at compile time.
This has been driving me half crazy. Some PNG Files work and some don't. I am using https://notisrac.github.io/FileToCArray/ to convert the files.
file1: Works (MacOS Screenshot) file2: Doesn't work. (Created with Krita and a simple circle)
I have tried pngcheck, ImageMagick and other tools to figure this out.