Image Upload
Posted: Thu Jun 03, 2004 9:51 am
Hello everybody,
I'm trying to design a website where a user can upload images which are then used at 2 different sizes throughout the site (thumbnail and full size). Does anyone know of the easiest way to do this with PHP? Would it be best to write a function to take care of this, use GD, or something like ImageMagick. Does anyone know what the best option for this sort of thing is?
Is the resizing done when the image is uploaded and then saved as 2 different files (1 big 1 small) or is the original image saved and the resizing done when the page is called to display it. The reason I ask, is that I have seen systems that let an administrator choose what size they want the images to be displayed at. This size can be changed many times without any loss of image quality (which would happen if the image was made very small and then very big) does this mean that the image is resized when the page is called?
Any help would be muuuuuuch appreciated.
I'm trying to design a website where a user can upload images which are then used at 2 different sizes throughout the site (thumbnail and full size). Does anyone know of the easiest way to do this with PHP? Would it be best to write a function to take care of this, use GD, or something like ImageMagick. Does anyone know what the best option for this sort of thing is?
Is the resizing done when the image is uploaded and then saved as 2 different files (1 big 1 small) or is the original image saved and the resizing done when the page is called to display it. The reason I ask, is that I have seen systems that let an administrator choose what size they want the images to be displayed at. This size can be changed many times without any loss of image quality (which would happen if the image was made very small and then very big) does this mean that the image is resized when the page is called?
Any help would be muuuuuuch appreciated.