Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

DynaPDF.GetJPEGQuality

Queries the JPEG compression quality.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 3.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.GetJPEGQuality"; PDF )   More

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $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).

See also GetJPEGQuality function in DynaPDF manual.

See also

This function checks for a license.

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


DynaPDF.GetIsTaggingEnabled - DynaPDF.GetJavaScript