Identification of actual container format from data stream #1867
-
Unless I am mistaken, For example, suppose I want to use ImageSharp to detect and rename |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You want to use the overload that returns an i.e. call
|
Beta Was this translation helpful? Give feedback.
You want to use the overload that returns an
IImageFormat
as anout
parameter.i.e. call
IImageInfo Identify(Stream stream, out IImageFormat format)
IImageFormat
then gives you access to things like the default mime type or file extensions all based on the actual format and not on the file path with the wrong extension.