WebDNA interaction with ImageMagick

How to pass variables to ImageMagick using a [shell] context?

numero = 41
interpreted = N
texte = Simply set the variable on the page above the [shell], and when you construct the script you want to run within [shell], just drop the [variable] in. So, in this example, you would use something like this.
[text]height=100[/text][text]width=100[/text][text]sourcefile=logo.jpg[/text][text]resultfile=result.jpg[/text]
Then you would a use a [shell] script like this (in your SandBoxes scripts) to resize the image.
[shell]path-to-ImageMagick/convert -size [width]x[height] [sourcefile] -resize [width]x[height] +profile "*" [resultfile][/shell]
Simply set the variable on the page above the [shell], and when you construct the script you want to run within [shell], just drop the [variable] in.

So, in this example, you would use something like this.
[text]height=100[/text]
[text]width=100[/text]
[text]sourcefile=logo.jpg[/text]
[text]resultfile=result.jpg[/text]

Then you would a use a [shell] script like this (in your SandBoxes scripts) to resize the image.
[shell]
path-to-ImageMagick/convert -size [width]x[height] [sourcefile] -resize [width]x[height] +profile "*" [resultfile]
[/shell]

Mark Derrick

DOWNLOAD WEBDNA NOW!

Top Articles:

Download WebDNA Applications

WebDNA applications...

AWS Raw WebDNA LAMP-Plus WebServer

Amazon Web Services (AWS) README for Machine Image ID...

Technical Change History

This Technical Change History provides a reverse chronological list of WebDNA changes...

F.A.Q

A compilation of some user's questions...

WebDNA Modules

A list of the currently available modules...

WebDNA Libraries

A list of available libraries for WebDNA...

Related Readings:

How old am I?

You want to express an age in years given the dob (mm/dd/yyyy) and today's date...

ImageMagick

Use ImageMagick to manipulate images when you upload them...

Check the Federal Government's Social Security database

The script on the page will check the federal government's social security database...

Spaghetti code

How to get rid of very long search strings...

Removing whitespace

How can I remove all whitespace entered by a user from an input box (ie card number)...

Handling credit card numbers

Encrypting the credit card numbers does the job quite nicely...