WPDFD Articles: image loading problem on the user home page
started by Siva Charan on Jan 28, 2011 — RSS Feed
Siva Charan
Posts: 1
hello this is siva charan.i am developing a social networking site.like every social networking site my users also upload their profile images.but i am saving the profile image as it is without resizing it.because in the user home page his profile image is resized according to the user's (system)screen resolution(for example 500*350.it is not the exact div size.but it is always around this size).so i am keeping(saving) the image as it is and displaying the image to user accrding to his screen resolution using javascript.now my problem is since i am not resizing the images,large size images are taking more time to load.when i was thiinking on this i got a thought which might be the solution to this.and this is by uisng ajax i can resize the images at the server side adn after resizing that i can send it to browser.but noe i am geting a doubt that if i do this i need to resize the profile image whenever the user logsin.this is where i am feeling uncomfortable.if the user logs in for 20 time i need to create the resized imaged for 20 times.can i destry the images after resizing the image and sending it to the broeser by using imagedestroy.what is the solution to this problem
i have read an article in this forum that pre loading images in the next page might be the solution for image loading.but can i use that for mt problem.if so how can i preload images in next page.
Webmaster Can
Posts: 6
If you make css sprite technique you can have them load faster or. You make sure give them size width and height if browser reads these numbers can show faster the images.
Vikram Randhawa
Posts: 16
This problem due to the permissions of the Server side...
Because sometime image uploaded on the server but not visible because due the server permission it stored on the local PC.
Vikram Randhawa
Posts: 16
This is common problem which is occur due to heavy index page..because your index page include the ajax or other heavy controls due to which your page become heavy...
Dwayne Petterson
Posts: 2
This happened because of Ajax and heavy control. But how is it possible?
You must login to reply

