Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-8194

Better thumbnail quality

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 3.0.5
    • 3.0.4
    • Posting
    • None
    • PHP Environment:
      Database:

      The current thumbnail generation somewhat aliased picture. Notice the fence pattern in the example shown below:

      !http://farm1.static.flickr.com/65/205089332_29ff320723.jpg

      A different call to ImageMagick convert produces a far better result:

      !http://farm1.static.flickr.com/96/205089331_97257d105b.jpg

      I propose replacing the line in function_posting.php:

      		@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) . '"');

      with:

      		@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) . '"');

      Thanks.

            Acyd Burn Meik Sievertsen [X] (Inactive)
            stephenju stephenju
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: