Use ImageMagick to manipulate images when you upload them.WebDNA can easily manage file uploads, but you will need something like ImageMagick to manipulate images once they've been uploaded. Use ImageMagick to downsize images, generate thumbnails, convert to jpg, gif, or png or to imprint your URL. But there are many, many other commands for manipulating images. Here we show some basic syntax for tapping into ImageMagick's power. From there, you will be able to explore on your own to build many combinations of operations.
[shell]/sw/bin/convert temp/[tempfile] -scale [maxTHwidth]x[maxTHheight] -format jpg +profile "*" ../images/gallery/th/z[jpgfilename][/shell]
A word about mogrify
In the WebDNA archives you will find references to mogrify used in the same way as convert. Mogrify is a destructive operation, because it automatically overwrites the original image. In general, don't use mogrify. Even the IM site gives numerous warnings about using mogrify. In our example, we do two things using our original file: make a regular sized image, and make a thumbnail. Then we use WebDNA to delete the original. Creating both files from one original would be impossible to do using mogrify.
[text]IMcommands=temp/[tempfile] -scale [maxTHwidth]x[maxTHheight] -format jpg +profile "*" ../images/gallery/th/z[jpgfilename][/text]
DOWNLOAD WEBDNA NOW!
BioType is a behavioral biometrics WebDNA function based on ADGS research and development (from version 8...WebDNA Libraries
A list of available libraries for WebDNA...F.A.Q
A compilation of some user's questions...WebDNA Modules
A list of the currently available modules...AWS Raw WebDNA LAMP-Plus WebServer
Amazon Web Services (AWS) README for Machine Image ID...Tips and Tricks
A list of user-submitted tips ...
Use ImageMagick to manipulate images when you upload them...Calculating Standard Deviation
...Hideif on IP range
This will show or hide stuff according to the IP...Setting a 30-minute Cookie
Configuring the expires time for a short-term cookie is tricky...File upload example
...How many working days?
This small script finds the number of working days between two dates...