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

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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