Thumbnails size issue Thumbnails size issue
 

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

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