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
For my specific use case I need to have access to the size that was trimmed from all sides and not just top and left (trimOffsetTop, trimOffsetLeft) returned by the trim method.
The main reason is that I need to save the original position that the actual content had within the transparent background in its original canvas, so that I'm able to "recreate" the image if needed for example, by repositioning the content in a different canvas later.
In my cases there is no guarantee the top/bottom transparent space are equal, and the same applies to left/right as well.
Is it possible to achieve this with sharp right now? I could not find any related issues or discussions and I'm yet to read through the source code.
Something tells me I should be able to achieve this without sharp, before trimming, but I didn't want to come up with a solution that acts different than the trim and end up with inconsistent saved data vs output.
Thanks!
The text was updated successfully, but these errors were encountered:
Question about an existing feature
What are you trying to achieve?
For my specific use case I need to have access to the size that was trimmed from all sides and not just top and left (trimOffsetTop, trimOffsetLeft) returned by the trim method.
The main reason is that I need to save the original position that the actual content had within the transparent background in its original canvas, so that I'm able to "recreate" the image if needed for example, by repositioning the content in a different canvas later.
In my cases there is no guarantee the top/bottom transparent space are equal, and the same applies to left/right as well.
Is it possible to achieve this with sharp right now? I could not find any related issues or discussions and I'm yet to read through the source code.
Something tells me I should be able to achieve this without sharp, before trimming, but I didn't want to come up with a solution that acts different than the
trim
and end up with inconsistent saved data vs output.Thanks!
The text was updated successfully, but these errors were encountered: