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

Author Topic: Thumbnails size issue  (Read 3877 times)

0 Members and 1 Guest are viewing this topic.

amitco

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Thumbnails size issue
« on: June 28, 2005, 11:48:10 am »

Hi,

I still new to Coopermine, but I went throughout the documentation and forum and could figure it out!

I want all my thumbs to be the same size.  I am creating them using dedicated software.
Even though the files on my server are the ones I have created, Coopermine display them in different sizes.

I have notice that in the generated page there are width and height attributes:
<a href="displayimage.php?album=5&pos=0"><img src="albums/test/thumb_basketball-crotch.jpg" class="image" width="78" height="100" border="0" alt="basketball-crotch.jpg" title="Filename : basketball-crotch.jpg Filesize : 56KB Dimensions : 400x515 Date added : Jun 28, 2005"><br /></a>

How can I remove the width and height attributes out of the <img>-tags for thumbnails? Or if anyone knows any other solution to the problem it will be greatly appreciated  :-X

Thanks,
Amit
« Last Edit: June 29, 2005, 05:54:20 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Thumbnails size issue
« Reply #1 on: June 28, 2005, 01:55:31 pm »

Look in your include/functions.inc.php for

Code: [Select]
// Compute image geometry based on max width / height
function compute_img_size($width, $height, $max)

Scroll down to the return

Code: [Select]
return $image_size;
And on a line above that add

Code: [Select]
if ($max == $CONFIG['thumb_width']) $image_size['geom'] = 'width="123" height="123"';
Changing the 123s to the width and height of the thumbnails you made.
Logged

amitco

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Thumbnails size issue
« Reply #2 on: June 28, 2005, 06:42:12 pm »

thx a lot, works great!!!  ;D
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.