CR2: System.NotSupportedException: Missing SOI marker offset for tiff with old jpeg compression
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- csharp
- Ambito
- computer-graphics
Direzione di ricerca
Start at TiffDecoderOptionsParser.ParseCompression, where the reported Missing SOI marker offset error is raised, and inspect the linked JpegSnoopReports/Lake.jpg.txt reference alongside the supplied Berries.CR2 asset. Reproduce the Image.LoadAsync call and determine whether the TIFF decoder can support this CR2 compression; done means the asset loads successfully with suitable regression coverage.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Prerequisites
- I have written a descriptive issue title
- I have verified that I am running the latest version of ImageSharp
- I have verified if the problem exist in both
DEBUGandRELEASEmode - I have searched open and closed issues to ensure it has not already been reported
ImageSharp version
3.1.2
Other ImageSharp packages and versions
Environment (Operating system, version and so on)
Windows 11 amd64
.NET Framework version
.NET 8.0
Description
In a project, I have test assets with a CR2 image
which windows file explorer provides the preview for:
However, loading this image with ImageSharp fails:
System.NotSupportedException: Missing SOI marker offset for tiff with old jpeg compression
at SixLabors.ImageSharp.Formats.Tiff.TiffThrowHelper.ThrowNotSupported(String message)
at SixLabors.ImageSharp.Formats.Tiff.TiffDecoderOptionsParser.ParseCompression(TiffDecoderCore options, Nullable`1 compression, ExifProfile exifProfile)
at SixLabors.ImageSharp.Formats.Tiff.TiffDecoderOptionsParser.VerifyAndParse(TiffDecoderCore options, ExifProfile exifProfile, TiffFrameMetadata frameMetadata)
at SixLabors.ImageSharp.Formats.Tiff.TiffDecoderCore.DecodeFrame[TPixel](ExifProfile tags, CancellationToken cancellationToken)
at SixLabors.ImageSharp.Formats.Tiff.TiffDecoderCore.Decode[TPixel](BufferedReadStream stream, CancellationToken cancellationToken)
at SixLabors.ImageSharp.Formats.ImageDecoderUtilities.Decode[TPixel](IImageDecoderInternals decoder, Configuration configuration, Stream stream, Func`3 largeImageExceptionFactory, CancellationToken cancellationToken)
at SixLabors.ImageSharp.Formats.ImageDecoderUtilities.Decode[TPixel](IImageDecoderInternals decoder, Configuration configuration, Stream stream, CancellationToken cancellationToken)
at SixLabors.ImageSharp.Formats.Tiff.TiffDecoder.Decode[TPixel](DecoderOptions options, Stream stream, CancellationToken cancellationToken)
at SixLabors.ImageSharp.Formats.Tiff.TiffDecoder.Decode(DecoderOptions options, Stream stream, CancellationToken cancellationToken)
at SixLabors.ImageSharp.Formats.ImageDecoder.<>c__DisplayClass3_0.<DecodeAsync>b__0(Stream s, CancellationToken ct)
at SixLabors.ImageSharp.Formats.ImageDecoder.<>c__DisplayClass12_0`1.<WithSeekableMemoryStreamAsync>g__PeformActionAndResetPosition|0(Stream s, Int64 position, CancellationToken ct)
--- End of stack trace from previous location ---
at SixLabors.ImageSharp.Formats.ImageDecoder.DecodeAsync(DecoderOptions options, Stream stream, CancellationToken cancellationToken)
at SixLabors.ImageSharp.Image.WithSeekableStreamAsync[T](DecoderOptions options, Stream stream, Func`3 action, CancellationToken cancellationToken)
I couldn't find much information whether or not Canon's CR2 support is deliberately left out. https://github.com/SixLabors/ImageSharp/blob/1f22bceef8bb79793cbdcc26ace38a726ad9b8c8/tests/Images/Input/Jpg/baseline/JpegSnoopReports/Lake.jpg.txt#L162 suggests it might not be intentional. Opening this issue just in case. :)
Steps to Reproduce
using Image berries = await Image.LoadAsync(@"C:\temp\Berries.CR2");
Images
- Lingua principale
- C#
- Stelle
- 8k
- Fork
- 899
- Merge medio
- 1g 5h
- PR unite (30g)
- 7
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di SixLabors/ImageSharp
-
needs triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
SixLabors/ImageSharp#3198 · 1 commento ·
-
Grayscale Icc profile color Apertabug metadata:icc
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
SixLabors/ImageSharp#3197 ·
-
needs triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
SixLabors/ImageSharp#3194 · 3 commenti ·
-
formats:exr
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
SixLabors/ImageSharp#3116 · 2 commenti · 1 reazione ·
-
needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 52/100
SixLabors/ImageSharp#2805 · 1 commento ·
Tutte le issue di SixLabors/ImageSharp
Issue simili
-
core dependencies
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
-
bug frontend good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
NavigationViewItemAutomationPeer implements IInvokeProvider but never advertises the Invoke pattern Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
unoplatform/uno#24629 ·
-
agentic-workflows Needs: Triage :mag: State: In-PR
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Down / Waiting for removal
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100