twolfson / grunt-spritesmith

Grunt task for converting a set of images into a spritesheet and corresponding CSS variables
MIT License
1.14k stars 92 forks source link

How can grunt-spritesmith support Image Magick engine? #31

Closed kent78 closed 11 years ago

kent78 commented 11 years ago

Hello, This text is foud in the readme.md: "The gm engine depends on Graphics Magick or Image Magick."

But if you look at the spritesmith readme it only states Graphics Magick as an engine that is supported.

How can "grunt-spritesmith" support "Image Magick" engine when "spritesmith" doesnt? Documentation hasnt been updated or is it still possible to use spritesmith with "Image magick" library?

twolfson commented 11 years ago

Yep, still supported. The flag you are browsing over is:

// OPTIONAL: Specify settings for engine
'engineOpts': {
  'imagemagick': true
},

If you provide that in your config, spritesmith will use Image Magick over Graphics Magick for the gm engine.