이미지 클립에 모든 축소판에 그림자를 적용하여 클립의 축소판 처리를 변경하고 싶습니다. 내가 붙어있는 것은이 작은 기적을 없애는 실제적인 imagemagick 명령이다. 내가 시도한 모든 것은 원본 이미지가없는 잘못된 축소 그림자를 반환합니다.imagemagick 및 클립을 사용하여 축소판에 그림자를 적용하려면 어떻게해야합니까?
def transformation_command
scale, crop = @current_geometry.transformation_to(@target_geometry, crop?)
trans = ""
trans << " -resize \"#{scale}\""
trans << " -crop \"#{crop}\" +repage" if crop
# Apply Drop Shadow
trans << " #{convert_options}" if convert_options?
trans
end
하나 내가 해봤 ...
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
내가 ImageMagick를 완전히 새로운 해요, 어떤 도움을 크게 감상 할 수있다.