imagemagick - Rails peperclip - help crop the image -
welcome, crop image,
has_attached_file: image, styles: {show: '540x505 #'}
trims needed, centered on (up), need image not centralized, , trimmed top
original image:
need:
you want set -gravity option north when defining paperclip's style. like...
has_attached_file: image, styles: {show: '540x505'}, convert_options: {show: ' -gravity north '}
see documents & example usage here.
Comments
Post a Comment