...

View Full Version : is there a function to optimise images so that i can improve my page load time?



LJackson
05-08-2009, 02:49 PM
Hi All,

ok i am pulling the image urlsout of a rss feed and then using <img src='' /> to display those images, unfortunatly as i have about 40 images being pulled out and displayed on my page the page load time suffers :(

is there a way i can condense the image file size for each image???

thank you
Luke

abduraooft
05-08-2009, 02:59 PM
is there a way i can condense the image file size for each image???
The best and usually adopted method is to make thumbnails of the size required to be presented, and then allow people to see the large images on specific requests(when they click or mouse-over the thumbnail).

LJackson
05-08-2009, 03:09 PM
hi mate the actual size of the images is on average 150x150 so i dont think i would benifit from using thumbnails? i am currently setting the image height attribute to 100 to resize them to a size i need.

any other ideas?

thanks
Luke

funnymoney
05-08-2009, 04:14 PM
height attribute doesn't resize image, it just shows it smaller. if you have 800x600 image width height atribute set to 100 server will still load 800x600 image, and browser will show it smaller couse of that height attribute

LJackson
05-10-2009, 10:12 PM
hi mate, i am aware of this but its the best way i can think of doing it without saving the images to my hdd and individually changing the resolution for each.

unfortunatly they are all jpg files as well which doesnt help :(

cheers

venegal
05-10-2009, 10:23 PM
Well the images seem to be already web-optimized, and you don't host them yourself. If you wanted to make them even smaller, you'd have to make your server script get them, resize them, and serve them to your users, which means either the user has to wait double the time until he sees the image, or the images will be hosted on your site, in which case you could of course do anything you want with them, i.e. control and optimize the way they are served.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum