Closed Thread Icon

Topic awaiting preservation: GetImageSize (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=12231" title="Pages that link to Topic awaiting preservation: GetImageSize (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: GetImageSize <span class="small">(Page 1 of 1)</span>\

 
Dark
Neurotic (0) Inmate
Newly admitted
posted posted 05-25-2002 07:50

Q: Is there anyways to tell all the images on a page to be a certain height and width without having to actually post something in the img tags? The way I have it is fine, but I'd avoid echoing $size in all the img tags.

I've been fooling around with diffrent php functions. I recently read about GetImageSize

So I used on a page that held 20 images from one of my Photoshop battles
All the images on the page are the same size so I did this

<?php $size = GetImageSize ("Gallery/Kriek_vs_edhall.jpg"); ?>

Then echo that size inside all the other img tags with <?php echo $size[3]; ?>
Which was pretty cool to say that least. ( I get excited at small stuff)



Dark

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 05-25-2002 09:15

Mmm. You might also be able to make a style sheet:

img {width:300px; height:300px;}

Dark
Neurotic (0) Inmate
Newly admitted
posted posted 05-25-2002 10:21

Yeah, I could do that, heh.
Sometimes I get so wrapped up in php
That I forget things like HTML + CSS.

I've never used CSS for that before.
I'll give it a shot.

Dark

« BackwardsOnwards »

Show Forum Drop Down Menu