How to pass variables to ImageMagick using a [shell] context?
numero = 41[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.
[text]height=100[/text]
[text]width=100[/text]
[text]sourcefile=logo.jpg[/text]
[text]resultfile=result.jpg[/text]
[shell]
path-to-ImageMagick/convert -size [width]x[height] [sourcefile] -resize [width]x[height] +profile "*" [resultfile]
[/shell]
DOWNLOAD WEBDNA NOW!
Amazon Web Services (AWS) README for Machine Image ID...
WebDNA LibrariesA list of available libraries for WebDNA...
Tips and TricksA list of user-submitted tips ...
WebDNA ModulesA list of the currently available modules...
Technical Change HistoryThis Technical Change History provides a reverse chronological list of WebDNA changes...
Download WebDNA ApplicationsWebDNA applications...
You want to express an age in years given the dob (mm/dd/yyyy) and today's date...
Do you hate updating the copyright notice at the bottom of all your pages?It's January 1st and you have to update the copyright notice at the bottom of all your websites...
Extracting the first sentence out of a block of textI need to extract the first sentence out of a block of text...
Hideif on IP rangeThis will show or hide stuff according to the IP...
How to create a RSS feedHow to create a RSS feed from yourdatabase on formation...
Write Once Use ManyReuse the same code over and over again on your site with the [include] context...