Advanced search  

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

Pages: 1 [2]   Go Down

Author Topic: [Solved]: All thumbnails blurry... in Firefox v3.x only?  (Read 15637 times)

0 Members and 1 Guest are viewing this topic.

neil fitzgerald

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: [Solved]: All thumbnails blurry... in Firefox v3.x only?
« Reply #20 on: August 10, 2008, 07:07:12 am »

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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: [Solved]: All thumbnails blurry... in Firefox v3.x only?
« Reply #21 on: August 10, 2008, 08:22:50 am »

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

Nibbler

  • Guest
Re: [Solved]: All thumbnails blurry... in Firefox v3.x only?
« Reply #22 on: August 10, 2008, 05:21:10 pm »

Edit include/functions.inc.php, find

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

Change to

Code: [Select]
        $image_size['width'] =  (int) ($width / $ratio);
        $image_size['height'] = (int) ($height / $ratio);
Logged

neil fitzgerald

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: [Solved]: All thumbnails blurry... in Firefox v3.x only?
« Reply #23 on: August 11, 2008, 12:15:53 am »

That has fixed it! Thanks guys ;D
Logged

Nibbler

  • Guest
Re: [Solved]: All thumbnails blurry... in Firefox v3.x only?
« Reply #24 on: August 11, 2008, 02:31:23 pm »

Fixed in svn.
Logged
Pages: 1 [2]   Go Up
 

Page created in 0.02 seconds with 20 queries.