Fits image format MagickImageCollection constructor error
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 58/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- C#
- Estrellas
- 4k
- Forks
- 454
- Merge medio
- 12 h 54 min
- PR fusionados (30 d)
- 3
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de dlemstra/Magick.NET
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
dlemstra/Magick.NET#2087 · 2 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
dlemstra/Magick.NET#2098 ·
-
Incorrect ExifIfds for ImageHistory exif tag (or conversion issue from System.Drawing.Bitmap)Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
dlemstra/Magick.NET#2042 · 4 comentarios ·
-
GPU supportAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
dlemstra/Magick.NET#1949 · 5 comentarios ·
-
x3f image read errAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
dlemstra/Magick.NET#1936 · 1 comentario ·
Todos los issues de dlemstra/Magick.NET
Issues similares
-
Attention: a throwing permission check on one contributor fails the whole aggregation requestAbiertoready-for-agent size:S status:todo
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
elsa-workflows/elsa-foundation#2830 ·
Los mantenedores suelen responder en 1 día
-
documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
[Bug]: Edit Bar buttons are not localizedPosiblemente ocupada @idumlupinar la tomó hoy. AbiertoStatus: New
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
dnnsoftware/Dnn.Platform#7565 ·
Los mantenedores suelen responder en 1 día
-
AzureBlobSnapshotStore.LoadAsync allocates the snapshot twice (growable MemoryStream + ToArray)Abiertoenhancement
Dificultad 2/5 Medio día Aptitud para principiantes 72/100
-
Dificultad 2/5 Medio día Aptitud para principiantes 70/100