GMImage.GetQuality
------------------

Queries the JPEG/MIFF/PNG compression level (default 75).

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [GraphicsMagick](component_GraphicsMagick.md) | [2.0](newinversion20.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "GMImage.GetQuality"; ImageRef ) 

**MBS**( **"GMImage.GetQuality";** /\* Queries the JPEG/MIFF/PNG compression level (default 75). \*/  
**$ImageRef**) /\* The image reference number.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |

### Result

Returns a number.

### Description

Queries the JPEG/MIFF/PNG compression level (default 75).  
### See also

- [GMImage.GetDensity](GMImageGetDensity.md)
- [GMImage.GetIsValid](GMImageGetIsValid.md)
- [GMImage.GetMagick](GMImageGetMagick.md)
- [GMImage.GetQuiet](GMImageGetQuiet.md)
- [GMImage.SetDensity](GMImageSetDensity.md)
- [GMImage.SetQuality](GMImageSetQuality.md)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[GMImage.GetProfile](GMImageGetProfile.md) - [GMImage.GetQuantizeColorSpace](GMImageGetQuantizeColorSpace.md)

[HTML Version](GMImageGetQuality.shtml)