Go Back   CodingForums.com > :: Client side development > Graphics and Multimedia discussions

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-12-2010, 01:18 PM   PM User | #1
mikehende
Regular Coder

 
Join Date: Nov 2010
Posts: 295
Thanks: 105
Thanked 0 Times in 0 Posts
mikehende is an unknown quantity at this point
need help with file sizing issue please

Please see my site here:

http://www.funkadelicstudios.com/Reh...20Studios.html

Page takes way too long to load, what are my options here, only way is to make the actual file size smaller? If so then then will make the pics smaller on the page too right? Any other fix?
mikehende is offline   Reply With Quote
Old 11-12-2010, 02:26 PM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,680
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
You shouldn't use the attributes of <img> tag to resize a piture like this. Why do you need to load a 3,872px × 2,592px (1.3MB) large image to the page, when you show a 390px × 246px size? Make use of an image editing program to reduce the dimensions of the images to the required size.
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Users who have thanked abduraooft for this post:
mikehende (11-16-2010)
Old 11-12-2010, 03:08 PM   PM User | #3
mikehende
Regular Coder

 
Join Date: Nov 2010
Posts: 295
Thanks: 105
Thanked 0 Times in 0 Posts
mikehende is an unknown quantity at this point
I think one of my problems is understand file size vs pixel size. Since the pic area on the page which is what is needed is showing a pixel size of 400x250, to what size should I reduce the actual pic size on my hdd? The same?
mikehende is offline   Reply With Quote
Old 11-12-2010, 03:28 PM   PM User | #4
tracknut
Regular Coder

 
Join Date: Aug 2006
Posts: 892
Thanks: 4
Thanked 206 Times in 205 Posts
tracknut is an unknown quantity at this point
Yes. Keep the original large version of the picture of course, but the one on the web site ought to be the same size as needed for display. Regarding the physical size of the file in bytes (not pixels), that's only loosely related to the number of pixels, and can be manipulated by changing the "quality" of the jpeg while saving it out. Lower quality = smaller file size.

Dave
tracknut is offline   Reply With Quote
Users who have thanked tracknut for this post:
mikehende (11-16-2010)
Old 11-12-2010, 08:03 PM   PM User | #5
mikehende
Regular Coder

 
Join Date: Nov 2010
Posts: 295
Thanks: 105
Thanked 0 Times in 0 Posts
mikehende is an unknown quantity at this point
Finally got it done! Adjusted the size of all images even the slideshow images. Check the site please?

http://www.funkadelicstudios.com/index.html
mikehende is offline   Reply With Quote
Old 11-18-2010, 01:04 PM   PM User | #6
mikehende
Regular Coder

 
Join Date: Nov 2010
Posts: 295
Thanks: 105
Thanked 0 Times in 0 Posts
mikehende is an unknown quantity at this point
even though I edited the image sizes, I left the width and height attributes as they are, how will I know exactly what attributes to add or should I delete those width and height attributes?
mikehende is offline   Reply With Quote
Old 11-18-2010, 01:51 PM   PM User | #7
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,680
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Quote:
how will I know exactly what attributes to add or should I delete those width and height attributes?
You need to specify the width and height attributes, but that shouldn't be for resizing the image. Give the values same as that of the actual dimensions of image.

See http://www.highdots.com/forums/casca...utes-2619.html to know why do we need them.
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

Last edited by abduraooft; 11-19-2010 at 08:59 AM..
abduraooft is offline   Reply With Quote
Users who have thanked abduraooft for this post:
mikehende (11-18-2010)
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 08:59 AM.


Advertisement
Log in to turn off these ads.