Skip to content

Instantly share code, notes, and snippets.

@JadedEvan
Created April 20, 2010 18:01
Show Gist options
  • Save JadedEvan/372832 to your computer and use it in GitHub Desktop.
Save JadedEvan/372832 to your computer and use it in GitHub Desktop.
Snippet of code that uses imagemagick to create a resized, square and centered thumbnail
`convert -resize x#{thisSize.to_i*2} -resize 50% -gravity center -crop #{thisSize}x#{thisSize}+0+0 +repage #{amazon_file[:tempfile].path} #{tempfile_new.path}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment