Clipping path doesn't follows the images size
Posted: 2013-09-20T05:55:24-07:00
Original file (cmyk_8bits_path.tif):https://docs.google.com/file/d/0B8WNVy3 ... edit?pli=1
Result file (test.tif):https://docs.google.com/file/d/0B8WNVy3 ... sp=sharing
Photoshop Screenshot (photoshop_screenshot.pdf):https://docs.google.com/file/d/0B8WNVy3 ... sp=sharing
The command I run is:
convert cmyk_8bits_path.tif -flatten -alpha transparent -clip -alpha opaque -trim +repage test.tif
What I am trying to do here is:
- Flatten the image to get only one layer (-flatten)
- Get rid of the background (-alpha transparent -clip -alpha opaque)
- Trim the page based on transparent pixels (-trim +repage)
As you can see the clipping-path is around the original product image (file: cmyk_8bits_path.tif) and after running the commands the image is transparent and is trimmed but the path size is different: it looks like the size is reduced together with the size of the canvas (I am not changing the image size, only the canvas size when trimming)
I run IM on a Ubuntu 13.04 box with the default IM installation:
Version: ImageMagick 6.7.7-10 2013-09-10 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Result file (test.tif):https://docs.google.com/file/d/0B8WNVy3 ... sp=sharing
Photoshop Screenshot (photoshop_screenshot.pdf):https://docs.google.com/file/d/0B8WNVy3 ... sp=sharing
The command I run is:
convert cmyk_8bits_path.tif -flatten -alpha transparent -clip -alpha opaque -trim +repage test.tif
What I am trying to do here is:
- Flatten the image to get only one layer (-flatten)
- Get rid of the background (-alpha transparent -clip -alpha opaque)
- Trim the page based on transparent pixels (-trim +repage)
As you can see the clipping-path is around the original product image (file: cmyk_8bits_path.tif) and after running the commands the image is transparent and is trimmed but the path size is different: it looks like the size is reduced together with the size of the canvas (I am not changing the image size, only the canvas size when trimming)
I run IM on a Ubuntu 13.04 box with the default IM installation:
Version: ImageMagick 6.7.7-10 2013-09-10 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC