Support rotation settings on Element
The Element model will require a few new fields to support image rotation:
-
rotation_angleis a positive integer, between 0 and 360, defaults to 0 -
mirroredis a boolean, default to False that should only define mirroring on the vertical axis to match IIIF spec
These fields should be editable from:
- the django Admin for Element
- the API endpoints:
-
CreateElementas non required fields -
UpdateElementas non required fields -
PartialUpdateElementas non required fields
-
No rotation is applied by the backend, the data is only stored.
All children elements should be rotated using the same parameters.
No need to support those changes on bulk endpoint CreateElements for now. This may come at a later stage, if needed.
As an aside note, these changes do not require #787 (closed)
Edited by Bastien Abadie