

Also ImageTragick was a thing, there are definitely security implications to adding dependencies to implement a feature in this way (especially on a shared instance). The API at the very least needs to handle auth, so that your images and videos don’t get rotated by others.
Then you have UX, you may want to show to the user that things have rotated (otherwise button will be deemed non-functional, even if it uses this one-liner behind the scenes), but probably don’t want to transfer the entire video multiple times to show this (too slow, costs data).
Yeah, it is one thing to add a one liner, but another to make a well implemented feature.
This has messed with me for the longest time. 24h just wraps around at 24, simple modulo 24 arithmetic.
12h? The hour and am / pm wrap around independently, and hence I am always confused whether 12pm is supposed to be midnight or noon. Zero based would have made more sense (with x pm being x hours after noon…)