You will need the co-operation of the system admin to allow =you shell access.
If that is the case you will need to write your [shell] a bit =differently such as this one that is a standard install in =WebDNA.
The script is stored in the scripts db and you need to set =the variable above the script.
"[PathToImageMagick]convert" ="[REL_ROOT_DIR]photofile/Thumb/[currPhoto]" -flip +profile "*" ="[REL_ROOT_DIR]photofile/Thumb/[currPhoto]"[unurl][line_ending][/unurl][!]=
[/!]"[PathToImageMagick]convert" ="[REL_ROOT_DIR]photofile/[currPhoto]" -flip +profile "*" ="[REL_ROOT_DIR]photofile/[currPhoto]"[unurl][line_ending][/unurl][!]
=
[/!]"[PathToImageMagick]convert" ="[REL_ROOT_DIR]photofile/original/[currPhoto]" -flip +profile "*" ="[REL_ROOT_DIR]photofile/original/[currPhoto]"[unurl][line_ending][/unurl]=
[TEXT]PathToImageMagick=3D/path/to/image/magick[/TEXT]=div>
[TEXT]REL_ROOT_DIR=3D/files/are/here[/TEXT]
[TEXT]currPhoto=3Dmy-image.jpg[/TEXT]
[TEXT]line_ending=3D%0D%0A[/TEXT]
[SHELL =scriptid=3D flipimage][/SHELL]
Kind regards
Stuart Tremain
Pharoah Lane Software
AUSTRALIA
Thanks for your response.
I'm not getting any =results.
[shell]= goes right to command line, correct?
Then I need =the path to imagemagick, right? I thought that I had that, =but maybe not. I'm using a shared server, so I can't get to any =root dir.
What =does +profile do?
What does the =asterisk in quotes do?
I can't find these things in =the online docs for Imagemagick.
Thanks again,
sfb
---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list
talk@webdna.usTo unsubscribe, E-mail to:
talk-leave@webdna.usarchives:
http://www.webdna.us/page.dna?numero=3D55Bug Reporting:
support@webdna.us
=---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.us--Apple-Mail=_4291B6E8-66B0-44B5-94B4-012810C16B5E--.
Associated Messages, from the most recent to the oldest:
2041--Apple-Mail=_4291B6E8-66B0-44B5-94B4-012810C16B5EContent-Transfer-Encoding: quoted-printableContent-Type: text/plain;charset=utf-8You may be in a Sandbox.You will need the co-operation of the system admin to allow you shell =access.If that is the case you will need to write your
[shell] a bit =differently such as this one that is a standard install in WebDNA.[SHELL scriptid=3D flipimage][/SHELL]The script is stored in the scripts db and you need to set the variable =above the script.flipimage:=20"[PathToImageMagick]convert" "[REL_ROOT_DIR]photofile/Thumb/[currPhoto]" =-flip +profile "*" ="[REL_ROOT_DIR]photofile/Thumb/[currPhoto]"
[unurl][line_ending][/unurl]
[!]=[/!]"[PathToImageMagick]convert" "[REL_ROOT_DIR]photofile/[currPhoto]" =-flip +profile "*" ="[REL_ROOT_DIR]photofile/[currPhoto]"
[unurl][line_ending][/unurl]
[!][/!]"[PathToImageMagick]convert" ="[REL_ROOT_DIR]photofile/original/[currPhoto]" -flip +profile "*" ="[REL_ROOT_DIR]photofile/original/[currPhoto]"
[unurl][line_ending][/unurl]=So on your page you need
[text]PathToImageMagick=3D/path/to/image/magick[/TEXT]
[text]REL_ROOT_DIR=3D/files/are/here[/TEXT]
[text]currPhoto=3Dmy-image.jpg[/TEXT]
[text]line_ending=3D%0D%0A[/TEXT][SHELL scriptid=3D flipimage][/SHELL]Kind regardsStuart TremainPharoah Lane SoftwareAUSTRALIAwebdna@plsoftware.com.au> On 7 Oct 2018, at 05:30, Stephen Braun
wrote:>=20> Thanks for your response.> I'm not getting any results.>=20> [shell] goes right to command line, correct?> Then I need the path to imagemagick, right? I thought that I had =that, but maybe not. I'm using a shared server, so I can't get to any =root dir.>=20> What does +profile do? =20> What does the asterisk in quotes do?> I can't find these things in the online docs for Imagemagick.>=20> Thanks again,> sfb>=20>=20>=20>=20>=20> Stephen F Braun> sbraun1@twcny.rr.com >=20> On Fri, Oct 5, 2018 at 10:16 AM, Palle Bo Nielsen => wrote:> An example from my codebase=E2=80=A6>=20> [shell]/opt/local/bin/convert -size 50x50 =/Library/path_to_the_image_folder/[cart].[uploadPicExt] -resize 50x50 =+profile "*" /Library/path_to_another_image_folder/[cart].gif[/shell]>=20> Transforms a given image file into 50px x 50px>=20> /Palle>=20>=20>=20>> On 5 Oct 2018, at 15.04, Stephen Braun > wrote:>>=20>> Hi All,>>=20>> Is anybody running ImageMagick?>> I have it installed, and i have the path, but I'm not sure of the =code to call it into use.>> I guess that I need a primer.>>=20>> Thank for any assistance.>> sfb>>=20>>=20>>=20>>=20>>=20>> Stephen F Braun>> sbraun1@twcny.rr.com >> --------------------------------------------------------- This =message is sent to you because you are subscribed to the mailing list =talk@webdna.us To unsubscribe, E-mail to: =talk-leave@webdna.us archives: =http://www.webdna.us/page.dna?numero=3D55 = Bug Reporting: =support@webdna.us > --------------------------------------------------------- This message =is sent to you because you are subscribed to the mailing list =talk@webdna.us To unsubscribe, E-mail to: =talk-leave@webdna.us archives: =http://www.webdna.us/page.dna?numero=3D55 = Bug Reporting: =support@webdna.us > --------------------------------------------------------- This message =is sent to you because you are subscribed to the mailing list =talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: =http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: =support@webdna.us--Apple-Mail=_4291B6E8-66B0-44B5-94B4-012810C16B5EContent-Transfer-Encoding: quoted-printableContent-Type: text/html;charset=utf-8You =may be in a Sandbox.
You will need the co-operation of the system admin to allow =you shell access.
If that is the case you will need to write your
[shell] a bit =differently such as this one that is a standard install in =WebDNA.
[SHELL scriptid=3D flipimage][/SHELL]
The script is stored in the scripts db and you need to set =the variable above the script.
flipimage:
"[PathToImageMagick]convert" ="[REL_ROOT_DIR]photofile/Thumb/[currPhoto]" -flip +profile "*" ="[REL_ROOT_DIR]photofile/Thumb/[currPhoto]"
[unurl][line_ending][/unurl]
[!]=
[/!]"[PathToImageMagick]convert" ="[REL_ROOT_DIR]photofile/[currPhoto]" -flip +profile "*" ="[REL_ROOT_DIR]photofile/[currPhoto]"
[unurl][line_ending][/unurl]
[!]=
[/!]"[PathToImageMagick]convert" ="[REL_ROOT_DIR]photofile/original/[currPhoto]" -flip +profile "*" ="[REL_ROOT_DIR]photofile/original/[currPhoto]"
[unurl][line_ending][/unurl]=
So on =your page you need
[text]PathToImageMagick=3D/path/to/image/magick[/TEXT]=div>
[text]REL_ROOT_DIR=3D/files/are/here[/TEXT] [text]currPhoto=3Dmy-image.jpg[/TEXT] [text]line_ending=3D%0D%0A[/TEXT] [SHELL =scriptid=3D flipimage][/SHELL]
Kind regards
Stuart Tremain
Pharoah Lane Software
AUSTRALIA
Thanks for your response.
I'm not getting any =results.
[shell]= goes right to command line, correct?
Then I need =the path to imagemagick, right? I thought that I had that, =but maybe not. I'm using a shared server, so I can't get to any =root dir.
What =does +profile do?
What does the =asterisk in quotes do?
I can't find these things in =the online docs for Imagemagick.
Thanks again,
sfb
---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list
talk@webdna.usTo unsubscribe, E-mail to:
talk-leave@webdna.usarchives:
http://www.webdna.us/page.dna?numero=3D55Bug Reporting:
support@webdna.us
=---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.us--Apple-Mail=_4291B6E8-66B0-44B5-94B4-012810C16B5E--.
Stuart Tremain
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Error Lob.db records error message not name (1997)
[WebDNA] Server speed (2009)
Emailer and encryption (1997)
WebTen and WebCat (1997)
Displaying photo attached to first record (1997)
I'm new (2001)
PIXO support (1997)
Emailer problems (1998)
WebCat2: Formulas.db question (1997)
Force a search at the default.tmpl page? (1997)
self maintaining databases? (1998)
Webcat vs Tango (2000)
[searchString] (1997)
numeric sorting (2000)
Showif with multiple options (2002)
OT: Help Wanted/Stowe, Vermont (1999)
[TaxableTotal] - not working with AOL and IE (1997)
Bug in WebCat, (2000)
Draft Manual, Tutorial, and more (1997)
E-mailer error codes (1997)