mono / SkiaSharp

SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.
MIT License
4.44k stars 537 forks source link

[FEATURE] Adding metadata properties to JPEG images when using SKPixmap.Encode() #1139

Open mscherotter opened 4 years ago

mscherotter commented 4 years ago

Is your feature request related to a problem? Please describe. JPEG images and other image file types can have additional metadata properties that can enhance how the picture is interpreted by renderers. An example is the "/xmp/{wstr=http://ns.google.com/photos/1.0/panorama/}:ProjectionType" = "equirectangular" property which identifies an image as a 360 panoramic projection image. You can easily use the exiftool app https://exiftool.org/gui/ to add the metadata but I need to add it in the code of my app.

Describe the solution you'd like Add a dictionary property to SKJpegEncoderOptions to enable setting metadata properties when encoding JPEG images. Describe alternatives you've considered None known.

Additional context

andreasbrostencab commented 1 year ago

Any thoughts around this?

BenMcLean commented 3 months ago

PNG format has metadata as well which should be writable.