We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Add extra parameter while saving image as a Tiff

Problem Statement
We had following requirment
1) Tiff image saved with compression 4 (Fax Formate)
2) Following Tiff Fields should be present in Tiff Header
a) encodeParam.setCompression(TIFFEncodeParam.COMPRESSION_GROUP4);
b) encodeParam.setWriteTiled(false); // false means use strips.
c) encodeParam.setTileSize(0, 0); // tiling will make the file size much larger.
d) encodeParam.setLittleEndian(true); // create an Intel (II) format image
e) TIFFField(282, TIFFField.TIFF_RATIONAL, 1, new long[][] {{ xCurrentDPI, 1 } });
f) TIFFField(283, TIFFField.TIFF_RATIONAL, 1, new long[][] {{ yCurrentDPI, 1 } });

When we save using Aspose provided api, the file which is created does not have the above fields set, it only support the point 1 of above list.

What we need
See solution or apis which will allow us to set the above field list


Sorry for delayed response.

We have forwarded your inquiry to the development team to get better answers. As soon as we receive any updates, we will post them here.


Hi again,

Please share your source code that you used to output the barcode in Tiff file format.

Thank you