chrisheninger / icon-magic Goto Github PK
View Code? Open in Web Editor NEW:calling: :business_suit_levitating: :sparkles: Generate "Add to Homescreen" icons for Apple and Android devices from a single .png image.
License: MIT License
:calling: :business_suit_levitating: :sparkles: Generate "Add to Homescreen" icons for Apple and Android devices from a single .png image.
License: MIT License
sample.png
call> icon-magic 800x800.png
π Resizing...
β { Error: Command failed: gm convert: Unable to open file (/Users/chrisheninger/.nvm/versions/node/v7.10.0/lib/node_modules/icon-magic/.tmp/apple-touch-icon-167x167.png) [No such file or directory].
Need to figure out how to properly create a .tmp
directory to write the resize files to, and then need to make sure the icons
directory ends up wherever the user executes the script from. (and make sure not to clobber an existing directory with the same name)
Until then, cloning this repo and running npm start ./sample.png
should work.
Make available and executable via npm install image-magic
followed by image-magic ./path/to/source.png
, which would then output an icons
directory wherever it was executed from.
Apple dictates the web app icons shouldn't have rounded cornersβ they will automatically do this in their UI.
Android has some rules too I think- something with dynamic icons?
Think this should be sufficient.
Build a GUI that is basically https://github.com/imagemin/imagemin-app
node icon-magic.js
script with the dropped PNG as the argumentA 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.