We want square images, preferably at print quality, from user uploads. So, ideally, our preview box (which is roughly 175x175 pixels) will allow users to upload an image, crop a square out of it, and save.
The utility seems to be working great on the front end, and it's passing base 64 encoded data to PHP, which I then convert to a file. However, no matter what the elected crop is, the script seems to pass data the literal 175x175 pixel selection, always zoomed to the top left.
We want square images, preferably at print quality, from user uploads. So, ideally, our preview box (which is roughly 175x175 pixels) will allow users to upload an image, crop a square out of it, and save.
The utility seems to be working great on the front end, and it's passing base 64 encoded data to PHP, which I then convert to a file. However, no matter what the elected crop is, the script seems to pass data the literal 175x175 pixel selection, always zoomed to the top left.
I'm calling croppit with:
$('.image-editor').cropit({
And saving with:
$('#crop_button').click(function()
{});`
But no luck.
If I don't set the "max zoom", I can only zoom an image to 175x175 - which means that rectangular images can't be cropped into squares.
I've tried the exportZoom setting, it doesn't seem to do anything.
Can anyone offer some advice?