Thumbnails size issue Thumbnails size issue
 

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]

Main Menu

Thumbnails size issue

Started by amitco, June 28, 2005, 11:48:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

amitco

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

Nibbler

Look in your include/functions.inc.php for

// Compute image geometry based on max width / height
function compute_img_size($width, $height, $max)


Scroll down to the return

return $image_size;

And on a line above that add

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.

amitco

thx a lot, works great!!!  ;D