DynaPDF.GetJPEGQuality
----------------------

Queries the JPEG compression quality.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [3.1](newinversion31.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.GetJPEGQuality"; PDF ) 

**MBS**( **"DynaPDF.GetJPEGQuality";** /\* Queries the JPEG compression quality. \*/  
**$PDF**) /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |

### Result

Returns JPEG quality number (0 to 100)

### Description

Queries the JPEG compression quality.  
The function returns the current JPEG compression quality which is used when compressing images with the JPEG or JPEG2000 compression filter. The return value can be negative indicating that the pass-through mode is disabled. The absolute value represents the whished image quality in percent if the JPEG compression filter is used.  
If the JPEG2000 compression filter is used the value represents a divisor of the uncompressed image size to the whished compressed image size. The absolute value ranges from 0 to 1000. If the value is 0 or 1000 then the loss-less variant of JPEG2000 compression is used (see also [DynaPDF.SetJPEGQuality](DynaPDFSetJPEGQuality.md)).  
See also [GetJPEGQuality](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetJPEGQuality.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetJPEGQuality](DynaPDFSetJPEGQuality.md)

This function checks for a license.

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

  
[DynaPDF.GetIsTaggingEnabled](DynaPDFGetIsTaggingEnabled.md) - [DynaPDF.GetJavaScript](DynaPDFGetJavaScript.md)

[HTML Version](DynaPDFGetJPEGQuality.shtml)