Browse Source

Изменение алгоритма ресайзинга (правильный вариант).

master
Alexander Demidov 11 years ago
parent
commit
a664243715
  1. 2
      Upload.class.php

2
Upload.class.php

@ -63,7 +63,7 @@ abstract class Upload
if (!(ImageVariant::getIsClass($image)) && Image::getIsSubClass($image)) {
$greagwar_image->resize($width, $height, 0xffffff, $force = false, $rescale = false, $crop = true);
} else {
$greagwar_image->resize($width, $height, 0xffffff, $force = true, $rescale = true, $crop = false);
$greagwar_image->resize($width, $height, 0xffffff, $force = false, $rescale = false, $crop = false);
}
}
$image->type = $greagwar_image->guessType();

Loading…
Cancel
Save