xymak / smartcrop.php

smartcrop implementation in PHP
44 stars 12 forks source link

Center and not left-preferences #1

Open johnabela opened 6 years ago

johnabela commented 6 years ago

Hello,

I realize you have not touched this in a year, but just came across it.

The resizer seems to prefer to crop to the left, instead of keeping the Content-Aware content in the center.

Here is a prime example.

This photograph should be very easy for it to detect the primary content and crop it, keeping the statue in the center of the cropped image.

https://imgur.com/rVUUJal

However, the results are such that the statue is on the left side of the image, not center, where it seems like it would be expected.

Reference: https://imgur.com/a/yPvD5

Would be nice to see an update where the content was to be in the center of a crop/resize and not left-preferenced.

jarodium commented 2 years ago

I agree, but I would also be a plus, if smartcrop would take X/Y parameters to define a point of interest, much like jquery focus point does.