Twain.SetCompressionQuality
---------------------------

Sets the compression quality for JPEG images.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Twain](component_Twain.md) | [3.1](newinversion31.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "Twain.SetCompressionQuality"; Quality ) 

**MBS**( **"Twain.SetCompressionQuality";** /\* Sets the compression quality for JPEG images. \*/  
**$Quality**) /\* The quality to use for JPEG compression.e.g. 80 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Quality | The quality to use for JPEG compression. | 80 |

### Result

Returns OK.

### Description

Sets the compression quality for JPEG images.  
Only used if you use [Twain.SetFolderPath](TwainSetFolderPath.md)   
### See also

- [Twain.GetCompressionQuality](TwainGetCompressionQuality.md)
- [Twain.SetFolderPath](TwainSetFolderPath.md)

### Example Databases

- [Win Only/Scanning/Twain](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/Scanning/Twain.shtml#10ScriptAnchor_)

### Blog Entries

- [MBS Filemaker Plugin, version 3.2pr5](https://www.mbsplugins.de/archive/2013-03-25/MBS_Filemaker_Plugin_version_3/monkeybreadsoftware_blog_filemaker)

This function is free to use.

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

  
[Twain.SetCloseAfterTransfer](TwainSetCloseAfterTransfer.md) - [Twain.SetContrast](TwainSetContrast.md)

[HTML Version](TwainSetCompressionQuality.shtml)