summaryrefslogtreecommitdiff
path: root/inc/image.php
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-07-31 03:35:07 -0400
committerMichael Foster <savetheinternet@tinyboard.org>2013-07-31 03:35:07 -0400
commit573f86ccaee3b206ebacdb4c695ea2841d68f8f9 (patch)
treecacf26255122ead4e3835332a33e50ee006e1447 /inc/image.php
parent73cb2bdf2c429fc302156b5853a409ff3cdc09b8 (diff)
Tiny code clean-up
Diffstat (limited to 'inc/image.php')
-rw-r--r--inc/image.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/inc/image.php b/inc/image.php
index 7aea9bfe..99c10252 100644
--- a/inc/image.php
+++ b/inc/image.php
@@ -81,9 +81,7 @@ class Image {
$height = $max_height;
}
- if ($gifsicle) {
- $thumb->gifsicle = 1;
- }
+ $thumb->gifsicle = $gifsicle;
$thumb->_resize($this->image->image, $width, $height);
return $thumb;
@@ -288,8 +286,7 @@ class ImageConvert extends ImageBase {
if (shell_exec("gifsicle --unoptimize -O2 --resize {$this->width}x{$this->height} < " .
escapeshellarg($this->src . '') . " > " . escapeshellarg($this->temp)) || !file_exists($this->temp))
error('Failed to resize image!');
- }
- else {
+ } else {
if (shell_exec("convert -background transparent -filter Point -sample {$this->width}x{$this->height} +antialias -quality {$quality} " .
escapeshellarg($this->src . '') . " " . escapeshellarg($this->temp)) || !file_exists($this->temp))
error('Failed to resize image!');