Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

DynaPDF.SetJPEGQuality

The function sets the quality of JPEG compressed images in percent if JPEG compression is used. Lower values cause higher compression rates, however, worse image quality.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 3.1 Yes Yes Yes Yes Yes

MBS( "DynaPDF.SetJPEGQuality"; PDF; quality )

Parameters

Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf
quality The new JPEG quality. From 0 to 100. 75

Result

Returns OK on success.

Description

The function sets the quality of JPEG compressed images in percent if JPEG compression is used. Lower values cause higher compression rates, however, worse image quality.
The function accepts also negative values. A negative value indicates that the pass-through mode for JPEG images should be disabled. Note that JPEG images are always recompressed if the pass-through mode is disabled.
If the JPEG2000 compression filter is used the value represents a divisor of the uncompressed image size to the whished compressed image size. The possible range is 0 to 1000. If the value is 0 or 1000 the loss-less variant of JPEG compression is used (see also DynaPDF.InsertImage). Lower values cause higher compression rates, however, worse image quality.
The default value is 70.

See also SetJPEGQuality function in DynaPDF manual.

Examples

sets quality level:

MBS( "DynaPDF.SetJPEGQuality"; $PDF; 75 )

See also

Example Databases


DynaPDF.SetImportFlags2   -   DynaPDF.SetLanguage

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins