Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GIMP vs. TIFF B/W Pack Bit CCITT Group 4 (2D) FAX

504 views
Skip to first unread message

Mazi

unread,
Mar 2, 2003, 11:47:59 PM3/2/03
to
Can anyone please tell me how to configure GIMP-1.2.4 to support TIFF
B/W Pack Bit CCITT Group 4 (2D) FAX format? I have lots of document
that I would like to digitize using a scanner and save them on a CD
media. So far, I scanned them @ 600x600DPI and they are saved under
TIFF B/W Pack Bit CCITT Group 4 (2D) FAX format. However, there are
some files that I need to do some retouch/rotate and GIMP-1.2.4 could
not save it back with the same TIFF B/W Pack Bit CCITT Group 4 (2D)
FAX format (or may be I just don't know how) and the saved files
become 20x the size of their original files. The reason I want to save
it under TIFF B/W Pack Bit CCITT Group 4 (2D) FAX format is mainly
because I find this format gives the best quality and compression for
a B/W text document..

Thanks.

Phil Harper

unread,
Mar 3, 2003, 9:39:21 AM3/3/03
to
Mazi <Ma...@HotMail.com> wrote in message news:<c8n56vspe5n70c14g...@4ax.com>...

well, i'm afraid i can't answer your question, but is it worth trying
PNG as a replacement, especially if these scans are true black and
white(not greyscale) the compression should be pretty good, in fact
it's pretty good even if it's just greyscale, give it a try, i've
never had good results with TIFF personally, but then, i don't use
anything that specialises in the format.

Mazi

unread,
Mar 3, 2003, 5:11:01 PM3/3/03
to
On 3 Mar 2003 06:39:21 -0800, philh...@hotmail.com (Phil Harper)
wrote:

The scanned file is pure B/W @600x600 DPI. I tried your suggestion and
the created PNG file is about 1.2MB in size where as the original TIFF
B/W Pack Bit CCITT Group 4 (2D) FAX format is about 88KB in size. As
you can see, the PNG file is still about 13x larger than the TIFF B/W
with Pack Bit CCITT Group 4 (2D) FAX format file. A conversion like
this is definitely out of question.

Michael Schumacher

unread,
Mar 3, 2003, 8:04:45 PM3/3/03
to
Am Mon, 3 Mar 2003 schrieb Mazi:

> The scanned file is pure B/W @600x600 DPI. I tried your suggestion and
> the created PNG file is about 1.2MB in size where as the original TIFF
> B/W Pack Bit CCITT Group 4 (2D) FAX format is about 88KB in size. As
> you can see, the PNG file is still about 13x larger than the TIFF B/W
> with Pack Bit CCITT Group 4 (2D) FAX format file. A conversion like
> this is definitely out of question.

Did you convert the PNG to 1bit indexed or did you save it as RGB?

Michael

--
schumamls Netzpl@zle: http://schumaml.gmxhome.de

Mazi

unread,
Mar 3, 2003, 11:30:19 PM3/3/03
to
I just did "save as" and there is no option to convert the PNG to
1bit. The original file is in a B/W Pack Bit CCITT Group 4 (2D) FAX
format (I believe it is a 1bit/pixel).

Olivier Ripoll

unread,
Mar 4, 2003, 3:25:18 AM3/4/03
to
Mazi wrote:

> I just did "save as" and there is no option to convert the PNG to
> 1bit. The original file is in a B/W Pack Bit CCITT Group 4 (2D) FAX
> format (I believe it is a 1bit/pixel).
>

Image->Colors->indexed
then choose a 1 bit palette
then save.

Regards,

Olivier.

Marc 'BlackJack' Rintsch

unread,
Mar 4, 2003, 11:07:05 AM3/4/03
to

> I just did "save as" and there is no option to convert the PNG to
> 1bit. The original file is in a B/W Pack Bit CCITT Group 4 (2D) FAX
> format (I believe it is a 1bit/pixel).

Usually GIMP should tell you in the window title what format the Image has
(RGB, grayscale or indexed). I suspect loading such a TIFF results in a
grayscale image!?

You have to convert it before saving with Image->Mode->Indexed... (or
ALT+i) to an indexed image with 1 Bit Palette (and maybe without
dithering) and then save it as PNG.

Ciao,
Marc 'BlackJack' Rintsch

Mazi

unread,
Mar 4, 2003, 9:17:33 PM3/4/03
to

Thanks for the information. However, the saved PNG file (237,49 Bytes)
is still about 2.7x larger than the original B/W Pack Bit CCITT Group
4 (2D) FAX format (88,904 Bytes). BTW, I also did try to save the
converted 1 bit pixel image in TIFF pack bit and it yielded the file
with a much larger size, i.e. 943,096 Bytes. I opened this TIFF file
using imaging software made by Kodak found in my Win2k Adv Server (I
believe this software comes with Windows 2K) and found the TIFF file
was save in an uncompress 256 color format. Then, I converted the file
to a 1 bit/pixel and saved it with CCITT Group 4 (2d) Fax compression
format and the file size becomes 140,492 Bytes.

Mazi

unread,
Mar 4, 2003, 10:37:56 PM3/4/03
to

I did exactly what you had mentioned above and the saved files are
usually at least > 2x of original TIFF in a B/W Pack Bit CCITT Group 4
(2D) FAX format. I thought the extra Bytes are due to the edit;
however, I tried just load the original file, convert it to
1bit/pixel, and saved in PNG with a file > 2x larger than original
file. I am hoping someone will be able to guide me to save the file in
TIFF B/W Pack Bit CCITT Group 4 (2D) FAX format.

Olivier Ripoll

unread,
Mar 5, 2003, 5:01:49 AM3/5/03
to
Mazi wrote:

>
> Thanks for the information. However, the saved PNG file (237,49 Bytes)
> is still about 2.7x larger than the original B/W Pack Bit CCITT Group
> 4 (2D) FAX format (88,904 Bytes). BTW, I also did try to save the
> converted 1 bit pixel image in TIFF pack bit and it yielded the file
> with a much larger size, i.e. 943,096 Bytes. I opened this TIFF file
> using imaging software made by Kodak found in my Win2k Adv Server (I
> believe this software comes with Windows 2K) and found the TIFF file
> was save in an uncompress 256 color format. Then, I converted the file
> to a 1 bit/pixel and saved it with CCITT Group 4 (2d) Fax compression
> format and the file size becomes 140,492 Bytes.

CCITT fax 4 format is specially optimised for faxes in two colours, so PNG
won't beat it at this game, clearly
Here is a test I did with a scanned image, after converting it to B&W. The
soft used is Irfan Viewer for Windows (I think it works quite well in
Wine), but XNview gives the same results (slightly better) and also exists
on Unices.

Tiff:
without compression: 184 KiB
with lzw compression: 19 KiB
with packbits compression: 34 KiB
with joeg compression: 302 KiB
with zip compression: 17 KiB
now the three formats specially done for B&W
with huffmanRLE: 27KiB
with CCITT fax 3: 28KiB
with CCITT fax 4: 8KiB

PNG : 15 KiB

What to conclude?
1- PNG is from far the best of all-purpose formats here. But for a pure
B&W image, better is to use the CCITT fax 4 format
2- Jpeg is one of the best formats around the world in compression, but of
course not for a B&W image
3- Use Xnview or Irfan viewer for your problem.

Regards,

Olivier.


Mazi

unread,
Mar 7, 2003, 10:07:32 AM3/7/03
to

Thank you very much, Olivier. Just one more question: Does Irfan
viewer support B/W Pack Bit CCITT Group 4 (2D) FAX format file to save
the pure B/W image? My scanned files are all pure B/W (2 levels)
images.

Olivier Ripoll

unread,
Mar 7, 2003, 11:22:45 AM3/7/03
to
Mazi wrote:

The three formats, amomg which FAX 4, that are tested under the sentence "now
the three formats specially done for B&W" are only B&W. That's why I said PNG
is the best of all purpose format, because only fax 4 beats it, but cannot do
colour images.

Regards,

Olivier.

PS: Irfan is windows only (wine may be useful), but Xnview exists on both
Windows and Linux.

Mazi

unread,
Mar 9, 2003, 10:57:36 AM3/9/03
to

You did not seem to answer my question: Does Irfan View support a B/W
Pack Bit CCITT Group 4 (2D) FAX format file in saving? BTW, all my
scanned document files are in B/W; therefore, PNG is not a good choice
if I can have B/W Pack Bit CCITT Group 4 (2D) FAX format file
supported under GIMP. However, AFAIK it looks like GIMP does not
support this B/W Pack Bit CCITT Group 4 (2D) FAX format unless someone
can proof me wrong ... :)

Olivier Ripoll

unread,
Mar 10, 2003, 5:29:20 AM3/10/03
to
Mazi wrote:

>
> You did not seem to answer my question: Does Irfan View support a B/W
> Pack Bit CCITT Group 4 (2D) FAX format file in saving?

>The soft used is Irfan Viewer for Windows
>[...]


>now the three formats specially done for B&W

>[...]


>with CCITT fax 4: 8KiB

in the last to previous message, and

>The three formats, amomg which FAX 4, that are tested under the sentence
>"now the three formats specially done for B&W"
>are only B&W.

in my previous message.

Sincerely,

Olivier.

Mazi

unread,
Mar 10, 2003, 5:50:29 PM3/10/03
to
Thank you very much Olivier and I have appreciated your help and
patience to reponse to my posts.
0 new messages