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!
A list of user-submitted tips ...WebDNA Libraries
A list of available libraries for WebDNA...[biotype]
BioType is a behavioral biometrics WebDNA function based on ADGS research and development (from version 8...F.A.Q
A compilation of some user's questions...Download WebDNA Applications
WebDNA applications...WebDNA Modules
A list of the currently available modules...
Generate a random alpha-numeric string...reCAPTCHA code
reCAPTCHA helps prevent automated abuse of your site (such as comment spam or bogus registrations) by using a CAPTCHA to ensure that only humans perform certain actions...Check the Federal Government's Social Security database
The script on the page will check the federal government's social security database...Calculating Standard Deviation
...Redefining [date] & [time] to match your time zone
Your server is not always in the same time zone as your web site...Hideif on IP range
This will show or hide stuff according to the IP...