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:

Wolfram Research (2020), CompressionLevel, Wolfram Language function, https://reference.wolfram.com/language/ref/CompressionLevel.html.

Text

Wolfram Research (2020), CompressionLevel, Wolfram Language function, https://reference.wolfram.com/language/ref/CompressionLevel.html.

BibTeX

@misc{reference.wolfram_2021_compressionlevel, author="Wolfram Research", title="{CompressionLevel}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/CompressionLevel.html}", note=[Accessed: 05-December-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_compressionlevel, organization={Wolfram Research}, title={CompressionLevel}, year={2020}, url={https://reference.wolfram.com/language/ref/CompressionLevel.html}, note=[Accessed: 05-December-2021 ]}

CMS

Wolfram Language. 2020. "CompressionLevel." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CompressionLevel.html.

APA

Wolfram Language. (2020). CompressionLevel. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CompressionLevel.html