1. resize images via script (scale)
2. convert images using a script in many formats, for example JPG->.ico (details below)
3. determine the resolution/size of images.
Code: Select all
' General Syntax
GRA\[convert|resolution]|parameter
GRA\convert|src -> dst[|resolution[#][|quality]]
' Samples
GRA\convert|?desktop\image.png -> ?desktop\image.jpg
GRA\convert|?desktop\image.png -> ?desktop\scaled.jpg|500#|90
GRA\convert|?desktop\image.png -> ?desktop\scaled.png|400
' Determine Picture resolution
GRA\resolution|srcfile
' Sample:
GRA\resolution|?desktop\image.jpg
SBT\5|x: $v1$, y: $v2$
Code: Select all
Format Endung
Windows Bitmap bmp
Windows Metafile emf
Graphics Interchange Format gif
Windows Icon ico
JPEG File Interchange Format jpg, jpeg
Portable Network Graphics png
Tagged Image File Format tif, tiff
Windows Enhanced Metafile wmf
The 'resolution' parameter specifies the horizontal Resolution in pixels.
The target resolution may only exceed the resolution of the source file if to the parameter ' #' will be appended (upscaling), otherwise the source resolution is used (convert mode).
The 'quality' parameter specifies the quality of generated jpeg file in %, default value is 75.