mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 02:19:27 +08:00
FIX: Media optimization setting was misnamed (#13766)
This commit is contained in:
parent
27b97e4f64
commit
216dc99f18
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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."
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user