Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-8194

Better thumbnail quality

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • 3.0.4
    • 3.0.5
    • Posting
    • None
    • PHP Environment:
      Database:

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: