Skip to content

Commit 98670fa

Browse files
author
jbostoen
authored
Update UploadHandler.php
You actually have an implementation for a strip-parameter (and its used as stripImage) to remove EXIF tags (eg location). But if you want to retain the original file when it comes to anything else, you need a little change. Took some time to figure out.
1 parent 0b4af3c commit 98670fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/php/UploadHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ protected function imagick_create_scaled_image($file_name, $version, $options) {
871871
if (!empty($options['max_height'])) {
872872
$new_height = $max_height = $options['max_height'];
873873
}
874-
if (!($image_oriented || $max_width < $img_width || $max_height < $img_height)) {
874+
if (!($image_oriented || $max_width < $img_width || $max_height < $img_height || $options['strip'] == TRUE )) {
875875
if ($file_path !== $new_file_path) {
876876
return copy($file_path, $new_file_path);
877877
}

0 commit comments

Comments
 (0)