Skip to content

Unexpected file size increase adding EXIF data #1696

Answered by tocsoft
ccalinescu asked this question in Q&A
Discussion options

You must be logged in to vote

The ImageSharp pipeline is thus:

  1. You call Image.Load
  2. We read the entire image into memory, by decoding the compressed image format you provided in load
  3. We now have a fully decompressed set of pixel and metadata in memory (totally divorced from the source image data and compression)
  4. (Optionally) You make changes to the in memory image, be that the pixel or just metadata changes
  5. You call image.Save()
  6. We load up a Format encoder (jpeg, png, bmp etc) based on the path you passed in above
  7. We take the raw pixel and metadata and feed it into the the encoder along with our default (or what ever manually passed in set of) encoder configuration settings.
  8. We convert the raw pixel and metadata using…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ccalinescu
Comment options

Answer selected by ccalinescu
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants