a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Hosting from $3.99 per month!

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions. dd

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Setting maximum height and width for gifs

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> Setting maximum height and width for gifs
Page: [1]
 
kt

 

Posts: 195
Joined: 11/3/2004
Status: offline

 
Setting maximum height and width for gifs - 9/16/2005 7:19:34   
Hello

I have a page where users can upload a logo to a database, with a maximum size of 100x100 pixels. I then display these logos, from the database, at this full size, on another page.

But on yet another page, I'd like to display the logos, but much smaller, at a maximum size of 50x50 pixels.

At the moment I have

<img src="logo.gif" height="50" width="50">

but this is obviously disorting the image if it's not exactly 50x50. Is there a way to make the image keep the same proportions? I tried "maxheight" and "maxwidth" but couldn't get it to work - not sure if that's right anyway!

thanks, kt
golfer

 

Posts: 1819
Joined: 1/5/2005
From: Bath, Wiltshire, UK
Status: offline

 
RE: Setting maximum height and width for gifs - 9/16/2005 7:37:20   
You can reduce the size of your existing logo and save as the smaller version in your site then link that to where you want the smaller logos

_____________________________

Ian

'You'll miss me when I've gone'

(in reply to kt)
kt

 

Posts: 195
Joined: 11/3/2004
Status: offline

 
RE: Setting maximum height and width for gifs - 9/21/2005 8:03:56   
Thank for the reply Ian

The problem is that the pages are dynamic - users are uploading images all the time, in real time, to a database, so it's not practical to create a smaller version of each one.

Is there any other way?!

thanks, kt

(in reply to golfer)
d a v e

 

Posts: 4199
Joined: 7/24/2002
From: England (but live in Finland now)
Status: offline

 
RE: Setting maximum height and width for gifs - 9/21/2005 10:23:27   
can you ask your users to upload logos that fit in an a square area only? so even if their logo is say 70 x 30 they place it on a canvas of say 70x70??

_____________________________

David Prescott
Gekko web design

(in reply to kt)
kt

 

Posts: 195
Joined: 11/3/2004
Status: offline

 
RE: Setting maximum height and width for gifs - 10/1/2005 6:24:02   
thanks dave, I'll try that, see how I get on...!

kt

(in reply to d a v e)
Page:   [1]
OutFront Discoveries

All Forums >> Web Development >> General Web Development >> Setting maximum height and width for gifs
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts