aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-03-16 15:27:25 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-03-16 15:27:25 +0000
commitd7b4e9e863d32b9c557ec5b971e6aa1b1e9d2c3c (patch)
tree1147ffa9ad667344ce19a2c527e30073e1df02c1
parent48ffd72f6f3c6eb6b50dd1d18cdde9370c54cfd0 (diff)
downloadforums-d7b4e9e863d32b9c557ec5b971e6aa1b1e9d2c3c.tar
forums-d7b4e9e863d32b9c557ec5b971e6aa1b1e9d2c3c.tar.gz
forums-d7b4e9e863d32b9c557ec5b971e6aa1b1e9d2c3c.tar.bz2
forums-d7b4e9e863d32b9c557ec5b971e6aa1b1e9d2c3c.tar.xz
forums-d7b4e9e863d32b9c557ec5b971e6aa1b1e9d2c3c.zip
Better thumbnail quality with imagemagick (Bug #42565)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9372 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/docs/CHANGELOG.html1
-rw-r--r--phpBB/includes/functions_posting.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html
index 6007136bca..21d51275e3 100644
--- a/phpBB/docs/CHANGELOG.html
+++ b/phpBB/docs/CHANGELOG.html
@@ -115,6 +115,7 @@
<li>[Fix] Fix imageset editing for retaining and correctly setting dimensions for images, as well as displaying correct settings for first page load.</li>
<li>[Fix] Use OS-specific line endings for mail headers. (related to Bug #42755)</li>
<li>[Fix] Hide font size options which are bigger than the allowed size in the editor. (Bug #42615 - Patch by nickvergessen)</li>
+ <li>[Fix] Better thumbnail quality with imagemagick (Bug #42565)</li>
<li>[Change] Allow download of conflicting file for later reference in automatic updater</li>
<li>[Change] Default difference view is now 'inline' instead of 'side by side'</li>
<li>[Change] Added new option for merging differences to conflicting files in automatic updater</li>
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 1b0fbb835a..8ec82d4f16 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -629,7 +629,7 @@ function create_thumbnail($source, $destination, $mimetype)
$config['img_imagick'] .= '/';
}
- @passthru(escapeshellcmd($config['img_imagick']) . 'convert' . ((defined('PHP_OS') && preg_match('#^win#i', PHP_OS)) ? '.exe' : '') . ' -quality 85 -antialias -sample ' . $new_width . 'x' . $new_height . ' "' . str_replace('\\', '/', $source) . '" +profile "*" "' . str_replace('\\', '/', $destination) . '"');
+ @passthru(escapeshellcmd($config['img_imagick']) . 'convert' . ((defined('PHP_OS') && preg_match('#^win#i', PHP_OS)) ? '.exe' : '') . ' -quality 85 -geometry ' . $new_width . 'x' . $new_height . ' "' . str_replace('\\', '/', $source) . '" "' . str_replace('\\', '/', $destination) . '"');
if (file_exists($destination))
{