Code Monkey home page Code Monkey logo

icon-magic's Introduction

πŸ‘‹ Hello there.

icon-magic's People

Contributors

chrisheninger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

icon-magic's Issues

Read file from CLI arg

  • Remove hardcoded sample.png call
  • Read file from CLI arg
  • Show helpful error if file isn't provided, explaining how to type the command or drag-and-drop a file into the CLI

CLI error

> 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.

npm + cli

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.

Update sample to follow guidelines

Apple dictates the web app icons shouldn't have rounded corners– they will automatically do this in their UI.

  • Update sample png
  • Document this in readme

Android has some rules too I think- something with dynamic icons?

  • Research this
  • Do things

Image Validation

  • Source image must be a png
  • Source image must be a square
  • Source image must be greater than or equal to 512x512

Think this should be sufficient.

GUI

Build a GUI that is basically https://github.com/imagemin/imagemin-app

  • Electron + CRApp initial setup facebook/create-react-app#1718
  • Figure out why the release-build app won't load– development works OK
  • Implement react-dropzone (familiar+great library)
  • Figure out how to get the dropzone callback function to run the node icon-magic.js script with the dropped PNG as the argument

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.