Crop image NOT preserve clipping path

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
skido
Posts: 1
Joined: 2017-05-17T02:38:32-07:00
Authentication code: 1151

Crop image NOT preserve clipping path

Post by skido »

Hi to everybody, I'm a newbie in IM and I noticed a strange behaviour in crop operation.
I'm trying to crop a jpeg image with a clipping path inside:

Code: Select all

convert bottle.jpg -gravity Center -crop 600x3200-70+0 bottle_PROCESSED.jpg
The result I would like is a cropped image with original clipping path.
The result instead is an image with modified clipping path: seems to be resampled to new dimension of the image, as you can see in attached images (clipping path is red line).

I'm working with ImageMagick 7.0.5-5 Q16 x86_64 on Mac Os X El Capitan 10.11.6

Original:
Image

Cropped:
Image

Here link to original file: https://image.ibb.co/hGA735/bottle.jpg
Here link to cropped file: https://image.ibb.co/dUADbQ/bottle_PROCESSED.jpg

Does anybody knows a way to crop image to clipping path maintaining original path?
Post Reply