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]   Go Down

Author Topic: File resolution and size under thumbnail  (Read 7792 times)

0 Members and 1 Guest are viewing this topic.

johanz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 54
File resolution and size under thumbnail
« on: September 19, 2008, 10:38:16 pm »

So yeah I want to put, so file size and resolution is shown under thumbnail.
I know it has been answered, but I can't find it.
Logged

Nibbler

  • Guest
Logged

johanz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 54
Re: File resolution and size under thumbnail
« Reply #2 on: September 19, 2008, 10:56:36 pm »

Thanks,resolution works, now, how to show image size?
Logged

Nibbler

  • Guest
Re: File resolution and size under thumbnail
« Reply #3 on: September 19, 2008, 10:59:09 pm »

Maybe something like this:

Code: [Select]
$caption .= '<span class="thumb_caption">' . floor($row['filesize']/1024) . ' KB</span>';
Logged

johanz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 54
Re: File resolution and size under thumbnail
« Reply #4 on: September 19, 2008, 11:00:58 pm »

Since they both contain $caption, won't it break something?
Logged

Nibbler

  • Guest
Re: File resolution and size under thumbnail
« Reply #5 on: September 19, 2008, 11:05:18 pm »

No. It will add to the $caption you already have.
Logged

johanz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 54
Re: File resolution and size under thumbnail
« Reply #6 on: September 19, 2008, 11:07:58 pm »

Looks like it works now
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 19 queries.