Skip to content

Commit a7ddbeb

Browse files
authored
Merge pull request blueimp#3483 from jbostoen/patch-1
Update UploadHandler.php
2 parents 0b4af3c + 4366c0f commit a7ddbeb

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 || !empty($options['strip']) )) {
875875
if ($file_path !== $new_file_path) {
876876
return copy($file_path, $new_file_path);
877877
}

0 commit comments

Comments
 (0)