FIX: Media optimization setting was misnamed (#13766)

This commit is contained in:
Rafael dos Santos Silva 2021-07-16 15:13:16 -03:00 committed by GitHub
parent 27b97e4f64
commit 216dc99f18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ export default class MediaOptimizationWorkerService extends Service {
if (
file.size <
this.siteSettings
.composer_media_optimization_image_kilobytes_optimization_threshold
.composer_media_optimization_image_bytes_optimization_threshold
) {
return data;
}

View File

@ -1827,7 +1827,7 @@ en:
strip_image_metadata: "Strip image metadata."
composer_media_optimization_image_enabled: "Enables client-side media optimization of uploaded image files."
composer_media_optimization_image_kilobytes_optimization_threshold: "Minimum image file size to trigger client-side optimization"
composer_media_optimization_image_bytes_optimization_threshold: "Minimum image file size to trigger client-side optimization"
composer_media_optimization_image_resize_dimensions_threshold: "Minimum image width to trigger client-side resize"
composer_media_optimization_image_resize_width_target: "Images with widths larger than `composer_media_optimization_image_dimensions_resize_threshold` will be resized to this width. Must be >= than `composer_media_optimization_image_dimensions_resize_threshold`."
composer_media_optimization_image_encode_quality: "JPEG encode quality used in the re-encode process."

View File

@ -1415,7 +1415,7 @@ files:
composer_media_optimization_image_enabled:
default: false
client: true
composer_media_optimization_image_kilobytes_optimization_threshold:
composer_media_optimization_image_bytes_optimization_threshold:
default: 524288
client: true
composer_media_optimization_image_resize_dimensions_threshold: