You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to get the coordinates used for the sharp.strategy.entropy or sharp.strategy.attention crop?
I want to be able to store the crop data to database as x,y,width,height so that I can generate a cropbox on the front-end to match the already cropped thumbnail when users try to manually adjust it crop. Right now I'm placing the cropbox in the center which is confusing because it doesn't match the current thumbnail. Here's what I want the cropbox to look like: (matching the entropy-based thumbnail)
The text was updated successfully, but these errors were encountered:
miro-ux
changed the title
Retrieve Data from Entropy and Attention Crop
Retrieve coordinates from Entropy and Attention crop
Jul 10, 2017
Hello, this was previously available (up to v0.17.x) in undocumented/unsupported properties in the info part of the output.
To provide this in a supported manner we'd need to expose the results from libvips' smartcrop operation (which used and improved upon some of the original sharp logic of the same name).
Is there a way to get the coordinates used for the
sharp.strategy.entropy
orsharp.strategy.attention
crop?I want to be able to store the crop data to database as
x,y,width,height
so that I can generate a cropbox on the front-end to match the already cropped thumbnail when users try to manually adjust it crop. Right now I'm placing the cropbox in the center which is confusing because it doesn't match the current thumbnail. Here's what I want the cropbox to look like: (matching the entropy-based thumbnail)The text was updated successfully, but these errors were encountered: