Given a directory path:
- Will find all "PNG" and "JPG" files in it and, if needed, will add a '@2x' suffix to those filenames.
- Will write half resolution version of those files. New image files will be named after the original filenames but removing the '@2x' suffix.
-
Install the RMagick gem. This script may help mac users.
sudo gem install rmagick
-
Execute Retinizer script. First argument is the directory to operate. If no argument is supplied, operations will take place in current directory.
ruby Retinizer.rb /ExampleDirectory/FullOfImages/
-
Enjoy Retina and standard resolutions for your iOS projects.
## Contributions
- Issues, pull requests and all contributions are welcomed!
## About
Author: Hector Zarate.