Search found 3 matches

by dna
2016-06-07T02:04:50-07:00
Forum: Users
Topic: [SOLVED]convert parameters as a file
Replies: 4
Views: 2250

Re: convert parameters as a variable/file

I finally found one solution...

Code: Select all

Message="$Message -draw \"rectangle $TopLeftX,$TopLeftY $BotRightX,$BotRightY\""
[...]
echo "$Message" > file
cat file|xargs convert
May be not the prettiest solution... but it works fine enough for me

Thank you for everything
by dna
2016-06-07T02:00:54-07:00
Forum: Users
Topic: [SOLVED]convert parameters as a file
Replies: 4
Views: 2250

Re: convert parameters as a variable/file

Why the quote around message, well, it's an habit to ensure spaces are correctly managed in the script. if i use quote, i get help page of convert (so syntax error i guess) if i don't use quotes, i get echo -size 1100x1000 xc:white -stroke black -fill Yellow -draw "rectangle 50,100 500,150" convert ...
by dna
2016-06-06T04:48:45-07:00
Forum: Users
Topic: [SOLVED]convert parameters as a file
Replies: 4
Views: 2250

[SOLVED]convert parameters as a file

Hi everyone. I use linux sh langage. Short Version : I want to write the parameters of the convert function in a file (or a variable), and load it when calling the convert fonction in a sh script. Long Version : In need (or more exactly, i want) to generate an image which is basically a series of ...