AdaptiveNoiseReduction(5,20,0,Gauss) AutoColorCorrection(Saturation) |
Resize(round(Width/2),round(Height/2)) |
MaxSize(128,128) SetJPEGSizeLimit(8*kb) |
For JPEG output: | For JPEG 2000 output: | |
:MaxBitsPerPixel = 0.5 :Pixels = Width*Height Pixels :MaxBits = Pixels*MaxBitsPerPixel MaxBits SetJPEGSizeLimit(ceil(MaxBits/8)) |
:MaxBitsPerPixel = 0.5 SetPluginOptions("rate=" MaxBitsPerPixel/BPP) |
@Retry SkipNextIf(OutputFileSize>(60*kb)) goto(@Done) Resize(floor(Width/2),floor(Height/2)) goto(@Retry) @Done |
SkipNextIf(Width<1000) Rotate(-90) |
AddText(Center,Center,"Test!") |
AddText(11,11,"Test!",Arial Bold,20,#000000) AddText(10,10,"Test!",Arial Bold,20,#F8AA07) |
AddText(4,1*16,"File name: " FileName) AddText(4,2*16,"Width: " Width) AddText(4,3*16,"Height: " Height) AddText(4,4*16,"Source file size: " round(InputFileSize/kb) " kb") AddText(4,5*16,"New file size: " round(OutputFileSize/kb) " kb") |
CombineWithPrevious(((p1*(Index-1) + p2)/Index) |
Stamp(Center,8,"c:\graphics\logo.png") |
AddText(4,Height-40,"Text: " Str,Arial Bold,20,#F8AA07) |
ApplyColorMap(FileName) |
RegisterWithPrevious(MaxShift,MaxScale) |