Skip to content

Ruby Script that adds "@2x" extension to image filenames and creates half-resolution versions. Useful for preparing Retina resources under iPhone Development.

Notifications You must be signed in to change notification settings

ChocoChipset/Retinizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Retinizer

What exactly it does?

Given a directory path:

  1. Will find all "PNG" and "JPG" files in it and, if needed, will add a '@2x' suffix to those filenames.
  2. Will write half resolution version of those files. New image files will be named after the original filenames but removing the '@2x' suffix.

Usage

  1. Install the RMagick gem. This script may help mac users.

    sudo gem install rmagick
    
  2. 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/
    
  3. Enjoy Retina and standard resolutions for your iOS projects.

## Contributions

  • Issues, pull requests and all contributions are welcomed!

## About

Author: Hector Zarate.

About

Ruby Script that adds "@2x" extension to image filenames and creates half-resolution versions. Useful for preparing Retina resources under iPhone Development.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages