Clipping paths
Posted: 2015-03-20T07:00:41-07:00
Hi guys,
I could really use som help with this...
I have a huge archive of images, some of them contain clipping paths - and some don't. Want I want is a command line that will process clipping when a path is present - and when it is not --> to continue with the rest of the parameters and complete the operation (without throwing an error).
This command line works fine for images with clip paths...
convert image.tif -alpha transparent -clip -alpha opaque -strip -resize 800x800 -background white -flatten image.jpg
However, when this command line encounters images without clip paths, then it throws an error ("no clip path defined `image.tif': No such file or directory @ error/image.c/ClipImagePath/719") and the operation fails.
Does anyone know of a way around this?
Cheers,
Kare
I could really use som help with this...
I have a huge archive of images, some of them contain clipping paths - and some don't. Want I want is a command line that will process clipping when a path is present - and when it is not --> to continue with the rest of the parameters and complete the operation (without throwing an error).
This command line works fine for images with clip paths...
convert image.tif -alpha transparent -clip -alpha opaque -strip -resize 800x800 -background white -flatten image.jpg
However, when this command line encounters images without clip paths, then it throws an error ("no clip path defined `image.tif': No such file or directory @ error/image.c/ClipImagePath/719") and the operation fails.
Does anyone know of a way around this?
Cheers,
Kare