Meet us at at Real World in Orlando, Florida.
All functions
Mac OS X
Windows
Crossplatform
Components
Guides
New in version:
2.0
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
GMImage.SetQuality
Component: GraphicsMagick
Version: 2.0
Mac OS X: Works
Windows: Works
MBS( "GMImage.SetQuality"; ImageRef; quality )
Parameters
| Parameter | Description | Example value |
|---|---|---|
| ImageRef | The image reference (a number returned from the GMImage.New functions) | 1 |
| quality | a number in range of 0 to 100. | 75 |
Result
Returns "OK" on success.
Description
Sets the JPEG/MIFF/PNG compression level (default 75).Examples
Recompresses the image with JPEG compressor and a really bad quality:
Let ( [
$Image = MBS("GMImage.NewFromContainer"; GraphicsMagick::image);
$Result = MBS("GMImage.SetQuality";$Image; 5);
$Result = MBS("GMImage.WriteToJPEGContainer"; $Image);
$Error = MBS("GMImage.Destroy";$Image)
];
$Result)
Feedback: Report problem or ask question.
Links
MBS Real Studio Plugins - Pfarrgemeinde Ministranten Nickenich