• RSS |
  • Register |
  • Log in
  • Recently I’ve begun building a community using the open source Boonex Dolphin software CMS. One problem I was having was that, even after using the the site UI to improve image quality, it still seemed as if uploading images was ‘lossy’. After some research and a chat with the admins I came up with the following solution:

    The quality of the output JPEG files can be adjusted in inc/images.inc.php, where you need to replace the following line:

    $writeResult = imagejpeg( $dst_im, $dstFilename );

    with this one

    $writeResult = imagejpeg( $dst_im, $dstFilename, quality_in_percent );

    where quality_in_percent is a number from 0 to 100

    Categories: Creative ~ Trackback

    (c) 2008 Jonathan Gosier 41 queries. 1.488 seconds.