forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 modpack by Stramm => Topic started by: nickfzx on November 09, 2006, 04:04:04 pm

Title: thumb sharpening breaking on gif files
Post by: nickfzx on November 09, 2006, 04:04:04 pm
hi so if I turn on thumb sharpening it creates undesirable results if the images are gif files...jpegs work great and look a lot better.

here is an example of what happens:

http://amateurillustrator.com.s2734.gridserver.com/cpg/index.php

as I may be changing this link a lot here is a screenshot:

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Famateurillustrator.com.s2734.gridserver.com%2Fthumbs.jpg&hash=ecf5a0a09039b2e47de4aee9b88d0ef5cfc84a6a)

Any ideas?

Cheers

Nick
Title: Re: thumb sharpening breaking on gif files
Post by: nickfzx on November 10, 2006, 02:38:02 pm
has no one else experienced this...the two on the left are jpegs and the two on the right are gif files.
Title: Re: thumb sharpening breaking on gif files
Post by: Hein Traag on November 10, 2006, 02:46:58 pm
As they say... patiencie is a virtue. Give it a few days before expecting an answer from someone who knows.

Cheers!
Hein
Title: Re: thumb sharpening breaking on gif files
Post by: Stramm on November 10, 2006, 02:57:28 pm
sharping (ie the unsharpen mask) adds more detail, hence colors, to the image. Cause the number of colors in a gif image are limited, the result may look (when sharpened) poor.

The most practical solution is to not allow sharpening for gif images

in include/picmgmnt.inc.php find
Code: [Select]
            if ($sharpen==1 && $CONFIG['enable_unsharp']==1) {and replace with
Code: [Select]
            if ($sharpen==1 && $CONFIG['enable_unsharp']==1 && $imginfo[2] != GIS_GIF) {
Title: Re: thumb sharpening breaking on gif files
Post by: nickfzx on November 10, 2006, 04:39:49 pm
that's great thanks