Search found 3 matches

by rawd
2017-01-07T15:48:54-07:00
Forum: Users
Topic: Pass strings with spaces to bash script to use as text output and in filename
Replies: 2
Views: 3355

Re: Pass strings with spaces to bash script to use as text output and in filename

When replacing the hardcoded variables $hardcoded_date, $hardcoded_event and $hardcoded_venue currently inside the convert commands with $my_date, $my_event and $my_venue it doesn't work and the text output is empty. You are not setting the value of my_date etc. So it is empty, and using its value ...
by rawd
2017-01-07T07:54:33-07:00
Forum: Users
Topic: Pass strings with spaces to bash script to use as text output and in filename
Replies: 2
Views: 3355

Pass strings with spaces to bash script to use as text output and in filename

1 #!/bin/bash 2 # Version: ImageMagick 6.9.6-7 Q16 x86_64 2016-12-05, running on macOSX 10.11.6 El Capitan 3 # run the script in bash terminal like so: 4 # ./rsvp.sh "12 dec" Christmas "The Golden Hall" 5 6 args=("$@") 7 8 echo 9 echo my_date=${args[0]} 10 echo my_event=${args[1]} 11 echo my_venue ...
by rawd
2016-12-29T00:19:23-07:00
Forum: Users
Topic: Resizing overlay image at the same time as overlaying?
Replies: 8
Views: 23047

Re: Resizing overlay image at the same time as overlaying?

In order to have the entire image covered and keep the aspect ratio, couldn't the caret geometry argument be used instead? =) -resize WxH^ If I haven't entirely misunderstood that will use the first minimum dimension (either width or height) that fits and lets the other dimension adapt, while ...