Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Senior Coder
    Join Date
    Jun 2008
    Location
    Cornwall
    Posts
    2,099
    Thanks
    297
    Thanked 12 Times in 12 Posts

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

    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

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    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).
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Senior Coder
    Join Date
    Jun 2008
    Location
    Cornwall
    Posts
    2,099
    Thanks
    297
    Thanked 12 Times in 12 Posts
    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

  • #4
    Regular Coder funnymoney's Avatar
    Join Date
    Aug 2007
    Posts
    364
    Thanks
    17
    Thanked 24 Times in 24 Posts
    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

  • #5
    Senior Coder
    Join Date
    Jun 2008
    Location
    Cornwall
    Posts
    2,099
    Thanks
    297
    Thanked 12 Times in 12 Posts
    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

  • #6
    Gütkodierer
    Join Date
    Apr 2009
    Posts
    2,127
    Thanks
    1
    Thanked 426 Times in 424 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •