forked from leftypol/leftypol
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts: inc/config.php inc/display.php inc/functions.php inc/image.php js/expand.js js/hide-threads.js js/local-time.js js/smartphone-spoiler.js templates/header.html templates/index.html templates/main.js templates/page.html templates/post_reply.html templates/post_thread.html templates/thread.html
This commit is contained in:
commit
55c7146d88
18 changed files with 668 additions and 623 deletions
|
@ -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,12 @@ 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!');
|
||||
<<<<<<< HEAD
|
||||
}
|
||||
else {
|
||||
=======
|
||||
} else {
|
||||
>>>>>>> 8e4c493a4c5bbff07483fd4a11c44c687c99e441
|
||||
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!');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue