I would like to change the processing of thumbnails in a folder using imagemagick to apply a shadow to all thumbnails. What I'm stuck with is a real imagemagick team that would pull out this little miracle. Everything I tried returns an incorrectly scaled shadow without the original image.
def transformation_command scale, crop = @current_geometry.transformation_to(@target_geometry, crop?) trans = "" trans << " -resize \"#{scale}\"" trans << " -crop \"#{crop}\" +repage" if crop
I tried one ...
def transformation_command scale, crop = @current_geometry.transformation_to(@target_geometry, crop?) trans = "" trans << " -resize \"#{scale}\"" trans << " -crop \"#{crop}\" +repage" if crop trans << " \( +clone -background black -shadow 60x5+10+10 \) +swap -background none -layers merge +repage" trans << " #{convert_options}" if convert_options? trans end
I am completely new to imagemagick, any help would be greatly appreciated.
source share