Search found 32 matches

by AusS2000
2016-04-19T20:21:57-07:00
Forum: Users
Topic: Issue working with ImageMagick and Ghostscript
Replies: 4
Views: 6662

Re: Issue working with ImageMagick and Ghostscript

Ok, I re-ordered the command with the source file path before the operation and looked up what PATH is (new to me). As I understand, it is a list of paths the try to locate files called during execution. So in my case it would be: export PATH=/opt/local/bin:/usr/local/bin:$PATH; convert /file/path/s...
by AusS2000
2016-04-19T18:47:18-07:00
Forum: Users
Topic: Issue working with ImageMagick and Ghostscript
Replies: 4
Views: 6662

Issue working with ImageMagick and Ghostscript

I am triggering PDF>JPG conversion through Terascript (middleware) calling a shell script. If I construct the command manually and enter it on the command line it works. If I trigger the same command from the middleware it doesn't. sudo -u username -p password /opt/local/bin/convert -thumbnail 215x3...
by AusS2000
2016-04-19T18:32:36-07:00
Forum: Users
Topic: manually set delegate path to gs (ghostscript)
Replies: 23
Views: 51254

Re: manually set delegate path to gs (ghostscript)

Seems this has moved quite a bit off-topic. I'll move my issue to another thread to save any further confusion.
by AusS2000
2016-04-19T17:49:19-07:00
Forum: Users
Topic: manually set delegate path to gs (ghostscript)
Replies: 23
Views: 51254

Re: manually set delegate path to gs (ghostscript)

And bypassing imagemagick and calling gs directly from the script also works.

I realise I can get away with calling gs to go from PDF to JPG and then call imagemagick to resize but I would really like to solve the problem of calling gs from within imagemagick.
by AusS2000
2016-04-19T17:40:27-07:00
Forum: Users
Topic: manually set delegate path to gs (ghostscript)
Replies: 23
Views: 51254

Re: manually set delegate path to gs (ghostscript)

Hmm, tried:
gs -dNOPAUSE -sDEVICE=jpeg -r144 -sOutputFile=/Library/Server/Web/Data/Sites/~bartel/brochures/images/EV-RD-6770-3291.jpg /Library/Server/Web/Data/Sites/~bartel/brochures/files/EV-RD-6770-3291.pdf

From the command line and of course it works. Very confusing
by AusS2000
2016-04-19T17:33:52-07:00
Forum: Users
Topic: manually set delegate path to gs (ghostscript)
Replies: 23
Views: 51254

Re: manually set delegate path to gs (ghostscript)

I'd try running gs directly but not sure how much of this is required: "/usr/local/bin/gs" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -dFirst...
by AusS2000
2016-04-19T17:31:51-07:00
Forum: Users
Topic: manually set delegate path to gs (ghostscript)
Replies: 23
Views: 51254

Re: manually set delegate path to gs (ghostscript)

I mucked around with permissions on the gs file (actually gs-noX11 as that is the target on the symbolic link 'gs').

It was initially:
root xxx
wheel xxx
everyone xox

I first tried changing 'everyone' to xxx (no joy) then:
wayneirvine xxx
admin xxx
everyone xxx

Still no joy.
by AusS2000
2016-04-19T17:27:37-07:00
Forum: Users
Topic: manually set delegate path to gs (ghostscript)
Replies: 23
Views: 51254

Re: manually set delegate path to gs (ghostscript)

Yes, I tried making the path to gs in delegates.xml absolute.
by AusS2000
2016-04-18T21:17:51-07:00
Forum: Users
Topic: manually set delegate path to gs (ghostscript)
Replies: 23
Views: 51254

Re: manually set delegate path to gs (ghostscript)

OMMAND=/opt/local/bin/convert -thumbnail 215x300 /Library/Server/Web/Data/Sites/~bartel/brochures/files/EV-FD-6770-3292A.pdf[0] -flatten /Library/Server/Web/Data/Sites/~bartel/brochures/images/EV-FD-6770-3292A.jpg You might try using proper IM 6 syntax and read the input image before applying proce...
by AusS2000
2016-04-18T21:15:52-07:00
Forum: Users
Topic: manually set delegate path to gs (ghostscript)
Replies: 23
Views: 51254

Re: manually set delegate path to gs (ghostscript)

snibgo wrote:You have:
Perhaps the problem is permissions. Does everyone have permission to run gs?
I check permissions this morning and gave everyone permission to run gs.

I'll also try running gs directly.
by AusS2000
2016-04-18T20:03:29-07:00
Forum: Users
Topic: manually set delegate path to gs (ghostscript)
Replies: 23
Views: 51254

Re: manually set delegate path to gs (ghostscript)

I added ' 2>error.txt' to the command in the script and managed to capture some information. It's fairly longwinded but I located the first mention of gs and copied from there on down: 2016-04-19T12:56:19+10:00 0:00.060 0.040u 6.9.3 Policy convert[89262]: policy.c/IsRightsAuthorized/574/Policy Domai...
by AusS2000
2016-04-18T19:21:10-07:00
Forum: Users
Topic: manually set delegate path to gs (ghostscript)
Replies: 23
Views: 51254

Re: manually set delegate path to gs (ghostscript)

Thanks for that. I can really see a lot of what is going on. Unfortunately so far I have only been able to see results for the Command Line version, which is successful. I have not been able to view results for the script driven version which is not. I will look into piping the results to a text fil...
by AusS2000
2016-04-17T22:29:00-07:00
Forum: Users
Topic: manually set delegate path to gs (ghostscript)
Replies: 23
Views: 51254

Re: manually set delegate path to gs (ghostscript)

Ok, so I do see an error in the Console: 4/18/16 3:22:56.876 PM sudo[69157]: username : TTY=unknown ; PWD=/Applications/TeraScript Server 7/log_TeraScript_Server_7 ; USER=username ; COMMAND=/opt/local/bin/convert -thumbnail 215x300 /Library/Server/Web/Data/Sites/~bartel/brochures/files/EV-FD-6770-32...
by AusS2000
2016-04-17T22:00:35-07:00
Forum: Users
Topic: manually set delegate path to gs (ghostscript)
Replies: 23
Views: 51254

Re: manually set delegate path to gs (ghostscript)

This looks like exactly my problem but unfortunately the paths/config files aren't the same. I am triggering PDF>JPG through Terascript (middleware) calling a shell script. If I construct the command manually and enter it on the command line it works. If I trigger it from the middleware it doesn't. ...