StefanOltmann / exif-viewer

Free online EXIF Viewer (made with Kotlin/WASM)
http://stefan-oltmann.de/exif-viewer
GNU Affero General Public License v3.0
29 stars 1 forks source link

scales the image if the rotation was changed #2

Closed Mephiztopheles closed 8 months ago

Mephiztopheles commented 8 months ago

a transform does break out from the normal layout. This can be compared to simply rotate the graphics2d in a swing context. To ensure the image does not exceed its parents dimensions we have to scale the image down

StefanOltmann commented 8 months ago

Thank you very much!

A better solution would be if the image could keep it's size when orientated, but I did not figure out how to solve that.

Below are the images I tested with.

testimage_rotated.jpg testimage_normal.jpg