Guest User

Untitled

a guest
Jun 18th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. def transformation_command
  2. scale, crop = @current_geometry.transformation_to(@target_geometry, crop?)
  3. trans = String.new
  4. trans << " -resize \"#{scale}\"" unless scale.blank?
  5. trans << " -crop \"#{crop}\" +repage" if crop
  6. trans << " #{convert_options}" if convert_options?
  7. trans
  8. end
Add Comment
Please, Sign In to add comment