[Solved]: All thumbnails blurry... in Firefox v3.x only? - Page 2 [Solved]: All thumbnails blurry... in Firefox v3.x only? - Page 2
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

[Solved]: All thumbnails blurry... in Firefox v3.x only?

Started by pharaohweb, June 18, 2008, 05:40:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

neil fitzgerald

Am I right that the thumbnail dimensions are not stored in the database (I couldn't see them)?
Also, I just noticed that thumbnails displayed by editpics.php are fine (not scaled). It looks to me like it is only thumbnails.php that causes the scaling error.
Does this provide any clues?

Joachim Müller

Individual thumbnail dimensions indeed are not being stored in the database, but they are being calculated based on the original.

Nibbler

Edit include/functions.inc.php, find


        $image_size['width'] = ceil($width / $ratio);
        $image_size['height'] = ceil($height / $ratio);


Change to


        $image_size['width'] =  (int) ($width / $ratio);
        $image_size['height'] = (int) ($height / $ratio);

neil fitzgerald