[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][imChangeFormatSB]
[text]fileout=[getchars start=4&from=end][FileOut][/getchars][fileform][/text]
[text]filein=[fileout][/text][/showif]
[showif [resize]=t][imResizeImageSB] [text]filein=[fileout][/text][/showif]
[showif [rotate]=t][imRotateSB] [text]filein=[fileout][/text][/showif]
[showif [mirror]=t][imMirrorSB] [text]filein=[fileout][/text][/showif]
[showif [thumbnail]=t][imMakeThumbSB][/showif]
[showif [imprint]=t][imImprintTextSB][/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
|
|