Page 1 of 1

.tiff file conversion not happening properly.

Posted: Thu May 11, 2017 10:39 am
by punith8626
Hi
I have a tiff files in one folder where i need to generate thumbs for those multi tiff file.
Some TIFF files having extension .tif and some have .tiff

When I try to execute below command

Code: Select all

nconvert  -out  png -resize 87 112  -xall -o C:\thumbs\%.png C:\tiff\*.tif
It will convert both .tiff and .tif files in windows server 2008 but in case of windows server 2012 it will convert only for .tif files

Is there any setup needs to be done for server 2012 so that same command works for both .tif and .tiff files ?

Re: .tiff file conversion not happening properly.

Posted: Thu May 11, 2017 10:54 am
by cday
punith8626 wrote: I have tiff files in one folder where I need to generate thumbs for those multi tiff file.
Some TIFF files have extension .tif and some have .tiff

When I try to execute this command:

Code: Select all

nconvert  -out  png -resize 87 112  -xall -o C:\thumbs\%.png C:\tiff\*.tif
It converts both .tiff and .tif files in windows server 2008, but in windows server 2012 it will convert only for .tif files.

Is there any setup needs to be done for server 2012 so that same command works for both .tif and .tiff files ?
I can't answer your question regarding Windows Server 2012, and I don't know if anyone on the forum is likely to be able to, but there may be a simple work-around you can use.

NConvert accepts multiple inputs listed at the end of the command line, so you might test this code:

Code: Select all

nconvert  -out  png -resize 87 112  -xall -o C:\thumbs\%.png C:\tiff\*.tif C:\tiff\*.tiff
Edit:

The NConvert help file only lists .tiff as a supported file format, although .tif works in my tests on Windows 7... :?:

Re: .tiff file conversion not happening properly.

Posted: Thu May 11, 2017 12:57 pm
by xnview
strange that it works, and if you use *.tif*?

Re: .tiff file conversion not happening properly.

Posted: Thu May 11, 2017 1:03 pm
by cday
xnview wrote:strange that it works, and if you use *.tif*?
Not possible - error message: "A filename can't contain any of the following characters... * "

A similar situation for .jpg and .jpeg ?

Re: .tiff file conversion not happening properly.

Posted: Thu May 11, 2017 1:51 pm
by xnview
in this case *.tiff *.tif