Closed dlemstra closed 1 month ago
Hi, with the removal of FormatInfo, what is the new way to get the MIME type of an image? I can't figure out how it is supposed to work.
Thanks for coming here and asking that question. I will update the comment to make this more clear. You should use use MagickFormatInfo.Create(image.Format)
instead.
Thanks for the help!
This issue describes the planned breaking changes for Magick.NET
14.0.0
:Chromaticity
(IChromaticityInfo
) toIMagickImage
that combines the following properties:EncodingGeometry
,IsDisposed
andFormatInfo
fromMagickImage
.MagickImage.Interlace
readonly and add an option forInterlace
to theMagickSettings
.MagickImage.ColorType
.OrientationType.LeftBotom
.ExifTag.TimeZoneOffset
(should beshort[]
).IReadOnlyCollection<T>
toIReadOnlyList<T>
where possible.GetData
fromIImageProfile
.LogEventArgs.Message
andIImageProfile.ToByteArray()
.LogEvents
toLogEventTypes
.DrawablePushPattern.ID
toDrawablePushPattern.Id
.EightBimValue.ID
toEightBimValue.Id
.TiffReadDefines.IgnoreExifPoperties
toTiffReadDefines.IgnoreExifProperties
.PixelCollection.GetIndex
toPixelCollection.GetChannelIndex
and change the return type touint?
.IMagickImage.Map
andIMagickImageCollection.Map
toRemap
.RePage
toResetPage
inIMagickImage
andIMagickImageCollection
.Compare
overload that now needs anIMagickImage
and return the image instead.SrgbHuPhash
andHclpHuPhash
fromIChannelPerceptualHash
and add a new method that will return the hash and colorspace for a specified index and returnnull
when the colorspace is invalid.Drawable
andPath
classes immutable.ErrorMetric
ofCompareSettings
mandatory and immutable through the constructor.ComplexOperator
ofComplexSettings
mandatory and immutable through the constructor.Path
andDrawable
classes to a separate namespace.Color*
classes to a separate namespace.Factory
classes to a separate namespace.Morphology
overloads becauseMorphologySettings
should be used instead.Grays
,Sync
andDefault
from theChannels
.DdsWriteDefines.Mipmaps
toDdsWriteDefines.MipmapCount
.NearLossless
from theWebPWriteDefines
.Whitebalance
toWhiteBalance
in the properties of theDngReadDefines
.DistortMethod
to theDistortSettings
DeskewSettings
and add a new method that should be used instead.long
properties fromIOpenCLKernelProfileRecord
toulong
and remove theAverageDuration
property.int
touint
.CreateThumbnail
extension method ofIExifProfile
will no longer be available innetstandard20
.MagickFormat
,PixelMapping
.netstandard21
tonet6
(the oldest dotnet LTS)Development notes:
ElementAt
with indexer once the switch toIReadOnlyList<T>
is done.IReadOnlyCollection
check andObsoleteAttribute
check fromDrawablesGenerator
.uint
and check ifThrow.IfNegative
is still required.