-colors increase file size

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: XnTriq, helmut, xnview

ad.aimm
Posts: 3
Joined: Mon Jan 28, 2013 9:35 am

-colors increase file size

Post by ad.aimm »

hello,

i'm trying to convert pdf to tiff and reduce tiff size. so i want to reduce color space to a little value but when i add -colors switch, file size increase.

for example (nconvert 6.3) :
nconvert -out tiff -c 8 -q 15 -dpi 150 -rmeta -autocontrast -autolevels -rtype lanczos -xall -multi -o d.tiff s.pdf = 212ko
nconvert -out tiff -c 8 -q 15 -dpi 150 -rmeta -autocontrast -autolevels -rtype lanczos -xall -multi -colors 16 -o d.tiff s.pdf = 1063ko

thx in advance,

regards,

ad.
User avatar
xnview
Author of XnView
Posts: 43833
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: -colors increase file size

Post by xnview »

-c 8 is for jpeg compression, so try -c 4 or -c 2
Pierre.
ad.aimm
Posts: 3
Joined: Mon Jan 28, 2013 9:35 am

Re: -colors increase file size

Post by ad.aimm »

hello,

thx you, it works fine with -c 2, -c 3 or -c 4, file is smaller now.

otherwise, can you tell me how use -noise switch to reduce noise ? because -noise reduce seems has no positive effect and add noise. is there a way to control the noise intensity ?

regards
User avatar
xnview
Author of XnView
Posts: 43833
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: -colors increase file size

Post by xnview »

Code: Select all

-noise reduce
Pierre.
ad.aimm
Posts: 3
Joined: Mon Jan 28, 2013 9:35 am

Re: -colors increase file size

Post by ad.aimm »

hi,

can we ajust noise reduction ? because -reduce noise is too strong.

regards,

ad
cday
XnThusiast
Posts: 4021
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: -colors increase file size

Post by cday »

The NConvert syntax can be obtained by typing the following code at the command prompt;

Code: Select all

nconvert -help
To save as a text file, type the following code at the command prompt.

Code: Select all

nconvert -help>filename.txt
Sorry, "-noise reduce" is not listed as having any alternative settings.