Last post Mar 27, 2011 07:38 PM by oneuser
Mar 26, 2011 06:39 PM|oneuser|LINK
I am using Graphics object to resize and crop an image and then finally save it to the disk.
I am either able to resize or crop but not both.
May be I am not passing the parameters to the graphics object correctly.
Just to add that my original image is of size 50 * 50.
I would first need to increase the size to 100 * 100 and then crop it to fit in 75 * 75 size.
(the requirement is not to scale it to 75 * 75 directly.
but to first resize to 100 * 100 and then crop it to 75 * 75 and then saving it.)
I think I am not using the Graphic object and Image object in the right way , passing it dimensions in wrong locations and hence it is either cropping or resizing but not doing both. Please help.
Mar 27, 2011 03:48 PM|smirnov|LINK
Mar 27, 2011 05:28 PMfirstname.lastname@example.org|LINK
This might help: http://nathanaeljones.com/163/20-image-resizing-pitfalls/
Also, take a look at imageresizingin.net
Mar 27, 2011 07:38 PM|oneuser|LINK
thanks for you help.
It works really cool.