Page 1 of 1

Multi Page and JBIG

Posted: Mon Apr 28, 2014 7:33 pm
by itsalesguru
I understand that JBIG does not support multi page, but is there anyway to compress a multi page pdf using JBIG in xnview?

Re: Multi Page and JBIG

Posted: Mon Apr 28, 2014 7:59 pm
by cday
XnView only supports reading JBIG2 files, with the appropriate plug-in, so I'm afraid the answer is no at present...

JBIG2 -- the current version -- is a very efficient compression method for 1-bit (black and white) images and comes in lossless and lossy forms; the lossless form produces rather smaller files than CCITT Group 4 (Fax 4) compression which is also lossless, but the latter would be quite a good choice if you're unable to find a viable solution for JBIG2, which isn't very well supported yet.

You should be able to create a multi-page PDF with 'Fax' compression using XnView, but if your input is a multi-page PDF it might be necessary to extract the images in the PDF first. I think that XnConvert can probably convert multi-page PDF to multi-page PDF directly.

Re: Multi Page and JBIG

Posted: Tue Apr 29, 2014 1:15 am
by itsalesguru
Cday, thank you for response, the files can be tiff or pdf. but they are multi images files, and I can not not find anything in Xnview, or Xnconvert to take multi page image and produce a multipage inage, pdf or tiff.

Re: Multi Page and JBIG

Posted: Tue Apr 29, 2014 7:14 am
by cday
itsalesguru wrote:... take multi page image and produce a multipage image, pdf or tiff.
Your input files are multi-page PDF or TIFF files, containing black and white images, and you wish to produce multi-page PDF or TIFF files with -- in the absence of JBIG2 compression -- CCITT G4 compression?

I'm fairly sure that can be done directly with XnConvert, if you could confirm that it is what you need...

Re: Multi Page and JBIG

Posted: Wed Apr 30, 2014 8:35 pm
by itsalesguru
yes that is what I want to do!

Re: Multi Page and JBIG

Posted: Thu May 01, 2014 11:52 am
by cday
An example of converting a multi-page TIFF file containing four 1-bit black and white images to a multi-page TIFF file with CCITT G4 compression, using XnConvert 1.63:

The input multi-page TIFF file was created from four single page 1-bit images with LZW compression so that the file was small enough to upload; the file size is 597 KB compared with the total file size for the four uncompressed single files of 3.10 MB.

First load the file to be converted...
Image_01.png
There is nothing to set in the Actions tab, but note that when a multi-page file has been loaded the Preview function on the tab only shows the first page image, it isn't possible to step through the images as for single-page files.
Image_03.png
Set the Format to TIFF and then click on Settings...
Image_04.png
Image_04.png (13.05 KiB) Viewed 1664 times
Select CCITT G4 compression.

The input multi-page file and the output multi-page file with CCITT G4 compression created are attached -- note the reasonbly small file size for the output file; a file using JBIG2 lossless compression if it could be created might be around 20% smaller.
Input_M-TIFF.tif
(596.83 KiB) Downloaded 64 times
Output_M-TIFF.tif
(296.11 KiB) Downloaded 59 times
A multi-page PDF file with CCITT G4 can be created in a similar way but as only five attachments are currently allowed in a post I sadly can't include the minor changes required or the resulting 283 KB PDF file in this post... (@xnview , @XnTriq ... please increase again... ).

Re: Multi Page and JBIG

Posted: Thu May 01, 2014 7:48 pm
by itsalesguru
@cday, thank you, will try it

Re: Multi Page and JBIG

Posted: Thu May 01, 2014 9:15 pm
by XnTriq
cday wrote:A multi-page PDF file with CCITT G4 can be created in a similar way but as only five attachments are currently allowed in a post I sadly can't include the minor changes required or the resulting 283 KB PDF file in this post... (@xnview , @XnTriq ... please increase again... ).
The maximum number of attachments per post has been increased to 8.

Re: Multi Page and JBIG

Posted: Thu May 01, 2014 9:24 pm
by cday
XnTriq wrote:The maximum number of attachments per post has been increased to 8.
Thank you! :D

Re: Multi Page and JBIG

Posted: Thu May 01, 2014 10:00 pm
by XnTriq
cday wrote:Thank you! :D
Thank you for your valued contributions, cday!
Oh, and (belated) congrats on your 2nd forum anniversary Image