Skip to content

Commit f89ae6d

Browse files
committed
Always set the export quality to 80%
80% is the sweet spot for most images, producing the smallest possible file sizes without introducing too much visual reductions.
1 parent 5c3a652 commit f89ae6d

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

com.woltlab.wcf/option.xml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -926,14 +926,6 @@ redis:wcf.acp.option.cache_source_type.redis</selectoptions>
926926
<selectoptions>keep:wcf.acp.option.attachment_image_autoscale_file_type.keep
927927
image/jpeg:wcf.acp.option.attachment_image_autoscale_file_type.jpeg</selectoptions>
928928
</option>
929-
<option name="attachment_image_autoscale_quality">
930-
<categoryname>message.attachment.autoscale</categoryname>
931-
<optiontype>integer</optiontype>
932-
<defaultvalue>80</defaultvalue>
933-
<minvalue>1</minvalue>
934-
<maxvalue>100</maxvalue>
935-
<suffix>percent</suffix>
936-
</option>
937929
<!-- message.general.edit -->
938930
<option name="module_edit_history">
939931
<categoryname>message.general.edit</categoryname>
@@ -1635,5 +1627,7 @@ DESC:wcf.global.sortOrder.descending</selectoptions>
16351627
<option name="message_sidebar_enable_articles"/>
16361628
<category name="security.blacklist"/>
16371629
<category name="security.blacklist.custom"/>
1630+
1631+
<option name="attachment_image_autoscale_quality"/>
16381632
</delete>
16391633
</data>

constants.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@
202202
\define("ATTACHMENT_IMAGE_AUTOSCALE_MAX_WIDTH", 1024);
203203
\define("ATTACHMENT_IMAGE_AUTOSCALE_MAX_HEIGHT", 1024);
204204
\define("ATTACHMENT_IMAGE_AUTOSCALE_FILE_TYPE", '');
205-
\define("ATTACHMENT_IMAGE_AUTOSCALE_QUALITY", 80);
206205
\define('LOG_MISSING_LANGUAGE_ITEMS', 0);
207206
\define('PRUNE_IP_ADDRESS', 30);
208207
\define('BREADCRUMBS_HOME_USE_PAGE_TITLE', 1);

wcfsetup/install/files/lib/system/WCF.class.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,9 @@ protected function defineLegacyOptions(): void
515515

516516
// The option to show an article counter in the message sidebar was removed with version 6.2.
517517
\define('MESSAGE_SIDEBAR_ENABLE_ARTICLES', 0);
518+
519+
// The autoscale quality setting for attachments was removed with version 6.2.
520+
\define('ATTACHMENT_IMAGE_AUTOSCALE_QUALITY', 80);
518521
}
519522

520523
/**

0 commit comments

Comments
 (0)