 |
Results from the most recent live auction are here.
24 members in the live chat room. Join Chat!
| |
05-06-2008, 11:45 AM
|
· #1 | | New.Net Destroyer.... Name: Colin Behr Location: Devon - UK Join Date: Feb 2005
Posts: 2,923
NP$: 87.50 ( Donate)
| 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?
__________________
“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
|
| |
05-06-2008, 11:47 AM
|
· #2 | | Law and disorder Name: Kate Location: Expat Join Date: Aug 2005
Posts: 4,850
NP$: 949.11 ( Donate)
| 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 |
| |
05-06-2008, 11:50 AM
|
· #3 | | New.Net Destroyer.... Name: Colin Behr Location: Devon - UK Join Date: Feb 2005
Posts: 2,923
NP$: 87.50 ( Donate)
| 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
|
| |
05-06-2008, 12:24 PM
|
· #4 | | DNOA Member Name: Matthew Holt Location: 127.0.0.1 Join Date: May 2004
Posts: 4,862
NP$: 17.21 ( Donate)
| 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 |
| |
05-06-2008, 12:53 PM
|
· #5 | | New.Net Destroyer.... Name: Colin Behr Location: Devon - UK Join Date: Feb 2005
Posts: 2,923
NP$: 87.50 ( Donate)
| 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
|
| |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | |