{if isset($saved) && $saved}
[`Settings updated`]
{/if}

[`Images`]

[`Thumbnails`]
[`Thumbnails to be created when image is uploaded`]
{if !empty($settings.image_sizes)}
    {foreach $settings.image_sizes as $set_type => $sizes_set} {foreach $sizes_set as $key => $size_item}
  • {foreach $size_item as $type => $size} {if $type == 'crop'} [`Square crop`]: {$size}x{$size} [`px`] {else if $type == 'max'} [`Max`] ( [`Width`], [`Height`] ) = {$size} [`px`] {else if $type == 'width'} [`Width`] = {$size} [`px`], [`Height`] = [`auto`] {else if $type == 'height'} [`Width`] = [`auto`], [`Height`] = {$size} [`px`] {else if $type == 'rectangle'} [`Width`] = {$size[0]} [`px`], [`Height`] = {$size[1]} [`px`] {/if} {/foreach} {if $set_type == 'custom'} [`delete`] {/if}
  • {/foreach} {/foreach}
{/if}
[`Custom-sized thumbnails`]
[`Max thumbnail size`]
[`px`]
[`Limits the maximum thumbnail size that can be created on demand. Must be no less than 970 px.`]
[`Sharpen`]
[`Thumbnail quality`]

[`JPEG compression quality for photo thumbnails. From 0 (min quality, min file size) to 100 (max quality, max file size). 90 is recommended.`]
[`Thumbnail filenames`]

[`When enabled, thumbnails’ file names are derived from the name of an original image file you upload.`]
[`When disabled, thumbnails’ file names are generated only with the use of numbers denoting thumbnail dimensions.`]
@2x
[`@2x image thumbnail generation`]

[`Enabling this option will allow automatic creation of image thumbnails on-fly for devices with high pixel density displays, e.g. Retina displays. Generating bigger images require more memory resources for image generation, requires more disk space for storing images, but significantly improves user experience on devices with high-end displays`]
[`Thumbnail quality @2x`]

[`JPEG compression quality for photo thumbnails. From 0 (min quality, min file size) to 100 (max quality, max file size). 70 is recommended.`]
[`Originals`]
[`Originals`]

[`When enabled, every uploaded image file is automatically backed up and stored independently from image full size version, which is modified when you edit it, e.g. rotate, apply watermarks or image visual effects. Originals are never updated. Pros: you have backups of all uploaded images. Cons: almost twice more disk space is required for storing original images than for storing only full size versions and thumbnails.`]
{if isset($saved) && $saved} [`Settings updated`] {/if}

[`Re-generate all product image thumbnails`]
{if $has_required_files === false}
[`Image thumbnails cannot be generated because required system files are missing in wa-data/public/shop/products/ directory.`]
{/if} [`Re-generating all public product image thumbnails allows you to save some disk space on server and to optimize images after thumbnail generation settings such as sharpening and JPEG compression quality were changed. Depending on the number of products, the entire process may take from few seconds to few minutes or even hours for very large product databases.`]
{$wa->csrf()}
{* dialogs section *}

[`Re-generate product image thumbnails`]

[`This will start the process of deleting all existing product thumbnails and re-generating them from full-size versions according to latest thumbnail generation settings such as sharpening and JPEG compression quality. Depending on the number of products, re-generation may take some time to complete and may free some disk space on your server.`]

[`While thumbnails are re-generated, your storefront visitors should see no difference in your storefront functioning, and there should be no broken images, because new thumbnails are created by Webasyst automatically upon user request. However, since creating new thumbnails consume server resources, your server may experience above-average load while new thumbnails are created. The overload depends on the number of requests on thumbnails generation, i.e. on your storefront traffic. It is recommended to perform thumbnail re-generation when your storefront traffic is at its lowest.`]

[`Optional settings`]


[`Enable to get thumbnails of all available sizes created at once. It is recommended if automatic image thumbnail generation is disabled in image settings.`]
[`If you leave this option disabled, thumbnails will be automatically created later, at the first request of an image on the website, if automatic image thumbnail generation is enabled.`]

[`@2x thumbnails require more disk space than ordinary ones. Ensure that you have sufficient space to store all image files.`]


[`Enable this to flush all source full-size images and re-generate them from backups. All plugin customizations to source images will be re-applied. Source images without backups will be skipped.`]
{$wa->csrf()} [`or`] [`cancel`]