Conditional convert

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?".

Conditional convert

Postby thud » 2010-10-22T07:14:16+00:00

Hello,

I want to trim an image, and if the resulting canvas is too small for my definition, I want to do deliver some replacement image.
For the sake of performance, can this be done in a single convert operation; or alternatively can this be done using pipes?

Big thanks for your help!
thud
 

Re: Conditional convert

Postby immortal26 » 2010-10-22T07:55:45+00:00

This may help you out, as far as conditional statements:
viewtopic.php?f=1&t=12843

Only way I can think of is using a script.
Are you using any scripting now? and which language?
immortal26
 

Re: Conditional convert

Postby thud » 2010-10-25T04:01:33+00:00

Thanks for your reply,

I am aware that the control flow can be dealt with outside of IM.
I am using im4java and was hoping to avoid the expense of forking off multiple IM processes from the JVM. Also I expect that doing the conversion in multiple IM instances may introduce concurrency issues...

Will sleep over it.
Regards, thud
thud
 


Return to Users

Who is online

Users browsing this forum: Bing [Bot], fengruzhuo, Google Adsense [Bot] and 12 guests