RubyGems Navigation menu

image_magick 0.1.3

This is a very trivial implementation of an interface for Image Magick. It relies on the binaries for Image Magic (identify and convert) to be available on the system, and to be in the $PATH. I wrote this for my spouse, who needed to resize scanned artwork for various art websites, such as 'etsy', 'artpal', and 'art.com'. Each of these sites has specific requirements for file size, format (png, tif, and jpg), or pixel dimensions. There are a few hard-coded parts of the script, that don't hamper my use of it, but that I should bring to attention. Execute the script like this shrink ./path/to/image [--size 100] [--type tif] You only need to provide image. Size and type are defaulted to 100 megabytes and tif respectively. The script is very primitive; it runs the 'identify' command to find out the size of the image. the 'image' class will respond to things like 'size', 'width', and 'length'. the 'shrink' algorithm is also fairly primitive. It iteratively tries different sizes, using a binary search algorithm to find the best fit that is as close to the maximum size as possible, without exceeding that size.

Gemfile:
=

安裝:
=

版本列表:

  1. 0.1.9 April 21, 2015 (7.0 KB)
  2. 0.1.8 April 21, 2015 (7.0 KB)
  3. 0.1.7 April 21, 2015 (7.0 KB)
  4. 0.1.6 April 21, 2015 (7.0 KB)
  5. 0.1.5 April 21, 2015 (7.0 KB)
  6. 0.1.3 April 21, 2015 (7.5 KB)
顯示所有版本(共 10)

Development 相依性套件 (2):

bundler ~> 1.9
rake ~> 10.0

擁有者:

作者:

  • Timothy Nordloh

SHA 256 總和檢查碼:

=

總下載次數 135,406

這個版本 2,454

版本发布:

授權:

Ruby 版本需求: >= 0

相關連結: