Change html of thumbnails Change html of thumbnails
 

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

Change html of thumbnails

Started by coopersita, October 24, 2006, 08:21:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

coopersita

I made some modifications to my image management file, so that my thumbnails are set to a certain height, while intermediate images are set by max aspect.

http://forum.coppermine-gallery.net/index.php?topic=37602.0

I managed to do that, but now the html still gives the old width and height (I guess coppermine calculates dimensions based on database values for width and height instead of thumbs actual size), so even though the image is larger, still shows a small one. I've been looking at theme.php, but I can't find the code that uses to display the thumbnail.

Code:

<a href="thumbnails.php?album=10" class="albums"><img src="albums/userpics/10001/thumb_nabs.gif" class="image" width="30" height="50" border="0" alt="nabs.gif" /></a>


I just want to delete the width and height...

Code:

<a href="thumbnails.php?album=10" class="albums"><img src="albums/userpics/10001/thumb_nabs.gif" class="image"  border="0" alt="nabs.gif" /></a>


Is that in theme.php, because I can't find it... or is it in another file?

Right now I'm doing it with css, but in IE 6 it sometimes shows distorted images.

Joachim Müller

I guess you'll need to run util.php and modify it accordingly before.

coopersita

I tried updating all thumbnails thgourhg admin tools (images are resized properly), and then reloading file dimensions, but the html still comes out too small.

The html still shows proportions as if thumbnails were being resized to max aspec, instead of the height I hardcoded into util.php and upload.php.

I just need to get rid of the width and height of the html image tag.