Giter Site home page Giter Site logo

stefanoltmann / exif-viewer Goto Github PK

View Code? Open in Web Editor NEW
27.0 27.0 1.0 14.46 MB

Free online EXIF Viewer (made with Kotlin/WASM)

Home Page: http://stefan-oltmann.de/exif-viewer

License: GNU Affero General Public License v3.0

Kotlin 10.45% HTML 89.55%
avif exif exif-viewer heic jpeg-xl jpg jxl kotlin metadata png tiff wasm webassembly webp

exif-viewer's People

Contributors

mephiztopheles avatar stefanoltmann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mephiztopheles

exif-viewer's Issues

Rotate thumbnail image according to orientation

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:

// /*
// * Use CSS to rotate the image to keep the original image bytes.
// * If the user saves the image to disk it should still be identical to
// * the output of "exiftool -b -ThumbnailImage test.jpg > thumb.jpg".
// */
// val styleTransform = when (orientation) {
// TiffOrientation.MIRROR_HORIZONTAL -> "scale(-1, 1)"
// TiffOrientation.UPSIDE_DOWN -> "rotate(180deg)"
// TiffOrientation.MIRROR_VERTICAL -> "scale(1, -1)"
// TiffOrientation.MIRROR_HORIZONTAL_AND_ROTATE_LEFT -> "rotate(-90deg) scale(1, -1)"
// TiffOrientation.ROTATE_RIGHT -> "rotate(90deg)"
// TiffOrientation.MIRROR_HORIZONTAL_AND_ROTATE_RIGHT -> "rotate(90deg) scale(1, -1)"
// TiffOrientation.ROTATE_LEFT -> "rotate(-90deg)"
// else -> ""
// }
//
// imageElement.style.transform = styleTransform

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

I did not find a solution for this so far.

Fix hover-effect in integration

With #7 I implemented a feature that overflow values get highlighted.

It works in the local HTML files, but for some reason not in the integrated project.

This needs further investigation.

Suggestion - don't cut the PNG `tEXt` chunk

I really like your viewer, especially the hex viewer part.

The very popular https://github.com/AUTOMATIC1111/stable-diffusion-webui puts the generation parameters in the tEXt chunk and this far it's hard to find software that will display it (outside the stable-diffusion-webui itself). I also think the tEXt chunk is used by other ML image generators.

Ideally this should apply to the iTXt chunk as well, and if your really want to "take it all the way" remember that this one is UTF-8 encoded ๐Ÿ˜‰

For now I've just been using a normal hex viewer for this, but it's more convenient using something that understand "chunks".

Here is an example image generated by me so that it's safe to use:

00041-257608607

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.