Is there any way to crop larger?

#2
[eluser]andrewtheandroid[/eluser]
[quote author="Chad Crowell" date="1258595610"]I am uploading and resizing an image to 315x315, which is working fine. As expected, when the image is not square it is resizing to keep the aspect ratio, so something like 315x280. This is great.

After that happens I would like to crop the image to 315x315, so essentially it would center the image vertically, and add white background to the top and bottom to make it square, and then save it.

Is this possible?
How?[/quote]

Do you need to crop it or can you display it with top and bototm vertically using css? you can make the container for the image 315x315 and set the padding or margins of the picture to make it center vertically.

As for actually for the image manip I havent really looked at that but maybe you could use GD to resize the canvas by creating a background image 315x315 white then merging it with your image?


Messages In This Thread
Is there any way to crop larger? - by El Forum - 11-18-2009, 01:53 PM
Is there any way to crop larger? - by El Forum - 11-18-2009, 08:08 PM
Is there any way to crop larger? - by El Forum - 11-18-2009, 11:03 PM
Is there any way to crop larger? - by El Forum - 11-19-2009, 12:06 AM
Is there any way to crop larger? - by El Forum - 11-19-2009, 12:13 AM
Is there any way to crop larger? - by El Forum - 11-19-2009, 11:39 AM
Is there any way to crop larger? - by El Forum - 11-19-2009, 01:07 PM
Is there any way to crop larger? - by El Forum - 11-19-2009, 04:21 PM
Is there any way to crop larger? - by El Forum - 11-19-2009, 09:54 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.