Fits image format MagickImageCollection constructor error
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 58/100
Direzione di ricerca
Start by comparing how MagickImage and MagickImageCollection read FITS data, focusing on the collection stream and file read paths named in the stack traces. Reproduce with the attached sample FITS image and check the collection constructor tests for existing format coverage. Done means the collection constructors load the FITS image successfully without throwing, while existing collection reads still pass.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Magick.NET version
15.0.0
Environment (Operating system, version and so on)
Linux x64, Windows 11 x64
Description
Images in the .fts (Fits) image format cannot be constructed using any of the MagickImageCollection constructor overloads, see exceptions below.
When using any of the MagickImage constructor overloads, the Fits images are correctly instantiated.
- From constructor MagickImageCollection(Stream stream, MagickFormat format):
ImageMagick.MagickCorruptImageErrorException: UnexpectedEndOfFile '': No such file or directory @ error/fits.c/ReadFITSImage/427
at ImageMagick.MagickImageCollection.NativeMagickImageCollection.ReadStream(IMagickSettings`1 settings, ReadWriteStreamDelegate reader, SeekStreamDelegate seeker, TellStreamDelegate teller, Void* data) in /_/src/Magick.NET/Generated/Magick.NET.SourceGenerator/ImageMagick.SourceGenerator.NativeInteropGenerator/MagickImageCollection.g.cs:line 673
at ImageMagick.MagickImageCollection.NativeMagickImageCollection.ReadStream(IMagickSettings`1 settings, ReadWriteStreamDelegate reader, SeekStreamDelegate seeker, TellStreamDelegate teller) in /_/src/Magick.NET/MagickImageCollection.cs:line 2185
at ImageMagick.MagickImageCollection.AddImages(Stream stream, IMagickReadSettings`1 readSettings, Boolean ping) in /_/src/Magick.NET/MagickImageCollection.cs:line 2056
at ImageMagick.MagickImageCollection.Read(Stream stream, IMagickReadSettings`1 readSettings) in /_/src/Magick.NET/MagickImageCollection.cs:line 1166
at ImageMagick.MagickImageCollection.Read(Stream stream, MagickFormat format) in /_/src/Magick.NET/MagickImageCollection.cs:line 1155
at ImageMagick.MagickImageCollection..ctor(Stream stream, MagickFormat format) in /_/src/Magick.NET/MagickImageCollection.cs:line 163
- From constructor MagickImageCollection(string fileName):
ImageMagick.MagickCorruptImageErrorException: UnexpectedEndOfFile 'sample_1920×1280.fts': No such file or directory @ error/fits.c/ReadFITSImage/427
at ImageMagick.MagickImageCollection.NativeMagickImageCollection.ReadFile(IMagickSettings`1 settings) in /_/src/Magick.NET/Generated/Magick.NET.SourceGenerator/ImageMagick.SourceGenerator.NativeInteropGenerator/MagickImageCollection.g.cs:line 657
at ImageMagick.MagickImageCollection.AddImages(String fileName, IMagickReadSettings`1 readSettings, Boolean ping) in /_/src/Magick.NET/MagickImageCollection.cs:line 2100
at ImageMagick.MagickImageCollection.Read(String fileName, IMagickReadSettings`1 readSettings) in /_/src/Magick.NET/MagickImageCollection.cs:line 1195
at ImageMagick.MagickImageCollection.Read(String fileName) in /_/src/Magick.NET/MagickImageCollection.cs:line 1175
at ImageMagick.MagickImageCollection..ctor(String fileName) in /_/src/Magick.NET/MagickImageCollection.cs:line 182
Steps to Reproduce
Actual behavior: Attempting to construct a MagickImageCollection instance using an image in the .fts (Fits) format throws an exception.
Expected behavior: Attempting to construct a MagickImageCollection instance using an image in the .fts (Fits) format works correctly, as it does when constructing a MagickImage instance, and does not throw an exception.
Images
- Lingua principale
- C#
- Stelle
- 4k
- Fork
- 454
- Merge medio
- 12h 54m
- PR unite (30g)
- 3
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi 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 dlemstra/Magick.NET
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
dlemstra/Magick.NET#2087 · 2 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
dlemstra/Magick.NET#2098 ·
-
Incorrect ExifIfds for ImageHistory exif tag (or conversion issue from System.Drawing.Bitmap)Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
dlemstra/Magick.NET#2042 · 4 commenti ·
-
GPU supportAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
dlemstra/Magick.NET#1949 · 5 commenti ·
-
x3f image read errAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
dlemstra/Magick.NET#1936 · 1 commento ·
Tutte le issue di dlemstra/Magick.NET
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
ClickHouse/clickhouse-cs#689 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 7 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
vchelaru/FlatRedBall2#1481 ·
I maintainer di solito rispondono entro 1 giorno
-
ai-chat bug trivial
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
area-signalr
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
dotnet/aspnetcore#69842 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno