coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 modpack by Stramm => Topic started by: redlock on October 25, 2006, 08:35:59 PM

Title: sharpening the normal pictures
Post by: redlock on October 25, 2006, 08:35:59 PM
Hello stramm,

your modepack sharpening the tumbnails. that is very good. can we do the same procedure for the normal pictures? these are unsharp too.
if, can you say to me what i can do ?

thanks already

best greet and sorry for me bad english

tom from germany
Title: Re: sharpening the normal pictures
Post by: Stramm on October 26, 2006, 08:21:45 PM
include/picmgmnt.inc.php

find
        if (max($imagesize[0], $imagesize[1]) > $CONFIG['picture_width'] && $CONFIG['make_intermediate'] && !file_exists($normal)) {
            if ($CONFIG['enable_watermark'] == '1' && $CONFIG['which_files_to_watermark'] == 'both' || $CONFIG['which_files_to_watermark'] == 'resized'){
if (!resize_image($work_image, $normal, $CONFIG['picture_width'], $CONFIG['thumb_method'], $resize_method, "true"))
                return false;
}
else {
if (!resize_image($work_image, $normal, $CONFIG['picture_width'], $CONFIG['thumb_method'], $resize_method, "false"))
            return false;
}
}


replace with

        if (max($imagesize[0], $imagesize[1]) > $CONFIG['picture_width'] && $CONFIG['make_intermediate'] && !file_exists($normal)) {
            if ($CONFIG['enable_watermark'] == '1' && $CONFIG['which_files_to_watermark'] == 'both' || $CONFIG['which_files_to_watermark'] == 'resized'){
if (!resize_image($work_image, $normal, $CONFIG['picture_width'], $CONFIG['thumb_method'], $resize_method, "true", 1))
                return false;
}
else {
if (!resize_image($work_image, $normal, $CONFIG['picture_width'], $CONFIG['thumb_method'], $resize_method, "false", 1))
            return false;
}
}


untested, but should work. Image size will be larger, significant larger

edit: I've just seen that I've pasted one excess line into the replacement code
Title: Re: sharpening the normal pictures
Post by: redlock on October 27, 2006, 10:46:13 AM
thanks