I am using the IM's API to re-size the image.The image re-sized but got the following exception.
"Error in module TIFFFillStrip; C:\fromcode.tif.InputSinglePage.tif: Data buffer too small to hold strip 0"
My code is written to handle exception by returning an error .So i am getting the return value as error.is there any way to suppress these kind of unwanted errors.
And even i am not clear why this image has returned this error .
https://www.dropbox.com/s/148gkrvmf8v80 ... 7.tif?dl=0
Base code i used for conversion is
Code: Select all
image.read( input.c_str() );
Geometry gNewDensity(240,240);
image.resize("2193x1700!");
image.density(gNewDensity);
image.quality(g_nJpegQuality);
image.magick("TIFF");
image.compressType(Group4Compression);
image.type(BilevelType);
image.write("C:\Users\sireesha.lachhireddi\Desktop\imagemagic\rescale.tiff");
Sireesha