sharpening intermediate images sharpening intermediate images
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

sharpening intermediate images

Started by danibo, September 19, 2006, 03:45:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

danibo

Hallo
is there a way to sharpen the intermediate images as you can do it with Stramms Mod Pack for the Thumbnails?
My uploaded pictures are relativly big and the resizing to the intermediate images is a big step. (From 3000pix to 400 pix)
Thanks
dani

Stramm

if you use the modpack.... find in picmgmnt.inc.php
($CONFIG['thumb_use'] == "ex") ? $resize_method = "any" : $resize_method = $CONFIG['thumb_use'];
        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;
}
}

and replace with
($CONFIG['thumb_use'] == "ex") ? $resize_method = "any" : $resize_method = $CONFIG['thumb_use'];
        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....

nickfzx

I want to do exactly this...sharpen the intermediate images.

I have the latest (1.4.10 I think) version of the modpack.

do you think this will still work stramm ?

did it work danibo?

Joachim Müller

Quote from: nickfzx on March 06, 2007, 02:41:24 AM
do you think this will still work stramm ?
Why don't you just try and let us know instead of asking the obvious? Stramm posted the code change that is suppossed to do what you're up to, so yes: he probably thinks that this will work. There's only one way to actually find out: try it. Stop wasting our time!

nickfzx

sorry GauGau your right...it was getting kind of later when I posted that.

As it happens I can't seem to get it to work.

I followed the instructions and then used the admin tools to recreate all the intermediate images, but there is no difference in them...they have had no sharpening applied (I am sure of this as I loaded a couple first so I could do before and after comparisons)

Is there something else I have to do or is it the code?

Any thoughts?

Stramm

works for batch add and http upload, the admin tools need extra work

in util.php find
                if (resize_image($work_image, $normal, $CONFIG['picture_width'], $CONFIG['thumb_method'], $CONFIG['thumb_use'], $watermark))
and replace with
                if (resize_image($work_image, $normal, $CONFIG['picture_width'], $CONFIG['thumb_method'], $CONFIG['thumb_use'], $watermark, 1))

nickfzx

wow thanks stramm that is great...I can't test it tonight but I will try it out tomorrow.

Thanks for getting back to me :)

nickfzx