Re: [WebDNA] ImageMagick code
This WebDNA talk-list message is from 2013
It keeps the original formatting.
numero = 110666
interpreted = N
texte = If you go to my ImageMagick module at the WSC site, it has examples that you can use. Basically, before the [script... } bit, you need to feed it some variables. Without the variables, you will just get an info listing for IM.TerryOn Tue, 10 Sep 2013 13:57:26 -0400 Stephen Braun
wrote: Hi Again, I need some help with imageMagick. I'm using a shared server, and my host says that it is installed onthe server, and other customers are using it sucessfully. My host has been trying to help me, but he's not a programmer, sowe're not having any luck. Using this: [shell scriptid=ImageMagick_convert] [/shell] I get this: Version: ImageMagick 6.2.8 10/20/10 Q16file:/usr/share/ImageMagick-6.2.8/doc/index.html Copyright: Copyright(C) 1999-2006 ImageMagick Studio LLC Usage: convert [options ...] file[ [options ...] file ...] [options ...] file Where options include:-adaptive-sharpen geometry adaptively sharpen pixels; increase effectnear edges -adjoin join images into a single multi-image file -affinematrix affine transform matrix -annotate geometry text annotate theimage with text -antialias remove pixel-aliasing -append append animage sequence -authenticate value decrypt image with this password-auto-orient automatically orient image -average average an imagesequence -background color background color -bias value add bias whenconvolving an image -black-point-compensation use black pointcompensation -black-threshold value force all pixels below thethreshold into black -blue-primary point chromaticity blue primarypoint -blur geometry blur the image -border geometry surround imagewith a border of color -bordercolor color border color -channel typeapply option to select image channels -charcoal radius simulate acharcoal drawing -chop geometry remove pixels from the image interior-clip clip along the first path from the 8BIM profile -clip-path idclip along a named path from the 8BIM profile -clone index clone animage -coalesce merge a sequence of images -colorize value colorizethe image with the fill color -colors value preferred number of colorsin the image -colorspace type alternate image colorspace -combinecombine a sequence of images -comment string annotate image withcomment -compose operator set image composite operator -compositecomposite image -compress type type of pixel compression when writingthe image -contrast enhance or reduce the image contrast-contrast-stretch geometry improve contrast by `stretching' theintensity range -convolve coefficients apply a convolution kernel tothe image -crop geometry cut out a rectangular region of the image-cycle amount cycle the image colormap -debug events display copiousdebugging information -define format:option define one or more imageformat options -deconstruct break down an image sequence intoconstituent parts -delay value display the next image after pausing-delete index delete the image from the image sequence -densitygeometry horizontal and vertical density of the image -depth valueimage depth -despeckle reduce the speckles within an image -displayserver get image or font from this X server -dispose method GIFdisposal method -dither apply Floyd/Steinberg error diffusion to image-draw string annotate the image with a graphic primitive -edge radiusapply a filter to detect edges in the image -emboss radius emboss animage -encoding type text encoding type -endian type endianness (MSBor LSB) of the image -enhance apply a digital filter to enhance anoisy image -equalize perform histogram equalization to an image-evaluate operator value evaluate an arithmetic, relational, orlogical expression -extent geometry set the image size -extractgeometry extract area from image -family name render text with thisfont family -fill color color to use when filling a graphic primitive-filter type use this filter when resizing an image -flatten flatten asequence of images -flip flip image vertically -floodfill geometrycolor floodfill the image with color -flop flop image horizontally-font name render text with this font -format "string" outputformatted image characteristics -frame geometry surround image with anornamental border -fuzz distance colors within this distance areconsidered equal -fx expression apply mathematical expression to animage channel(s) -gamma value level of gamma correction -gaussiangeometry gaussian blur an image -geometry geometry perferred size orlocation of the image -green-primary point chromaticity green primarypoint -gravity type horizontal and vertical text placement -help printprogram options -identify identify the format and characteristics ofthe image -implode amount implode image pixels about the center-insert index insert last image into the image sequence -intent typetype of rendering intent when managing the image color -interlace typetype of image interlacing scheme -label name assign a label to animage -lat geometry local adaptive thresholding -layers methodoptimize or compare image layers -level value adjust the level ofimage contrast -limit type value pixel cache resource limit -logformat format of debugging information -loop iterations add Netscapeloop extension to your GIF animation -map filename transform imagecolors to match this set of colors -mask filename set the image clipmask -matte store matte channel if the image has one -mattecolor colorframe color -median radius apply a median filter to the image-modulate value vary the brightness, saturation, and hue -monitormonitor progress -monochrome transform image to black and white -morphvalue morph an image sequence -mosaic create a mosaic from an imagesequence -motion-blur geometry simulate motion blur -negate replaceevery pixel with its complementary color -noise radius add or reducenoise in an image -normalize transform image to span the full range ofcolors -opaque color change this color to the fill color-ordered-dither NxN ordered dither the image -orient type imageorientation -page geometry size and location of an image canvas(setting) -paint radius simulate an oil painting -ping efficientlydetermine image attributes -pointsize value font point size -posterizelevels reduce the image to a limited number of color levels -previewtype image preview type -print string interpret string and print toconsole -process arguments process the image with a custom imagefilter -profile filename add, delete, or apply an image profile-quality value JPEG/MIFF/PNG compression level -quiet suppress allerror or warning messages -radial-blur angle radial blur the image-raise value lighten/darken image edges to create a 3-D effect-random-threshold low,high random threshold the image -red-primarypoint chromaticity red primary point -region geometry apply options toa portion of the image -render render vector graphics -repage geometrysize and location of an image canvas -resample geometry change theresolution of an image -resize geometry resize the image -rollgeometry roll an image vertically or horizontally -rotate degreesapply Paeth rotation to the image -sample geometry scale image withpixel sampling -sampling-factor geometry horizontal and verticalsampling factor -scale geometry scale the image -scene value imagescene number -seed value pseudo-random number generator seed value-segment values segment an image -separate separate an image channelinto a grayscale image -sepia-tone threshold simulate a sepia-tonedphoto -set attribute value set an image attribute -shade degrees shadethe image using a distant light source -shadow geometry simulate animage shadow -sharpen geometry sharpen the image -shave geometry shavepixels from the image edges -shear geometry slide one edge of theimage along the X or Y axis -sigmodial-contrast geometry lightnessrescaling using sigmoidal contrast enhancement -size geometry widthand height of image -solarize threshold negate all pixels above thethreshold level -splice geometry splice the background color into theimage -spread amount displace image pixels by a random amount -stripstrip image of all profiles and comments -stroke color graphicprimitive stroke color -strokewidth value graphic primitive strokewidth -stretch type render text with this font stretch -style typerender text with this font style -support factor resize support: > 1.0is blurry, < 1.0 is sharp -swap indexes swap two images in the imagesequence -swirl degrees swirl image pixels about the center -texturefilename name of texture to tile onto the image background -thresholdvalue threshold the image -thumbnail geometry create a thumbnail ofthe image -tile filename tile image when filling a graphic primitive-tint value tint the image with the fill color -transform affinetransform image -transparent color make this color transparent withinthe image -transpose flip image vertically and rotate 90 degrees-transverse flop image horizontally and rotate 270 degrees -treedepthvalue color tree depth -trim trim image edges -type type image type-undercolor color annotation bounding box color -units type the unitsof image resolution -unsharp geometry sharpen the image -verbose printdetailed information about the image -version print versioninformation -view FlashPix viewing transforms -vignette geometrysoften the edges of the image in vignette style -virtual-pixel methodvirtual pixel access method -wave geometry alter an image along a sinewave -weight type render text with this font weight -white-point pointchromaticity white point -white-threshold value force all pixels abovethe threshold into white -write filename write images to this file Bydefault, the image format of `file' is determined by its magic number.To specify a particular image format, precede the filename with animage format name and a colon (i.e. ps:image) or specify the imagetype as the filename suffix (i.e. image.ps). Specify 'file' as '-' forstandard input or output. But using this: [shell scriptid=ImageMagick_convert] /usr/bin/convert images/[filename] -resize 816x612 images/[newfilename] [/shell] Dosen't give me any results. Any ideas? Thanks a bunch, sfb
Associated Messages, from the most recent to the oldest:
If you go to my ImageMagick module at the WSC site, it has examples that you can use. Basically, before the [script... } bit, you need to feed it some variables. Without the variables, you will just get an info listing for IM.TerryOn Tue, 10 Sep 2013 13:57:26 -0400 Stephen Braun wrote: Hi Again, I need some help with imageMagick. I'm using a shared server, and my host says that it is installed onthe server, and other customers are using it sucessfully. My host has been trying to help me, but he's not a programmer, sowe're not having any luck. Using this: [shell scriptid=ImageMagick_convert] [/shell] I get this: Version: ImageMagick 6.2.8 10/20/10 Q16file:/usr/share/ImageMagick-6.2.8/doc/index.html Copyright: Copyright(C) 1999-2006 ImageMagick Studio LLC Usage: convert [options ...] file[ [options ...] file ...] [options ...] file Where options include:-adaptive-sharpen geometry adaptively sharpen pixels; increase effectnear edges -adjoin join images into a single multi-image file -affinematrix affine transform matrix -annotate geometry text annotate theimage with text -antialias remove pixel-aliasing -append append animage sequence -authenticate value decrypt image with this password-auto-orient automatically orient image -average average an imagesequence -background color background color -bias value add bias whenconvolving an image -black-point-compensation use black pointcompensation -black-threshold value force all pixels below thethreshold into black -blue-primary point chromaticity blue primarypoint -blur geometry blur the image -border geometry surround imagewith a border of color -bordercolor color border color -channel typeapply option to select image channels -charcoal radius simulate acharcoal drawing -chop geometry remove pixels from the image interior-clip clip along the first path from the 8BIM profile -clip-path idclip along a named path from the 8BIM profile -clone index clone animage -coalesce merge a sequence of images -colorize value colorizethe image with the fill color -colors value preferred number of colorsin the image -colorspace type alternate image colorspace -combinecombine a sequence of images -comment string annotate image withcomment -compose operator set image composite operator -compositecomposite image -compress type type of pixel compression when writingthe image -contrast enhance or reduce the image contrast-contrast-stretch geometry improve contrast by `stretching' theintensity range -convolve coefficients apply a convolution kernel tothe image -crop geometry cut out a rectangular region of the image-cycle amount cycle the image colormap -debug events display copiousdebugging information -define format:option define one or more imageformat options -deconstruct break down an image sequence intoconstituent parts -delay value display the next image after pausing-delete index delete the image from the image sequence -densitygeometry horizontal and vertical density of the image -depth valueimage depth -despeckle reduce the speckles within an image -displayserver get image or font from this X server -dispose method GIFdisposal method -dither apply Floyd/Steinberg error diffusion to image-draw string annotate the image with a graphic primitive -edge radiusapply a filter to detect edges in the image -emboss radius emboss animage -encoding type text encoding type -endian type endianness (MSBor LSB) of the image -enhance apply a digital filter to enhance anoisy image -equalize perform histogram equalization to an image-evaluate operator value evaluate an arithmetic, relational, orlogical expression -extent geometry set the image size -extractgeometry extract area from image -family name render text with thisfont family -fill color color to use when filling a graphic primitive-filter type use this filter when resizing an image -flatten flatten asequence of images -flip flip image vertically -floodfill geometrycolor floodfill the image with color -flop flop image horizontally-font name render text with this font -format "string" outputformatted image characteristics -frame geometry surround image with anornamental border -fuzz distance colors within this distance areconsidered equal -fx expression apply mathematical expression to animage channel(s) -gamma value level of gamma correction -gaussiangeometry gaussian blur an image -geometry geometry perferred size orlocation of the image -green-primary point chromaticity green primarypoint -gravity type horizontal and vertical text placement -help printprogram options -identify identify the format and characteristics ofthe image -implode amount implode image pixels about the center-insert index insert last image into the image sequence -intent typetype of rendering intent when managing the image color -interlace typetype of image interlacing scheme -label name assign a label to animage -lat geometry local adaptive thresholding -layers methodoptimize or compare image layers -level value adjust the level ofimage contrast -limit type value pixel cache resource limit -logformat format of debugging information -loop iterations add Netscapeloop extension to your GIF animation -map filename transform imagecolors to match this set of colors -mask filename set the image clipmask -matte store matte channel if the image has one -mattecolor colorframe color -median radius apply a median filter to the image-modulate value vary the brightness, saturation, and hue -monitormonitor progress -monochrome transform image to black and white -morphvalue morph an image sequence -mosaic create a mosaic from an imagesequence -motion-blur geometry simulate motion blur -negate replaceevery pixel with its complementary color -noise radius add or reducenoise in an image -normalize transform image to span the full range ofcolors -opaque color change this color to the fill color-ordered-dither NxN ordered dither the image -orient type imageorientation -page geometry size and location of an image canvas(setting) -paint radius simulate an oil painting -ping efficientlydetermine image attributes -pointsize value font point size -posterizelevels reduce the image to a limited number of color levels -previewtype image preview type -print string interpret string and print toconsole -process arguments process the image with a custom imagefilter -profile filename add, delete, or apply an image profile-quality value JPEG/MIFF/PNG compression level -quiet suppress allerror or warning messages -radial-blur angle radial blur the image-raise value lighten/darken image edges to create a 3-D effect-random-threshold low,high random threshold the image -red-primarypoint chromaticity red primary point -region geometry apply options toa portion of the image -render render vector graphics -repage geometrysize and location of an image canvas -resample geometry change theresolution of an image -resize geometry resize the image -rollgeometry roll an image vertically or horizontally -rotate degreesapply Paeth rotation to the image -sample geometry scale image withpixel sampling -sampling-factor geometry horizontal and verticalsampling factor -scale geometry scale the image -scene value imagescene number -seed value pseudo-random number generator seed value-segment values segment an image -separate separate an image channelinto a grayscale image -sepia-tone threshold simulate a sepia-tonedphoto -set attribute value set an image attribute -shade degrees shadethe image using a distant light source -shadow geometry simulate animage shadow -sharpen geometry sharpen the image -shave geometry shavepixels from the image edges -shear geometry slide one edge of theimage along the X or Y axis -sigmodial-contrast geometry lightnessrescaling using sigmoidal contrast enhancement -size geometry widthand height of image -solarize threshold negate all pixels above thethreshold level -splice geometry splice the background color into theimage -spread amount displace image pixels by a random amount -stripstrip image of all profiles and comments -stroke color graphicprimitive stroke color -strokewidth value graphic primitive strokewidth -stretch type render text with this font stretch -style typerender text with this font style -support factor resize support: > 1.0is blurry, < 1.0 is sharp -swap indexes swap two images in the imagesequence -swirl degrees swirl image pixels about the center -texturefilename name of texture to tile onto the image background -thresholdvalue threshold the image -thumbnail geometry create a thumbnail ofthe image -tile filename tile image when filling a graphic primitive-tint value tint the image with the fill color -transform affinetransform image -transparent color make this color transparent withinthe image -transpose flip image vertically and rotate 90 degrees-transverse flop image horizontally and rotate 270 degrees -treedepthvalue color tree depth -trim trim image edges -type type image type-undercolor color annotation bounding box color -units type the unitsof image resolution -unsharp geometry sharpen the image -verbose printdetailed information about the image -version print versioninformation -view FlashPix viewing transforms -vignette geometrysoften the edges of the image in vignette style -virtual-pixel methodvirtual pixel access method -wave geometry alter an image along a sinewave -weight type render text with this font weight -white-point pointchromaticity white point -white-threshold value force all pixels abovethe threshold into white -write filename write images to this file Bydefault, the image format of `file' is determined by its magic number.To specify a particular image format, precede the filename with animage format name and a colon (i.e. ps:image) or specify the imagetype as the filename suffix (i.e. image.ps). Specify 'file' as '-' forstandard input or output. But using this: [shell scriptid=ImageMagick_convert] /usr/bin/convert images/[filename] -resize 816x612 images/[newfilename] [/shell] Dosen't give me any results. Any ideas? Thanks a bunch, sfb
"Terry Wilson"
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Bug Report, maybe (1997)
[WebDNA] Bug in [thisurlplusget] on v7 (2011)
WC1.6 to WC2 date formatting (1997)
Nested search (1997)
calculating ShipCost depending on weight (1997)
[TaxableTotal] - not working with AOL and IE (1997)
Possible Bug in 2.0b15.acgi (1997)
Same Table Opened Twice (2003)
WCf2 and nested tags (1997)
quotes and truncating? (1997)
Return records from another (1997)
Support ?? (1997)
Emailer help....! (1997)
[OT] What log analyzer do you use? (2000)
WebDNA Writer Needed (1997)
OT: need bad code (2005)
Bad Words Filter (2005)
WebCat2: Items xx to xx shown, etc. (1997)
OT: Microsoft to buy Macromedia? was: [Ignore] Test (2002)
Webcatalog/Butler (1998)