Hmm.
did not by itself change anything. I'll put a copy of the script into the working directory and see if that helps. I appreciate your guidance, Fred.
EDIT: I mv'ed similar to the working directory, now I get
Code: Select all
/Users/MyUserName/Sites/similar: line 153: convert: command not found
/Users/MyUserName/Sites/similar: line 154: convert: command not found
/Users/MyUserName/Sites/similar: line 161: charArr1: bad array subscript
/Users/MyUserName/Sites/similar: line 162: charArr2: bad array subscript
/Users/MyUserName/Sites/similar: line 186: convert: command not found
/Users/MyUserName/Sites/similar: line 199: [: : integer expression expected
/Users/MyUserName/Sites/similar: line 204: [: : integer expression expected
/Users/MyUserName/Sites/similar: line 210: [: : integer expression expected
/Users/MyUserName/Sites/similar: line 224: convert: command not found
, which all looks like a bad link to ImageMagick's convert binary.
Tried various combinations of moving and symlinking convert between the working directory and /usr/local/bin , but no joy yet.
Oh, dang it, convert wasn't where I thought it was. /opt/ImageMagick/bin/convert
EDIT2: Ok, rolled through the similar script and added /opt/ImageMagick/bin/ everywhere I found convert. Now the script is at least finding the binary OK. It is also thinking it is working on images from /Library/Webserver/Sites/ instead of ~/Sites/
This UNIX stuff squeezes my brain.
EDIT3: Okie doke, that did it. Had to go through and add the full path to convert all throughout the similar script, but it is working like a charm now via PHP.
Thanks again for a great script, Fred!