very long command line expression problem

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
vtv

very long command line expression problem

Post by vtv »

I'm generating banners usiing IM and i have a commans so command line could be more then 8000 chars. What is the right way to workaround

this doesn't work

Code: Select all

convert @file result.jpg
for all commans that are present in @file IM outputs an erro that they are not files. and commands are like this

Code: Select all

( -page +0+0 -draw "fill-opacity 1.0 fill rgb(255,255,255) stroke rgb(255,255,255) stroke-width 1 rectangle 20,39 520,159 " ) -flatten ( -page +0+0 -draw "fill-opacity 1.0 fill rgb(0,0,0) font '/home/esellers/public_html/dev/fonts/arialbd.ttf' font-size 17.78 font-style normal font-stretch semi-expanded text 254,19 'buy' " ) -flatten ...
Any ideas how to fix it?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: very long command line expression problem

Post by anthony »

It depends on what is causing the command line length problem.

At the moment you can not read operations from a file. This is a proposal that is being put forward for IM version 7, But essentially requires a re-working of the command line API interface to allow the use of files for operations, and the discontinuation of the legacy command line system.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply