But the only thing i get is the first Page of my Multipage Tiff. How to use the commands that alle "Settings" are done for all sites of the Multipage Tiff?
Co1m wrote:i have a colored Multipage Tiff and i want to greyscale the Multipage Tiff and do some optimazations...
From memory, I think the only way to do that is to first extract the images from the multi-page TIFF to a folder, then perform the operations you wish to perform on the images in the folder, and then create a new multi-page TIFF...
That would require three command lines performed successively, but you could put them all in a .bat batch file.
Hi Again
i found out, that this solution doesn't work in all cases. I have a folder with x Multipage Tiffs. I want that they become "greyscale" and small. But i want still x Multipage tiffs, not just one.
This command edits and resizes all MultiPage-Tiff-Files into ONE big Multipage Tiff-File:
SET INPUT_PATH=C:\Users\kga\Desktop\SCANNER-INPUT
SET PATTERN=*.tif
SET COMMAND=cmd /c C:\D3\xnView\nconvert.exe -quiet -o C:\Users\kga\Desktop\IRFAN-OUTPUT\%% -out tiff -multi -autocontrast -grey 16 -resize 50%% 50%% -c 2
forfiles /p "%INPUT_PATH%" /m %PATTERN% /c "%COMMAND% @file"
move C:\Users\kga\Desktop\IRFAN-OUTPUT\* V:\
del /f/s/q C:\Users\kga\Desktop\SCANNER-INPUT\*
The last two lines arent necessary. I'm just moving the output to another folder and deleting the files from the input folder. I know there is the option -D but there is a Bug with it. If you use -D NConvert deletes the original-Multipage-Tif-File after processing the first Page.
This batch-file takes all TIF-files from the input directory and process them one after another (for-loop for every tiff file) and output it to the output directory. After this he takes the hole bunch of files and moves the files to a new directory.
Thanks for posting your solution: forfiles looks an interesting option for running NConvert repetitively on a series of files when that is necessary, and looks to have simpler syntax than the 'DOS' FOR loop.
Are the TIFF images 24/32 bit, not 1-bit (black and white) or 8-bit (grayscale)?
8-bit
Although the JPG format supports 8-bit images, JPG compression for TIFF files is only supported in NConvert for 24/32 bit depths, as stated in the Help file.
You could possibly convert your TIFF files to 24-bit depth images and then save them with JPEG compression, adding a -q term to set the compression level...
Although the JPG format supports 8-bit images, JPG compression for TIFF files is only supported in NConvert for 24/32 bit depths, as stated in the Help file.
You could possibly convert your TIFF files to 24-bit depth images and then save them with JPEG compression, adding a -q term to set the compression level..
Thank you for help.
I've tried to convert my TIFF to 32-bit depth using
You have a multi-page TIFF file containing grayscale images that you wish to compress using JPG compression, so you need to convert to 24 or 32-bit colour depth...
se.semagin wrote:I can't find NConvert parameter to convert to 24 bit.