[uploadmessage]
|
[!] ********** ImageMagick Operations **********[/!]
[!] *********** chained functions *********** [/!]
[!] *********** chained functions *********** [/!]
[!] *********** chained functions *********** [/!]
[showif [IMOps]=t]
ImageMagick Manipulation RESET PAGE
|
[!] *********** IM PROCESS IMAGES *********** [/!]
[showif [submit]=process image]
[!] ****** reset fileIn after each step so we add the next process to the latest file ****** [/!]
[showif [chgformat]=t][imChangeFormat FileIn=[filein]&FileOut=[fileout]&fileform=[fileform]]
[text]fileout=[getchars start=4&from=end][FileOut][/getchars][fileform][/text]
[text]filein=[fileout][/text][/showif]
[showif [resize]=t][imResizeImage FileIn=[FileIn]&maxWidth=[maxWidth]&maxHeight=[maxHeight]&FileOut=[FileOut]]
[text]filein=[fileout][/text][/showif]
[showif [rotate]=t][imRotate FileIn=[filein]&FileOut=[FileOut]&rotation=[rotation]]
[text]filein=[fileout][/text][/showif]
[showif [mirror]=t][imMirror FileIn=[filein]&FileOut=[FileOut]&whichway=[whichway]]
[text]filein=[fileout][/text][/showif]
[showif [thumbnail]=t][imMakeThumb FileIn=[filein]&FileOut=[FileOut]&maxTHwidth=[maxTHwidth]&maxTHheight=[maxTHheight]&THtype=[THtype]]
[/showif]
[showif [imprint]=t][imImprintText FileIn=[filein]&FileOut=[FileOut]&textstring=[textstring]&textsize=[textsize]&textcolor=[textcolor]&textloc=[textloc]&offsetX=[offsetX]&offsetY=[offsetY]][/showif]
[showif [thumbnail]=t]
[ThFileOut]
[FileInfo file=[ThFileOut]]
[if "[filename]"^".jpg" | "[filename]"^".jpeg" | "[filename]"^".gif" ][then][ImageWidth] x [ImageHeight] [/then][/if]([format thousands .0f][math][Size]/1000[/math][/format]K)[/FileInfo]
[/showif]
|
[if "[resize]"="t" | "[rotate]"="t" | "[mirror]"="t"| "[chgformat]"="t"| "[imprint]"="t" ][then]
[FileOut]
[FileInfo file=[fileout]]
[if "[filename]"^".jpg" | "[filename]"^".jpeg" | "[filename]"^".gif" ][then][ImageWidth] x [ImageHeight] [/then][/if]([format thousands .0f][math][Size]/1000[/math][/format]K)[/FileInfo]
[/then][/if]
|
[/showif] [!] *** END [submit]=process image *** [/!]
[!] *********** MAKE CHOICES *********** [/!]
Source file:
[f]/[filename]
[FileInfo file=[f]/[filename]]
[if "[filename]"^".jpg" | "[filename]"^".jpeg" | "[filename]"^".gif" ][then][ImageWidth] x [ImageHeight] [/then][/if]([format thousands .0f][math][Size]/1000[/math][/format]K)[/FileInfo] |
|
[/showif] [!] **** END IMOps = t **** [/!]
[!]********** File lists IMAGE folder **********[/!]
[!]********** File lists IMAGE folder **********[/!]
Image Folder
|
[listfiles images]
[filename] ImageMagick
[FileInfo file=images/[filename]]
[if "[filename]"^".jpg" | "[filename]"^".jpeg" | "[filename]"^".gif" ][then][ImageWidth] x [ImageHeight] [/then][/if]([format thousands .0f][math][Size]/1000[/math][/format]K)[/FileInfo]
delete |
|
[/listfiles]
[!]********** File list UPLOAD folder **********[/!]
[!]********** File list UPLOAD folder **********[/!]
Upload Folder
|
[listfiles uploads]
[filename] ImageMagick
[FileInfo file=uploads/[filename]]
[if "[filename]"^".jpg" | "[filename]"^".jpeg" | "[filename]"^".gif" ][then][ImageWidth] x [ImageHeight] [/then][/if]([format thousands .0f][math][Size]/1000[/math][/format]K)[/FileInfo] [!] delete[/!] |
[/listfiles]
[!]************* upload form *************[/!]
[!]************* upload form *************[/!]
File Upload
|
|