Sha256: bd0efe3426ce24bca9a05785a7507c4160dd2fea8d45197b28d5e5c35a72d935
Contents?: true
Size: 885 Bytes
Versions: 1
Compression:
Stored size: 885 Bytes
Contents
# image_optim Optimize images (jpeg, png, gif) using external utilities (advpng, gifsicle, jpegoptim, jpegtran, optipng, pngcrush, pngout). Based on [ImageOptim.app](http://imageoptim.pornel.net/). ## Usage In terminal: image_optim *.{jpg,png,gif} image_optim -h Initilize optimizer (options are described in comments for ImageOptim, Worker and all workers): io = ImageOptim.new io = ImageOptim.new(:pngout => false) io = ImageOptim.new(:nice => 20) Optimize image getting temp path: io.optimize_image('a.png') Optimize image in place: io.optimize_image('b.jpg') Multiple images: io.optimize_images(Dir['*.png']) do |unoptimized, optimized| if optimized puts "#{unoptimized} => #{optimized}" end end io.optimize_images!(Dir['*.*']) ## Copyright Copyright (c) 2012 Ivan Kuchin. See LICENSE.txt for details.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
image_optim-0.4.0 | README.markdown |