[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.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

[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