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:

WebDNA Modules

A list of the currently available modules...

[biotype]

BioType is a behavioral biometrics WebDNA function based on ADGS research and development (from version 8...

Technical Change History

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

AWS Raw WebDNA LAMP-Plus WebServer

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

WebDNA Libraries

A list of available libraries for WebDNA...

F.A.Q

A compilation of some user's questions...

Related Readings:

Spaghetti code

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

Find duplicate records

Find duplicate records and do something with them...

WebDNA interaction with zip

I have a project where I'm allowing several people to upload images...

Write Once Use Many

Reuse the same code over and over again on your site with the [include] context...

Annoying character on writefile

How do I get rid of or convert the line feed character during a writefile?...

How to create a RSS feed

How to create a RSS feed from yourdatabase on formation...