File tree Expand file tree Collapse file tree
wcfsetup/install/files/acp Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5656 <instruction type="database" run="standalone">acp/database/update_com.woltlab.wcf_62_step1.php</instruction>
5757 <instruction type="script">acp/update_com.woltlab.wcf_6.2_contactOptions.php</instruction>
5858 <instruction type="database" run="standalone">acp/database/update_com.woltlab.wcf_62_step2.php</instruction>
59+ <instruction type="script">acp/update_com.woltlab.wcf_6.2_option.php</instruction>
5960 -->
6061</package >
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace wcf \acp ;
4+
5+ use wcf \data \option \OptionEditor ;
6+
7+ /**
8+ * Opt-out of the new image conversion and EXIF removal feature if the settings
9+ * for the image autoscaling is set to preserve the file type. This isn’t
10+ * exactly the same but still close enough as a preset.
11+ */
12+
13+ if (\ATTACHMENT_IMAGE_AUTOSCALE_FILE_TYPE !== 'keep ' ) {
14+ return ;
15+ }
16+
17+ OptionEditor::import ([
18+ 'image_convert_format ' => 'keep ' ,
19+ 'image_strip_exif ' => 0 ,
20+ ]);
You can’t perform that action at this time.
0 commit comments