<doc>
  <legacy_id>1830</legacy_id>
  <name>JPEGQuality</name>
  <type>property</type>
  <syntax>
    <example>set the JPEGQuality to <i>qualityNumber</i></example>
  </syntax>
  <library></library>
  <objects>
    <global/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Images &amp; Multimedia</category>
  </classification>
  <references>
    <command tag="import">import Command</command>
    <property tag="paintCompression">paintCompression Property</property>
    <command tag="export">export Command</command>
  </references>
  <history>
    <introduced version="1.1">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary>Specifies the quality level of <glossary tag="JPEG">JPEG</glossary> <glossary tag="image">images</glossary> created by LiveCode.</summary>
  <examples>
    <example>set the JPEGQuality to 40</example>
    <example>set the JPEGQuality to the JPEGQuality - 10</example>
  </examples>
  <description>
    <p>Use the <b>JPEGQuality</b> <glossary tag="property">property</glossary> to control the file size and sharpness of <glossary tag="JPEG">JPEG</glossary> <function tag="files">files</function> created with the <command tag="export">export</command> <glossary tag="command">command</glossary>.</p><p/><p><b>Value:</b></p><p>The <b>JPEGQuality</b> is an integer between 1 and 100.</p><p/><p>By default, the <b>JPEGQuality</b> <glossary tag="property">property</glossary> is set to 100.</p><p/><p><b>Comments:</b></p><p>JPEG compression is inherently lossy, which means some detail is always lost when an image is compressed using this method. The <b>JPEGQuality</b> <glossary tag="property">property</glossary> controls how much detail is lost. If the <b>JPEGQuality</b> is 100, as much detail as possible is retained.</p><p/><p>In general, the lower the quality setting, the smaller the file size. Photographic images with naturally fuzzy edges generally do not suffer much visible loss of quality with a <b>JPEGQuality</b> setting of 50 or higher. Different <glossary tag="image">images</glossary> may require different levels of this property to achieve acceptable results.</p><p/><p>The <b>JPEGQuality</b> setting is used when a <keyword tag="file">file</keyword> is exported in <glossary tag="JPEG">JPEG</glossary> format using the <command tag="export">export</command> <glossary tag="command">command</glossary>, and when an <keyword tag="image">image</keyword> whose <property tag="paintCompression">paintCompression</property> <glossary tag="property">property</glossary> is "jpeg" is changed.</p>
  </description>
</doc>