0

Hello,

I have 3 boxes on my website one 20x20 one 42x42 and the main picture which is 120x120. Images that are over 1mb cause the web site to load very slowly and i don't want to restrict the user to have to make a custom profile picture they should be able to upload any picture and have it down scale in size automatically. Is this possible. Yahoo.com does exactly what i want, you can upload a 4mb picture and it downscales the size on pages to decrease loading time.

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by brynFlew
1

This is possible using php via the gd library. Most installations of PHP now have this library installed by default. With this library you can draw graphs and resize images at the server end and deliver optimised graphics that way from a single image.

you can do the same with the Imagick library. google on resizing images with either of these. It's simple.

here's the first site in google I found, which covers both methods.
http://www.fliquidstudios.com/2009/05/07/resizing-images-in-php-with-gd-and-imagick/

But your pages must be php pages of course.

Edited by drjohn: n/a

Votes + Comments
Thanks
0

yes they have php in them, thats fine and thank you for this will try out soon. appreciate it

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.