Page 1 of 1

Error merging two tiff images

Posted: 2019-09-07T00:41:11-07:00
by mohammadreza
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...

Re: Error merging two tiff images

Posted: 2019-09-07T02:42:52-07:00
by dlemstra
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.

Re: Error merging two tiff images

Posted: 2019-09-07T05:40:45-07:00
by mohammadreza
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