Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def transformation_command
- scale, crop = @current_geometry.transformation_to(@target_geometry, crop?)
- trans = String.new
- trans << " -resize \"#{scale}\"" unless scale.blank?
- trans << " -crop \"#{crop}\" +repage" if crop
- trans << " #{convert_options}" if convert_options?
- trans
- end
Add Comment
Please, Sign In to add comment