Displaying 1 result from an estimated 1 matches for "top_square".
2008 Jul 29
1
can't crop images using ImageMagick
...here? At one point in this project I thought I
successfully resized or cropped an image this way, but I can''t seem to
do it now.
Also, the files are in the shared "system" directory of a Capistrano
deployed server.
Here''s my code:
require ''RMagick''
top_square = params[:top_square].to_d
left_square = params[:left_square].to_d
width_square = params[:width_square].to_d
height_square = params[:height_square].to_d
source_file = "#{RAILS_ROOT}/public#{@photo.public_filename}"
destination_file = "#{RAILS_ROOT}/public#{city_photo.public_filename...