bitbank2 / image_to_c Goto Github PK
View Code? Open in Web Editor NEWConvert image files into C arrays of uint8_t for compiling into your project
License: Apache License 2.0
Convert image files into C arrays of uint8_t for compiling into your project
License: Apache License 2.0
Did you register AnimatedGIF on PlatformIO?
https://platformio.org/lib/show/10952/AnimatedGIF/
If you did, do you mind using pio package publish
to publish the latest release?
If you didn't you may run into the same issue I did, where someone registered your GitHub username in PlatformIO and registered your libraries, and now there's no obvious way to publish updates to your own library without making a duplicate registry entry under a different username, while the original out of date registry still has priority. (Annoying!)
I ended up accidentally adding a duplicate registry entry for AnimatedGIF as I thought pio package publish
would know to update the existing registry entry for AnimatedGIF, and not create a duplicate. I used pio package unpublish
and I think it's in the process of being removed. At least "AnimatedGIF" no longer shows up when I search for libraries under my username.
# ./epd_image/epd_image --BWR --DITHER low-battery.png out.h
Unrecognized file format. For now, only BMP and JPEG are supported
could you please explain how to use it to generate .h files? I don't know how to run this type of file since it immediately auto-close, also where the file is supposed to be find? thanks
Hello,
I'm using the exe for windows and I tried to convert my gif, but I can't compile them with my arduino project.
I have this error :
error: invalid preprocessing directive #i
I noticed that in the header I had a message "// for non-Arduino builds...! "
am I doing something wrong?
Hi Bitbank2!
Sorry for bothering you with this. I'm new to this so please bare with me. I am trying to use your image_to_c64.exe file but I am having issues. I open the command prompt and enter the following commands:
C:\Users\Zaido5\Desktop>cd ImagetoC
C:\Users\Zaido5\Desktop\ImagetoC>Start image_to_c64.exe
Output:
C:\Users\Zaido5\Desktop\ImagetoC>
Nothing seems to happen and I'm sure I'm not doing this correctly. Any advice or help would be really appreciated. Thank you in advanced.
i used the image_to_c64.exe in the command prompt to make this out.h file, and it keeps giving me this error code. i tried with a few others but it gave me the same error, can you help?
it seems to work with the badgers, but not the orb or any others i make,
i am trying to use it in the animated gif, tft_espi_memory
i included
#include "../test_images/out.h"
and #define GIF_IMAGE orb2
in file included from C:\Users\student\Documents\Arduino\TFT_eSPI_memory2\TFT_eSPI_memory2.ino:36:0:
c:\users\student\documents\arduino\libraries\animatedgif\test_images\out.h:17:4: error: invalid preprocessing directive #i
0 x 1 1 , 0 x 1 1 , 0 x 3 1 , 0 x 1 1 , 0 x 1 3 , 0 x 3 3 , 0 x 1 1 , 0 x 1 2 , 0 x 3 1 , 0 x 1 1 , 0 x 1 3 , 0 x 3 4 , 0 x 1 1 , 0 x 1 3 , 0 x 3 6 , 0 x 1 1 ,
^
c:\users\student\documents\arduino\libraries\animatedgif\test_images\out.h:19:4: error: invalid preprocessing directive #d
0 x 3 c , 0 x 1 1 , 0 x 1 6 , 0 x 3 b , 0 x 1 2 , 0 x 1 8 , 0 x 3 d , 0 x 1 1 , 0 x 1 7 , 0 x 4 0 , 0 x 1 2 , 0 x 1 9 , 0 x 4 3 , 0 x 1 3 , 0 x 1 c , 0 x 4 a ,
^
c:\users\student\documents\arduino\libraries\animatedgif\test_images\out.h:21:4: error: invalid preprocessing directive #e
0 x 2 2 , 0 x 5 3 , 0 x 1 c , 0 x 2 4 , 0 x 5 4 , 0 x 1 4 , 0 x 2 2 , 0 x 5 c , 0 x 1 a , 0 x 2 8 , 0 x 5 b , 0 x 2 4 , 0 x 2 8 , 0 x 5 9 , 0 x 3 3 , 0 x 2 b ,
^
exit status 1
Compilation error: exit status 1
Hello,
I tried running the Windows application, but it didn't open.
- Asks for api-ms-win-core-path-l1-1-0.dll
I also saw that there is a python script, but it didn't open in Xubuntu:
$ ./Image2cGUI.py
': Invalid argument @ error/blob.c/OpenBlob/2924.
import-im6.q16: attempt to perform an operation not allowed by the security policyPS' @ error/constitute.c/IsCoderAuthorized/421. ': Invalid argument @ error/blob.c/OpenBlob/2924. import-im6.q16: attempt to perform an operation not allowed by the security policy
PS' @ error/constitute.c/IsCoderAuthorized/421.
': Invalid argument @ error/blob.c/OpenBlob/2924.
import-im6.q16: attempt to perform an operation not allowed by the security policyPS' @ error/constitute.c/IsCoderAuthorized/421. ': Invalid argument @ error/blob.c/OpenBlob/2924. import-im6.q16: attempt to perform an operation not allowed by the security policy
PS' @ error/constitute.c/IsCoderAuthorized/421.
import-im6.q16: attempt to perform an operation not allowed by the security policyPS' @ error/constitute.c/IsCoderAuthorized/421. ./Image2cGUI.py: line 6: $'\r': command not found ./Image2cGUI.py: line 8: syntax error near unexpected token
('
'/Image2cGUI.py: line 8: `def is_module_installed(module_name):
How would I use this for mac? Sorry if I missed documentation anywhere explaining.
Hi. I found your library AnimatedGIF very useful for my project. And of course, I want to try with my own GIFs. I understand the purpose of this repository to convert GIFs to C array, but I am a little bit confused about how to use that.
I assume that I need to run image_to_c script in the terminal sending image that I want to convert the path as param, but I don't know how exactly to do it. I am using Mac OS.
I think it's would be very useful for others to have that short description on main page of the repository.
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.