[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.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

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