[advanced search]
Results from the most recent live auction are here.
24 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming
User Name
Password

Old 05-06-2008, 11:45 AM   · #1
Zeeble
New.Net Destroyer....
 
Zeeble's Avatar
 
Name: Colin Behr
Location: Devon - UK
Trader Rating: (26)
Join Date: Feb 2005
Posts: 2,923
NP$: 87.50 (Donate)
Zeeble is just really niceZeeble is just really niceZeeble is just really niceZeeble is just really nice
AIDS/HIV Third World Education Animal Cruelty
Image resize problem

Hey guys,

Just wondering if you know the solution to a problem which I've been looking into for a while:

When an image gets resized for my thumbnail gallery, the image also gets squashed out of proportion. How can this be solved?


Please register or log-in into NamePros to hide ads
__________________
“It is not from the benevolence of the butcher, the brewer, or the baker, that we expect our dinner, but from their regard to their own interest.” - Adam Smith
Zeeble is offline   Reply With Quote
Old 05-06-2008, 11:47 AM   · #2
Kath
Law and disorder
 
Kath's Avatar
 
Name: Kate
Location: Expat
Trader Rating: (54)
Join Date: Aug 2005
Posts: 4,850
NP$: 949.11 (Donate)
Kath has a reputation beyond reputeKath has a reputation beyond reputeKath has a reputation beyond reputeKath has a reputation beyond reputeKath has a reputation beyond reputeKath has a reputation beyond reputeKath has a reputation beyond reputeKath has a reputation beyond reputeKath has a reputation beyond reputeKath has a reputation beyond reputeKath has a reputation beyond repute
Third World Education Find Marrow Donors! Find Marrow Donors! Find Marrow Donors! Find Marrow Donors! Animal Rescue Animal Cruelty AIDS/HIV
You mean you want to keep proportions ?
It would help if you could post some code.
__________________

ShopNames.com - Quality domain names at discount rates

PM me for a SedoPro endorsement code
Kath is offline   Reply With Quote
Old 05-06-2008, 11:50 AM   · #3
Zeeble
New.Net Destroyer....
 
Zeeble's Avatar
 
Name: Colin Behr
Location: Devon - UK
Trader Rating: (26)
Join Date: Feb 2005
Posts: 2,923
NP$: 87.50 (Donate)
Zeeble is just really niceZeeble is just really niceZeeble is just really niceZeeble is just really nice
AIDS/HIV Third World Education Animal Cruelty
Hi Kath,

Thanks for your reply.

That's right, I want to keep the image in proportion.

Let me give you an example of an image gallery, here:
http://ocyr.org/
__________________
“It is not from the benevolence of the butcher, the brewer, or the baker, that we expect our dinner, but from their regard to their own interest.” - Adam Smith
Zeeble is offline   Reply With Quote
Old 05-06-2008, 12:24 PM   · #4
mholt
DNOA Member
 
Name: Matthew Holt
Location: 127.0.0.1
Trader Rating: (75)
Join Date: May 2004
Posts: 4,862
NP$: 17.21 (Donate)
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
It looks like you're using HTML to set the width and height in the <img> tag. This is a no-no, unless you already know the size of the image!

To keep it in proportion, either just specify one attribute (EITHER width OR height, not both).

Keep in mind that by doing this, the full-size of those images is downloaded and it may take a while. Use a PHP script, or write your own, to resize images in proportion so that you can keep a thumbnail version of them handy.

Btw, I suggest converting your layout (which is very nice) into CSS. Tables are way passe.
__________________
FREE: Help With Code

Includes other technical topics:
programming, development, Windows, domain names, and Internet
mholt is offline   Reply With Quote
Old 05-06-2008, 12:53 PM   · #5
Zeeble
New.Net Destroyer....
 
Zeeble's Avatar
 
Name: Colin Behr
Location: Devon - UK
Trader Rating: (26)
Join Date: Feb 2005
Posts: 2,923
NP$: 87.50 (Donate)
Zeeble is just really niceZeeble is just really niceZeeble is just really niceZeeble is just really nice
AIDS/HIV Third World Education Animal Cruelty
Thanks very much for your response.

I agree, tables are outdated and we've updated on new sites, this one's just a bit behind.

I'm glad you like the design, it's one of my person favourites!
__________________
“It is not from the benevolence of the butcher, the brewer, or the baker, that we expect our dinner, but from their regard to their own interest.” - Adam Smith
Zeeble is offline   Reply With Quote
Reply

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Site Sponsors
Get Your Site Linked at LinkedKeywords.com http://www.dnfinder.com Thousand Dollar Profits
Advertise your business at NamePros
All times are GMT -7. The time now is 05:31 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0