Image Crop

See all posts Reply

Image Crop new!
by Taylor Bayouth, 17 years, 3 months ago
I want to use the values on the right side of this page in conjunction with the image_crop function. image_crop uses TBLR as values but this tool uses XYWH. Does anyone know the math I need to do to get this to translate so I can crop accordingly?Reply
Re: Image Crop new!
by colin, 17 years, 3 months ago
If you know the size of the image beforehand, it is easy. Otherwise, it is hard to include the calculations within the process of the class since you will know the image dimensions only after it is uploaded.

I will see what I can do, and might actually implement a possibility to use XYWH besides TBLR.

PS: Thanks for the donation!Reply
Re: Image Crop new!
by Taylor Bayouth, 17 years, 3 months ago
I already know the size because I am NOT uploading... I am altering a local file.Reply