read / write png files
read / write png files
Is there any way to read / write png files with micropython?
Re: read / write png files
Of course, like any other file .
Way too less information here.
Where does your graphic data come from?
What is wrong with e.g. https://github.com/Ratfink/micropython- ... ter/png.py (first Google hit when searching "micropython PNG") ?
Way too less information here.
Where does your graphic data come from?
What is wrong with e.g. https://github.com/Ratfink/micropython- ... ter/png.py (first Google hit when searching "micropython PNG") ?
A few hours of debugging might save you from minutes of reading the documentation!
My repositories: https://github.com/karfas
My repositories: https://github.com/karfas
Re: read / write png files
I want to read / write png files from flash storage. i am able to read png files with https://github.com/Ratfink/micropython- ... ter/png.py but that library does not allow me to write png files.
Re: read / write png files
Just out of curiosity:
Did you try to comment out the Writer class?
Did you try to comment out the Writer class?
Re: read / write png files
I haven't tried that. But why would the author comment it out if it works good.
Re: read / write png files
You didn't answer my question "Where does your graphic data come from?".
Depending upon your application, it might be sufficient to write files using a simpler format (TIFF, GIF) or render the PNG files elsewhere (e.g. in a web browser).
Depending upon your application, it might be sufficient to write files using a simpler format (TIFF, GIF) or render the PNG files elsewhere (e.g. in a web browser).
A few hours of debugging might save you from minutes of reading the documentation!
My repositories: https://github.com/karfas
My repositories: https://github.com/karfas
Re: read / write png files
In my case I want to read png file from onboard storage, run some image processing algorithms and write the output back to onboard storage as png file. Then view the output png from pc.
Re: read / write png files
How can i write files in tiff / gif format. Is there a library for that? Also, how can I render png in a web browser without writing a png file?