Error merging two tiff images

Magick.NET is an object-oriented C# interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick.NET
Post Reply
mohammadreza
Posts: 2
Joined: 2019-09-07T00:07:15-07:00
Authentication code: 1152

Error merging two tiff images

Post by mohammadreza » 2019-09-07T00:41:11-07:00

Hi,
When I merge two large tif images, the output is corrupted.
I use Magick.NET-Q16-x64 V7.14.3.

Code: Select all

                using (MagickImageCollection images = new MagickImageCollection())
                {

                    MagickNET.SetTempDirectory(@"d:\");

                    images.Add(new MagickImage(txtAddress2.Text, new MagickReadSettings { Endian = Endian.LSB }));
                    images.Add(new MagickImage(txtAddress1.Text, new MagickReadSettings { Endian = Endian.LSB }));

                    using (IMagickImage image = images.AppendHorizontally())
                    {
                        image.Endian = Endian.LSB;
                        image.Settings.SetDefine("tiff:endian", "lsb");
                        image.Write(@"d:\output" + new Random().Next() + ".tif");
                    }

                }
And I Try ImageMagick Q16 v 7.0.8

Code: Select all

convert _1.tif _11.tif +append -define tiff:endian=lsb 123.tif

magick: Unknown field with tag 292 (0x124) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/1013.
magick: Unknown field with tag 32785 (0x8011) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/1013.
magick: Unknown field with tag 292 (0x124) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/1013.
magick: Unknown field with tag 32785 (0x8011) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/1013.

System Information :
OP: win 10 x64
Ram:64Gig
Cpu:I7
GPU: 8Gig
FreeSpace:400Gig

Tif Format :

size: 2Gig

Mode : bitmap

Compression : lzw

pixel order : interleaved

byte order : lsb




Thanks for the help...

User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Error merging two tiff images

Post by dlemstra » 2019-09-07T02:42:52-07:00

Without your images we cannot reproduce your issue. You can post them on something like DropBox or OneDrive. And can you clarify why you think that the output is corrupted.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate

mohammadreza
Posts: 2
Joined: 2019-09-07T00:07:15-07:00
Authentication code: 1152

Re: Error merging two tiff images

Post by mohammadreza » 2019-09-07T05:40:45-07:00

hi dlemstra ,

OneDriveFiles : https://1drv.ms/u/s!AlD9jC3hP9FTcEB2J2r ... E?e=JFVewK

Four files have been shared.

Original Files Name : _1.tif and _11.tif

Created With Magick.NET-Q16-x64 V7.14.3 : dotnet.tif

Created With ImageMagick Q16 v 7.0.8 : magickcmd.tif

11Gig Temp File ! Isn't that too much?

Image

ImageMagick Q16 v 7.0.8 Hardware Usage

Image

Magick.NET-Q16-x64 V7.14.3 Hardware Usage . Why not use all the hardware?

Image


When working on files larger than 2GB . Hard disk space is Full ! My free Space is 400 Gig

Post Reply