[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.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

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 2 Guests 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