iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-05-2005, 06:59 AM
WebProWorld New Member
 
Join Date: Jun 2005
Location: UK
Posts: 3
chris124 RepRank 0
Default Databases and Images

I have an asp web page that allows a user to request textual information from an Access Database, the results of this request are then displayed on a second asp web page.

What I want to happen now is that a thumbnail image is also called from the results of the users request, this thumbnail image then needs to have a hyperlink associated with it so that the user can click on it and see the full size image.

I don't want to embed these images into the Access Database as there are quite a few.

Any suggestions?
Reply With Quote
  #2 (permalink)  
Old 06-05-2005, 11:25 AM
ADAM Web Design's Avatar
WebProWorld 1,000+ Club
 
Join Date: Dec 2003
Location: Toronto, Ontario, Canada
Posts: 2,181
ADAM Web Design RepRank 1
Default

I run into this situation quite a bit, and here's what I do:

1) Create six fields in your textual information table: Picture, Picture_Width, Picture_Height, Thumbnail, Thumbnail_Width, Thumbnail_Height .

2) Put the corresponding values for each picture/thumb into those six fields in your table. Make sure you put the widths/heights in too. You'll need those so that your page won't take as long to render as it tries to figure out how big the pics are for you (it's better coding practice too!)

That's really all there is to it.
Reply With Quote
  #3 (permalink)  
Old 06-06-2005, 10:43 AM
WebProWorld New Member
 
Join Date: Jun 2005
Location: UK
Posts: 3
chris124 RepRank 0
Default Databases and Images

Thanks ADAMWebDesign, I'll give it a go.
Reply With Quote
  #4 (permalink)  
Old 06-13-2005, 07:07 PM
richkoi's Avatar
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Atlanta, GA
Posts: 451
richkoi RepRank 0
Default

I make all my images the same size and then imbed some php into the site to display the images:

<a href="javascript:popUp('productpopup.php?CODE=<? echo $CODE; ?>')">

[img]images/thumbs/<? echo $CODE; ?>.jpg[/img]

</a>

Rich
__________________
Me
Reply With Quote
  #5 (permalink)  
Old 06-14-2005, 12:56 AM
WebProWorld MVP
WebProWorld MVP
 
Join Date: Jul 2004
Location: Omaha
Posts: 2,714
brian.mark RepRank 3brian.mark RepRank 3
Default

I just read the image with ImageMagick and then figure the heights and widths. Sure beats getting a wrong value in the database, and it has a lot more flexibility than making them all the same size.

Brian.
__________________
ToolBarn.com, an Internet Retailer Top 500 and Inc. 500 Company | Tool Parts | Pet Supplies
Reply With Quote
  #6 (permalink)  
Old 06-14-2005, 02:36 PM
richkoi's Avatar
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Atlanta, GA
Posts: 451
richkoi RepRank 0
Default

What is the need of defining the image width and height in the database? When coding it into the site you just leave the image height and width out of the code and it will automatically display to the image specs.

Rich
__________________
Me
Reply With Quote
  #7 (permalink)  
Old 06-14-2005, 02:44 PM
WebProWorld MVP
WebProWorld MVP
 
Join Date: Jul 2004
Location: Omaha
Posts: 2,714
brian.mark RepRank 3brian.mark RepRank 3
Default H & W

Quote:
Originally Posted by richkoi
What is the need of defining the image width and height in the database? When coding it into the site you just leave the image height and width out of the code and it will automatically display to the image specs.

Rich
Height and width make pages render faster. Especially for those with dial-up. Broadband probably doesn't need it as much.

Brian.
__________________
ToolBarn.com, an Internet Retailer Top 500 and Inc. 500 Company | Tool Parts | Pet Supplies
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 06:39 AM.



Search Engine Optimization by vBSEO 3.3.0