thumb sharpening breaking on gif files thumb sharpening breaking on gif files
 

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

thumb sharpening breaking on gif files

Started by nickfzx, November 09, 2006, 04:04:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nickfzx

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://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Famateurillustrator.com.s2734.gridserver.com%2Fthumbs.jpg&hash=ecf5a0a09039b2e47de4aee9b88d0ef5cfc84a6a)

Any ideas?

Cheers

Nick

nickfzx

has no one else experienced this...the two on the left are jpegs and the two on the right are gif files.

Hein Traag

As they say... patiencie is a virtue. Give it a few days before expecting an answer from someone who knows.

Cheers!
Hein

Stramm

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
            if ($sharpen==1 && $CONFIG['enable_unsharp']==1) {
and replace with
            if ($sharpen==1 && $CONFIG['enable_unsharp']==1 && $imginfo[2] != GIS_GIF) {

nickfzx