.tiff file conversion not happening properly.

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

Moderators: XnTriq, xnview

Post Reply
punith8626
Posts: 42
Joined: Thu Feb 02, 2017 11:22 am

.tiff file conversion not happening properly.

Post by punith8626 » Thu May 11, 2017 10:39 am

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 ?

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

Re: .tiff file conversion not happening properly.

Post by cday » Thu May 11, 2017 10:54 am

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... :?:

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

Re: .tiff file conversion not happening properly.

Post by xnview » Thu May 11, 2017 12:57 pm

strange that it works, and if you use *.tif*?
Pierre.

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

Re: .tiff file conversion not happening properly.

Post by cday » Thu May 11, 2017 1:03 pm

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 ?

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

Re: .tiff file conversion not happening properly.

Post by xnview » Thu May 11, 2017 1:51 pm

in this case *.tiff *.tif
Pierre.

Post Reply