episode-134/store/vendor/plugins/paperclip/lib/paperclip/thumbnail.rb
# Returns the command ImageMagick's +convert+ needs to transform the image
# into the thumbnail.
Returns the command ImageMagick's +convert+ needs to transform the image
into the thumbnail.
Returns the command ImageMagick ' s + convert + needs to transform the image into the thumbnail .
def transformation_command
      scale, crop = @current_geometry.transformation_to(@target_geometry, crop?)
      trans = "-resize \"#{scale}\""
      trans << " -crop \"#{crop}\" +repage" if crop
      trans << " #{convert_options}" if convert_options?
      trans
    end
def transformation_command scale , crop = @current_geometry . transformation_to ( @target_geometry , crop? ) trans = "-resize \"#{scale}\"" trans << " -crop \"#{crop}\" +repage" if crop trans << " #{convert_options}" if convert_options? trans end
Returns the command ImageMagick's +convert+ needs to transform the image
into the thumbnail.
Returns the command ImageMagick ' s + convert + needs to transform the image into the thumbnail .