Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: 1000+ Single Page JPEG encoded TIFF takes lot of memory and throws an error.

$
0
0
Hello,

We are having an issue with 1000+ Jpeg Encoded Single Page TIFF images. Basically we are creating an MagickImage Collection object for each Jpeg Encoded Single Page TIFF in for loop. After importing couple of 200+ pages it used to throws an error as mentioned below. and also it takes around 1-2 GB of memory as well.

Error :
Magick: IO Error Writing Tag data 'TIFFWriteDirectoryTagData' @error/tiff.c/TIFFErrors/561
Here is the piece of code :
'Generate MagicKImage Object to remove jpeg header if exists.
Dim InBitMap As Bitmap = Nothing
Using images As New ImageMagick.MagickImageCollection(FilePath)
    InBitMap = images.ToBitmap()
End Using
Note : You can take any single page jpeg encoded tiff and make it 1000 copies and import it.

Kindly Suggest !!

Viewing all articles
Browse latest Browse all 3693

Trending Articles