Converting color TIFF to CCITT G4 compression
Moderators: XnTriq, helmut, xnview
-
- Posts: 6
- Joined: Sat Feb 02, 2019 6:24 pm
Converting color TIFF to CCITT G4 compression
Help me, please. I have an color (LZW, or else) tiff, how can I simple compress it into CCITT group 4?
-
- XnThusiast
- Posts: 3691
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: Converting color TIFF to CCITT G4 compression
CCITT G4 compression is only applicable to 1-bit (black and white) images, so you wish to convert a color TIFF to black and white and save it with CCITT G4 compression?sergiokapone wrote: ↑Sat Feb 02, 2019 6:29 pm I have an color (LZW, or else) tiff, how can I simple compress it into CCITT group 4?
-
- Posts: 6
- Joined: Sat Feb 02, 2019 6:24 pm
Re: Converting color TIFF to CCITT G4 compression
Yes, I want to convert a color TIFF to black and white and save it with CCITT G4 compression.
-
- XnThusiast
- Posts: 3691
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: Converting color TIFF to CCITT G4 compression
The conversion to black and white can be performed using the following option:
So, for example, to convert without using any of the above dither options use:
The compression options for saving to the TIFF format are:
So to output to TIFF format with CCITT G4 compression use:
Do you have the NConvert Help file listing?
Note:
I am away from home and using my Linux laptop, so I can't test code as I normally would without booting into Windows 10 which I would really rather avoid...
Code: Select all
-binary dither : Convert in Binary
pattern : Ordered pattern
floyd : Floyd steinberg
halft45 : Halftone 45
halft90 : Halftone 90
nodither : No dithering
Code: Select all
-binary nodither
The compression options for saving to the TIFF format are:
Code: Select all
-c value : Compression number
default : 0 (uncompressed)
TIFF : 1 (Rle), 2 (LZW), 3 (LZW+Prediction)
4 (ZLIB)
5 (CCITT G3), 6 (CCITT G3-2D), 7 (CCITT G4) only B/W
8 (JPEG) only 24/32 bits
Code: Select all
-out TIFF 7
Note:
I am away from home and using my Linux laptop, so I can't test code as I normally would without booting into Windows 10 which I would really rather avoid...

-
- Posts: 6
- Joined: Sat Feb 02, 2019 6:24 pm
Re: Converting color TIFF to CCITT G4 compression
cday, thank you. This is that what I neen.