To reduce the size of scanned images, you can try the following things:
- Scan images in Grey or B&W pixeltype by setting the PixelType property.
- Use a lower resolution. You can use the Resolution property before scanning. For existing images, you can also use the method SetDPI to lower its DPI.
- Choose a proper compression type for TIFF/PDF. The properties are TIFFCompressionType and PDFCompressionType
- If you want to save or upload the image as a JPEG file or a JPEG-encoded TIFF/PDF, you can decrease the value of the property JPEGQuality.
DWObject.TIFFCompressionType = EnumDWT_TIFFCompressionType.TIFF_JPEG; DWObject.JPEGQuality = 60; // default value is 80