Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: 1 [2]   Go Down

Author Topic: [Solved]: All thumbnails blurry... in Firefox v3.x only?  (Read 15646 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.019 seconds with 20 queries.