search for: combine_options

Displaying 1 result from an estimated 1 matches for "combine_options".

2008 Jul 07
6
MiniMagick, and processing thumbnails...
...photo model has been saved: [ @photo.public_filename, @photo.public_filename( :thumb ), @photo.public_filename( :medium ), @photo.public_filename( :large )].each do |path| path = "#{RAILS_ROOT}/public/#{path}" file = MiniMagick::Image.from_file( path ) file.combine_options do |i| i.gravity ''center'' i.bordercolor ''black'' i.border 1 i.bordercolor ''white'' i.border 10 end file.write( path ) end Ick Ick Ick. Can anyone offer a bet...