-trim and -extend does not modify clipping path correctly
Posted: 2018-10-04T10:33:57-07:00
There seems to be a bug that "-trim" and "-extent" they don't seem to modify the clip path correctly.
Example
For some reason the clipping path is changed and shows smaller than it should be.
I use Gimp 2.8 to open the file and look at the clipping path called "Path 1". You can notice that after I run the command
the clipping path is smaller than the image of the product.
https://www.dropbox.com/s/lwlq4dwbihzxd ... h.png?dl=0
If I use the plain -resize command, the clipping path does align with the image.
https://www.dropbox.com/s/xddloukntpmxm ... h.png?dl=0
More details
http://www.imagemagick.org/discourse-se ... =1&t=34803
Example
For some reason the clipping path is changed and shows smaller than it should be.
I use Gimp 2.8 to open the file and look at the clipping path called "Path 1". You can notice that after I run the command
Code: Select all
convert origin.tiff -trim +repage -resize 500x500 -background white -gravity north -extent 500x500 result.tiff
https://www.dropbox.com/s/lwlq4dwbihzxd ... h.png?dl=0
If I use the plain -resize command, the clipping path does align with the image.
https://www.dropbox.com/s/xddloukntpmxm ... h.png?dl=0
Code: Select all
convert origin.tiff -resize 500x500 result.tiff
More details
http://www.imagemagick.org/discourse-se ... =1&t=34803