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

Rotate thumbnail image according to orientation #1

Closed StefanOltmann closed 8 months ago

StefanOltmann commented 8 months ago

Would be nice to rotate the thumbnail image according to the image orientation, but without changing the actual image bytes.

This will do the transformation in CSS: https://github.com/StefanOltmann/exif-viewer/blob/d40af2e6c292627fb8c62c6aa73d6cd6be306615/app/src/wasmJsMain/kotlin/Main.kt#L83-L99

The problem is that after that the image size will not be correct.

I did not find a solution for this so far.

StefanOltmann commented 8 months ago

Fixed by #2 as it seems to be the only solution to this.