CompressionLevel

CompressionLevel

is an option for Export and CreateArchive that specifies the amount of compression to use when compressing data.

Details

  • Typical settings for CompressionLevel include:
  • Automaticautomatically chosen
    vala number between 0 (less compression) and 1 (more compression)
  • Using CompressionLevelAutomatic, typically a balance between speed and data size is chosen.

Examples

open allclose all

Basic Examples  (1)

Export an audio object to an MP3 file with default compression:

Use maximum compression:

Use minimum compression:

Scope  (2)

Export an image object to a JPEG file with default compression:

Use maximum compression:

Use minimum compression:

Check file size before compression:

Some compression is performed by default:

Delete the resulting archives:

Specify to use no compression:

Delete the resulting archives:

Specify to use maximal compression:

Delete the resulting archives:

Introduced in 2020
 (12.1)