Name: image_voodoo
Owner: looker
Description: ImageScience-compatible image processing for JRuby
Forked from: wilg/image_voodoo
Created: 2017-03-08 23:01:26.0
Updated: 2018-01-15 22:14:56.0
Pushed: 2017-03-08 22:49:19.0
Size: 924
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
ImageVoodoo is an Image manipulation library with a ImageScience-compatible API for JRuby.
http://github.com/jruby/image_voodoo
ageVoodoo.with_image(ARGV[0]) do |img|
img.cropped_thumbnail(100) { |img2| img2.save "CTH.jpg" }
img.with_crop(100, 200, 400, 600) { |img2| img2.save "CR.jpg" }
img.thumbnail(50) { |img2| img2.save "TH.jpg" }
img.resize(100, 150) do |img2|
img2.save "HEH.jpg"
img2.save "HEH.png"
end
img.quality(0.75).save("reduced.jpg")
d
image_voodoo can also be run from the commandline:
age_voodoo -p a.gif --thumbnail 50 -p --save a_thumb.gif
In this command-line you will preview a.gif which will pop up a rendered a.gif on your screen; Then you will scale your image to a thumb to a 50 pixel size; then preview the new thumbnail image; then save it to a_thumb.gif. The CLI tool uses the same names as the API and can be a very handly command-line tool.