- Issue created by @adamps
hook_file_presave()
it's "too late". The preview is wrongly oriented on the widget, and probably some thumbnail problems
#3129355: Autorotated media items thumbnails distorted →
.Here are some suggestions
exif_orientation_file_presave()
and instead always add an upload validator. This simplifies the code and solves the "too late" problems. Hence we remove _exif_orientation_rotate()
and the code can be directly in the FileImageExifOrientationConstraintValidator
.Active
1.0
Code