Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I am attempting to integrate autorotate with Manual Crop, (with s3fs thrown into the mix). Doing so, I am experiencing an issue wherein Manual Crop chooses a cropping area whose x,y beginning dimensions are flipped for images that have been autorotated.
Is there a simple programmatic way to detect within a subsequent action, if an autorotate has occurred? I'll have time to look at later, but thought I'd ask in case it is simple to answer.
Thanks!
Comments
Comment #1
dman CreditAttribution: dman commentedAs it stands, individual actions are atomic, and there is not a lot of contextual info passed around. Each process is independant.
However, we do have a &$data array that gets passed around and could be used for that.
Right now, no, there is no flag, or even reference to the original dimensions, but it would be reasonable to think about adding data into the array there where it could be visible later.
I can't think of a simple alternative way to deal with both autorotate AND manual crop at the same time, sorry.
Comment #2
fietserwinI guess this has been solved by now. Feel free to reopen if not, adding any additional info possible.