Working with images
I have a bunch of event listings with an automatically resized image attributed to each listing. I am not sure how to go about saving and resizing these images and I am looking for advice. I will use the GD image library or ImageMagick.
There are the two ways I can think of going about it:
Option 1
The client creates a new event and the original image is uploaded to the /originals directory. A thumbnail is then immediately created in the /thumbnails directory.
Option 2
The client creates a new event and the original image is uploaded to the /originals directory. Every time an image is loaded, it is done dynamically using a controller called imageloaderController. This controller would resize the image from the original and keep a cache of resized images.
Has anyone worked with the GD image functions? What do you recommend?
|