Imagesharp: PNGEncoder does not write EXIF data

Created on 12 Jun 2018  路  3Comments  路  Source: SixLabors/ImageSharp

Prerequisites

  • [x] I have written a descriptive issue title
  • [x] I have verified that I am running the latest version of ImageSharp
  • [x] I have verified if the problem exist in both DEBUG and RELEASE mode
  • [x] I have searched open and closed issues to ensure it has not already been reported

Description

PNGEncoder does not seem to write the EXIF chunk as expected, while this seems to be intentional I'd recommend adding the ability to turn this on or an API for writing it yourself as a user.

Steps to Reproduce

  • Encode PNG
  • View PNG's EXIF data using any online EXIF tool

System Configuration

Windows 10 / .NET Core 2.0

  • ImageSharp version: 1.0.0-beta0004
  • Other ImageSharp packages and versions:
  • Environment (Operating system, version and so on): Windows 10
  • .NET Framework version: .NET Core 2.0
  • Additional information:
png exif

Most helpful comment

i have started to work on this.

As the png EXIF is basically defined as: "it should be the same as in JPG", i was able to use the existing ExifReader. Encoding and Decoding seems to work in my first attempt.

All 3 comments

i have started to work on this.

As the png EXIF is basically defined as: "it should be the same as in JPG", i was able to use the existing ExifReader. Encoding and Decoding seems to work in my first attempt.

@brianpopow Ah fantastic, Thanks!

Yeah our EXIF API is nicely decoupled from the individual image formats so once you have reading/writing the chunk identifiers it should work immediately.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jarroda picture jarroda  路  3Comments

devedse picture devedse  路  3Comments

marcpabst picture marcpabst  路  3Comments

Hawxy picture Hawxy  路  3Comments

artem-avanesov picture artem-avanesov  路  3Comments