Skip to content

Instantly share code, notes, and snippets.

@panchew
Created November 3, 2010 23:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save panchew/661917 to your computer and use it in GitHub Desktop.
Save panchew/661917 to your computer and use it in GitHub Desktop.
WatermarkConsoleOutputAfterTweak
>> example_image_path = "#{RAILS_ROOT}/public/images/wallpaper_original.jpg"
=> "/Users/flamaspeed/creative-allies/public/images/wallpaper_original.jpg"
>> example_image_output_path = "#{RAILS_ROOT}/public/images/wallpaper_watermarked.jpg"
=> "/Users/flamaspeed/creative-allies/public/images/wallpaper_watermarked.jpg"
>> apply_watermark(example_image_path, example_image_output_path)
user system total real
0.090000 0.030000 0.120000 ( 10.781697)
user system total real
0.030000 0.030000 0.060000 ( 1.791267)
=> #<Magick::Image: (destroyed)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment