Current time: 02-19-2020, 04:50 PM Hello There, Guest! (LoginRegister)

Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Image Dimensions
07-02-2010, 07:43 AM
Post: #2
RE: Image Dimensions
Hey There,

"If no dimensions are specified in the containing document, or if the dimensions specified don't match those of the actual images, the browser will require a reflow and repaint once the images are downloaded. To prevent reflows, specify the width and height of all images, either in the HTML tag, or in CSS"

I have height and width fields in my database for each image. I usually have a thumbnail version stored as well so I have a thumb width and thumb height as well.

What I would recommend is using a script to run through your database images and then update each entry with the height and width of the image. That way when you have to actually query the image on the frontend you can set the height and width dynamically without having to do that extra processing each time.
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
Image Dimensions - jarrod1937 - 07-02-2010, 07:13 AM
RE: Image Dimensions - - 07-02-2010 07:43 AM

Forum Jump:

User(s) browsing this thread: 1 Guest(s)