Skip to content

Commit 643e3c3

Browse files
author
jbostoen
authored
Update UploadHandler.php
- fixed indentation - fixed spelling error - restored a commented-out array as example of 'another version' of the image - moved max_width, max_height comments
1 parent 2225c79 commit 643e3c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/php/UploadHandler.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -870,17 +870,17 @@ protected function imagick_create_scaled_image($file_name, $version, $options) {
870870
if (!empty($options['auto_orient'])) {
871871
$image_oriented = $this->imagick_orient_image($image);
872872
}
873-
$image_resize = false;
873+
$image_resize = false;
874874
$new_width = $max_width = $img_width = $image->getImageWidth();
875875
$new_height = $max_height = $img_height = $image->getImageHeight();
876876

877-
// use isset(). User might be setting max_width = 0 (auto in regular resizing). Value 0 would be considered empty when you use empty()
877+
// use isset(). User might be setting max_width = 0 (auto in regular resizing). Value 0 would be considered empty when you use empty()
878878
if (isset($options['max_width'])) {
879-
$image_resize = true;
879+
$image_resize = true;
880880
$new_width = $max_width = $options['max_width'];
881881
}
882882
if (isset($options['max_height'])) {
883-
$image_resize = true;
883+
$image_resize = true;
884884
$new_height = $max_height = $options['max_height'];
885885
}
886886

0 commit comments

Comments
 (0)