We are in the midst of building a photo gallery project and need to test out imagemagick and it's compression settings. So needless to say all of the resizing and compressing below will need to be achieved with imagemagick.
One note about RE-SIZING: The numbers below reflect the largest side of the image. So for example below I state a max width/height of 1600px. That means an image 4000x2000px will be re-sized to 1600x800px. But a vertical image sized 2000x4000 will be re-sized to 800x1600px. So the largest side is the side you use to measure.
This script will allow the following to occur:
- upload images as large as 8mb in file size to the server while keeping the original on the server
- on the upload page we want to select the compression number that will be used. So for example if we want to compress the image at the setting of "70" we are able to choose 70. Or if we want it to compress at "88" then we should have an input box on the page to put that number in and that is the setting the software will use to compress the image.
- the script will then create an image with a max of 1600px wide/high.
- the script will then generate a medium sized photo with a max width/height of 600px
- next the script needs to create two thumbnail sizes. The large thumbnail needs to be a max width/height of 275px. The small thumbnail needs to be re-sized to 75px at it's largest side.
- Finally the images then need to be stored in a directory when completed and produce a link to either download all the re-sized images or a link to view all of the images on a web page (like flickr all sizes page).