A number of people have asked about cropping images with ImageGen. I've never thought it a good idea but Mark and Casey both point out that it could be a useful feature, even if cropping of the central portion of an image were all that were accomplished.
You've either wanted to do cropping with ImageGen or else have clients that want it. Please share your thoughts and advice on how this might be handled. Let's talk and come up with a great solution that doesn't require a user interface, just ImageGen and querystring parameters like it is now (with some new parameters, undoubtedly).
Here's a quiz to get your minds going. Using the existing ImageGen parameters (width, height, pad, constrain, etc), provide the appropriate querystring for accomplishing each of the following? Make up any new parameters you think ImageGen will need. I have an idea for how to do this but want to get your suggestions so we can have the best solution!
Starting with 800x600 photo called photo.jpg...
* Crop to 200x200 image, taken from the very center of the original image.
* Crop to the maximum sized square, showing center of the image
(results in 600x600, in this example).
* Crop to a square as above, then resize to 200x200
* Crop landscape image (800x600) into a portrait orientation with:
- the same proportions as the original (450x600)
- an arbitrary ratio (say, 1:2)
- a specified height and width (say, 100x600)
Are there any other scenarios you'd want to handle? Maybe cropping to save one edge, rather than the exact middle?
Thanks for all your thoughts and suggestions!
doug.
MVP 2007-2009 -
Percipient Studios