single command that handles different things
Posted: 2013-09-14T06:33:32-07:00
Hi, using latest stand alone win7 with command-line and wanted to make one single command that handles different things in one go. My breakdown is:
* read Background.png
* read Foreground_Name.png
* crop Foreground_Name.png while reading, with -crop 709x310+229+385
* compose cropped Foreground_Name with offset -gravity NorthWest+229+385
* save result as Result_Name.jpg with quality-factor 80%
* delete Foreground_Name.png
the Names part of the Foreround_Name.png i can store as names.txt like:
name-one
name-two
name-abc-three
...
Here is what i got so far, but syntax not pefect yet:
convert ^
Background.png ^
\( -crop 709x310+229+385 ^
'Foreground_%[filename:names].png' \) ^
\( -compose ^
-gravity NorthWest+229+385 ^
'Result_%[filename:names].jpg' -quality 80% \) ^
| rm 'Foreground_%[filename:names].png'
* for deleting i had checked viewtopic.php?f=1&t=15877
Please share how setting up correctly.
Regards,
Frank
* read Background.png
* read Foreground_Name.png
* crop Foreground_Name.png while reading, with -crop 709x310+229+385
* compose cropped Foreground_Name with offset -gravity NorthWest+229+385
* save result as Result_Name.jpg with quality-factor 80%
* delete Foreground_Name.png
the Names part of the Foreround_Name.png i can store as names.txt like:
name-one
name-two
name-abc-three
...
Here is what i got so far, but syntax not pefect yet:
convert ^
Background.png ^
\( -crop 709x310+229+385 ^
'Foreground_%[filename:names].png' \) ^
\( -compose ^
-gravity NorthWest+229+385 ^
'Result_%[filename:names].jpg' -quality 80% \) ^
| rm 'Foreground_%[filename:names].png'
* for deleting i had checked viewtopic.php?f=1&t=15877
Please share how setting up correctly.
Regards,
Frank