Please note: this blog has been migrated to a new location at https://jakesgordon.com. All new writing will be published over there, existing content has been left here for reference, but will no longer be updated (as of Nov 2023)

Sprite Factory 1.6.0

Sun, Mar 16, 2014

I have released a minor update (v1.6.0) to the sprite-factory ruby gem. This version adds 2 small features:

Direct support for ImageMagick

You can now use ImageMagick directly, without needing to install the RMagick gem dependency

Simply specify image_magick as the library, either using the command line tool:

$ sf icons --library image_magick

… or using the Ruby API directly:

SpriteFactory.run!('icons', :library => :image_magick)

Thanks to @willglynn for implementing this feature!

Added padding/margin support in the command line tool

The padding & margin options have been exposed in the command line tool:

$ sf icons --padding 2 --margin 3

Thanks to @miguelgonz for implementing this feature!

Installation

As usual, installation is just a gem away:

$ gem install sprite-factory

And detailed instructions can be found in the README.

Nothing fancy, just a minor update. Let me know if you have any problems/feedback.

Enjoy!