Search found 32 matches

by AusS2000
2012-04-19T18:38:57-07:00
Forum: Users
Topic: Trouble with quotes in BASH scripts
Replies: 20
Views: 30646

Re: Trouble with quotes in BASH scripts

And again, it all seems to be working now: #!/bin/sh /opt/local/bin/convert -size 290x70 xc:white -bordercolor blue -border 5 -fill black -stroke black -strokewidth 1 -font Helvetica -pointsize 40 \ -draw "translate -120,0 skewX 0 gravity center text 0,0 '$txtstr1'" \ -draw "translate...
by AusS2000
2012-04-19T18:26:48-07:00
Forum: Users
Topic: Trouble with quotes in BASH scripts
Replies: 20
Views: 30646

Re: Trouble with quotes in BASH scripts

If you can break up the line to basic image processing steps on each line. It just makes it easier to read and understand. Unfortunately this was one of the things that I suspect was causing issues. Neither the \ nor the ^ seem to be recognised as line breaks and it would only execute the first lin...
by AusS2000
2012-04-19T18:24:58-07:00
Forum: Users
Topic: Trouble with quotes in BASH scripts
Replies: 20
Views: 30646

Re: Trouble with quotes in BASH scripts

Hmm, it now seems to be working. I have the bash script with $txtstr arguments in it and I'm calling it from terascript and passing those arguments. I'll play around some more and see if I can work out where I was going wrong before and will report back here and Terascript talk list. Thanks for all ...
by AusS2000
2012-04-19T18:13:53-07:00
Forum: Users
Topic: Trouble with quotes in BASH scripts
Replies: 20
Views: 30646

Re: Trouble with quotes in BASH scripts

My suggestion is to make a test script with hard coded values and see if that runs. First test in the command line and then put it into your scripting environment with the right exec call. Ok, here is my code, copy and pasted from the terminal: /opt/local/bin/convert -size 320x85 canvas:none -font ...
by AusS2000
2012-04-18T21:53:51-07:00
Forum: Users
Topic: Trouble with quotes in BASH scripts
Replies: 20
Views: 30646

Re: Trouble with quotes in BASH scripts

Cheers, I get it now.

The Terascript boys are suggesting that instead of passing arguments to a script I should formulate the script, write it to a temp folder and execute it.

The problem I am having with this method is that the written file doesn't have 'execute' permission.
by AusS2000
2012-04-18T18:15:22-07:00
Forum: Users
Topic: Trouble with quotes in BASH scripts
Replies: 20
Views: 30646

Re: Trouble with quotes in BASH scripts

The Terascript boys suggested writing the script to a temp file including Vars and executing that file. Seems to work but is an inelegant solution. To make a true multiuser system I need to give the script file a unique ID, execute it, and then delete the script.
by AusS2000
2012-04-18T16:28:03-07:00
Forum: Users
Topic: Trouble with quotes in BASH scripts
Replies: 20
Views: 30646

Re: Trouble with quotes in BASH scripts

anthony wrote:You may also need to remove a 'white space' output image :-)

Code: Select all

   rm ' '
Sorry, I don't understand what you are saying?
by AusS2000
2012-04-18T16:26:08-07:00
Forum: Users
Topic: Trouble with quotes in BASH scripts
Replies: 20
Views: 30646

Re: Trouble with quotes in BASH scripts

Removed the white space from the \ version. Doesn't give an error but still only performs the first command.

Tried with the ^ version and same result. And also with the one line version.
by AusS2000
2012-04-17T22:20:35-07:00
Forum: Users
Topic: Trouble with quotes in BASH scripts
Replies: 20
Views: 30646

Re: Trouble with quotes in BASH scripts

Okay, in the Terminal entering: -size 320x85 canvas:none -font Helvetica -pointsize 72 ^ -draw "text 25,60 'Magick'" -channel RGBA -blur 0x6 -fill darkred -stroke magenta ^ -draw "text 20,55 'Magick'" gives an error: convert: unable to open image `^': No such file or directory @ ...
by AusS2000
2012-04-17T22:00:05-07:00
Forum: Users
Topic: Trouble with quotes in BASH scripts
Replies: 20
Views: 30646

Re: Trouble with quotes in BASH scripts

I'm using Mac OSX, which is a flavour of Unix. I'm using the ^ in place of \ as it seemed work in an earlier experiment. I'll change it back and see if that makes a difference.
by AusS2000
2012-04-17T17:18:45-07:00
Forum: Users
Topic: Trouble with quotes in BASH scripts
Replies: 20
Views: 30646

Re: Trouble with quotes in BASH scripts

I'm running IM 6.7.6.0 BTW.
by AusS2000
2012-04-17T17:17:21-07:00
Forum: Users
Topic: Trouble with quotes in BASH scripts
Replies: 20
Views: 30646

Trouble with quotes in BASH scripts

Hi all, I have been using ImageMagick for years but only to resize on the fly uploaded images to websites. I now wish to get a little more functionality out of it and use it to create CAPTCHA images. I found Fred's ImageMagick Scripts and also realised he is a big contributor to this forum. My issue...
by AusS2000
2012-03-19T00:39:15-07:00
Forum: Developers
Topic: Installation on Lion
Replies: 0
Views: 5793

Installation on Lion

I thought I'd document the procedure I went through to install ImageMagick on Lion (I'll did a separate write up for Snow Leopard). I'll leave out all the dead ends I went down to save you the trouble. And I'll try to be concise but not skip any of the steps that are often overlooked by power users ...
by AusS2000
2012-03-18T23:18:35-07:00
Forum: Developers
Topic: Installation on Snow Leopard
Replies: 0
Views: 5124

Installation on Snow Leopard

I thought I'd document the procedure I went through to install ImageMagick on Snow Leopard (I'll do a separate write up for Lion). I'll leave out all the dead ends I went down to save you the trouble. And I'll try to be concise but not skip any of the steps that are often overlooked by power users a...
by AusS2000
2012-03-18T06:10:01-07:00
Forum: Developers
Topic: Snow Leopard
Replies: 8
Views: 19371

Re: Snow Leopard

I just reloaded MacPorts and ran the install again. Seems to be going well.