Creating multi-page TIFF image with JPEG compression

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Post Reply
User avatar
dma_k
Posts: 100
Joined: Tue Apr 14, 2009 8:50 am

Creating multi-page TIFF image with JPEG compression

Post by dma_k »

Dear xnview advanced users,

Perhaps you can advise me on following.
  • I have created two TIFF colour images with ZIP compression.
  • I have selected them and then applied Create → Multi Page file (Format = TIFF, Options: Color compression = JPEG, Filename = result).
The original file sizes were 10Mb+10Mb. The resulting file size is 8Mb which is too big: when I convert the source files to JPEG with 80% quality I get sizes 500K+500K. Even if I use 100% quality, I get 3Mb+3Mb = 6Mb size, but not 8Mb.

I wonder, if saving to TIFF uses the write options for JPEG?

Also how is it possible to extract JPEG data from TIFF and save it as JPEG (loseless)?

Thanks.
Last edited by dma_k on Sun Jan 01, 2012 11:59 pm, edited 1 time in total.
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Creating multi-page ITFF image with JPEG compression

Post by xnview »

dma_k wrote:when I convert the source files to JPEG with 80% quality I get sizes 500K+500K. Even if I use 100% quality, I get 3Mb+3Mb = 6Mb size, but not 8Mb.

I wonder, if saving to TIFF uses the write options for JPEG?
Oh right, the quality for TIFF jpeg is option/Write/Jpeg>quality, i'll add a quality settings in tiff options
Pierre.
User avatar
dma_k
Posts: 100
Joined: Tue Apr 14, 2009 8:50 am

Re: Creating multi-page ITFF image with JPEG compression

Post by dma_k »

xnview wrote:Oh right, the quality for TIFF jpeg is option/Write/Jpeg>quality, i'll add a quality settings in tiff options
I would be happy if it is so. But my calculations cannot prove this...
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Creating multi-page ITFF image with JPEG compression

Post by xnview »

dma_k wrote:
xnview wrote:Oh right, the quality for TIFF jpeg is option/Write/Jpeg>quality, i'll add a quality settings in tiff options
I would be happy if it is so. But my calculations cannot prove this...
Is it possible to have the 2 tiff files?
Pierre.
User avatar
Drahken
Posts: 884
Joined: Sun Apr 10, 2005 4:29 pm

Re: Creating multi-page ITFF image with JPEG compression

Post by Drahken »

Xnview does -not- use the tools->options->jpeg settings for jpeg compression of tiffs & never has for as long as I've used it. Perhaps that's how it's supposed to work, but it doesn't.
Go to the jpeg settings, set the quality very high, save an image as a tiff with jpeg compression. Now go back & set the jepg quality very low, save the same image as tiff with jpeg compression. Now compare the 2 resulting files. The filesize is identical.
Other settings such as progressive, DCT, smoothing, etc likewise have no effect on the tiff.
Oh the feuhrer, oh the feuhrer, oh the feuhrer's nipples bonk!
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Creating multi-page ITFF image with JPEG compression

Post by xnview »

ok, i'll check...
Pierre.
User avatar
dma_k
Posts: 100
Joined: Tue Apr 14, 2009 8:50 am

Re: Creating multi-page TIFF image with JPEG compression

Post by dma_k »

I have also noticed SamplesPerPixel: 3 in properties for the this kind of images. Is there any way to set the higher quality (2x2 and 1x1 samples)?
User avatar
dma_k
Posts: 100
Joined: Tue Apr 14, 2009 8:50 am

Re: Creating multi-page TIFF image with JPEG compression

Post by dma_k »

The problem is not connected with multi-page processing, but rather with saving of TIFF images with JPEG compression. Just "save as" the original TIFF image (with colour compression set to JPEG), and afterwards convert the original TIFF file into JPEG (quality value is the same in my case). I've got the 5x difference in size, although I suppose the size should be nearly the same. Or TIFF container can't use the same algorithms / optimizations / profiles, applicable for normal JPEG?

P.S. I've found similar issue related to ImageMagic.
Post Reply