Problem converting, compressed png -> uncompressed tiff
Moderators: helmut, XnTriq, xnview
Problem converting, compressed png -> uncompressed tiff
I use NConvert 4.95, WinXP (which is named 4.92 in downloads).
While converting png to tiff (-out tiff -D *.*) I always get a compressed tiff file. Compression is lossless (not jpeg).
I tried using option "-c 1", it doesn't work. Tiff file size is the same. Other compression options (-c 1, -c 2 etc) are also ignored - file size is the same as before.
I want to get an uncompressed tiff on first try without converting twice through bmp.
Help me please.
While converting png to tiff (-out tiff -D *.*) I always get a compressed tiff file. Compression is lossless (not jpeg).
I tried using option "-c 1", it doesn't work. Tiff file size is the same. Other compression options (-c 1, -c 2 etc) are also ignored - file size is the same as before.
I want to get an uncompressed tiff on first try without converting twice through bmp.
Help me please.
The same. Compression option is simply ignored. I compared it in hex mode - tiff files are the same for different compressions.
Tried 24/32 bit files, and from jpeg files.
While experimenting I noticed that when I convert a bmp to tiff it also ignores compression option. An uncompressed tiff is created from any "-c" values.
Maybe it's my system's fault?
Tried 24/32 bit files, and from jpeg files.
While experimenting I noticed that when I convert a bmp to tiff it also ignores compression option. An uncompressed tiff is created from any "-c" values.
Maybe it's my system's fault?
I ran a test with old version (from old xnview release stored on my pc)
Both were run with only '-out tiff' option. Input file is jpg.
Nconvert -info on resulting tiff:
nconvert 4.57
nconvert 4.95
4.95 - As before, -c ? option doesn't change anything. Compression in always JPEG (= compression of input file)
4.57 - '-c' works - it correctly creates JPEG-compressed tiff with '-c 8' added and uncompressed file by default.
p.s. I sent the png by email, probably won't be much help.
Both were run with only '-out tiff' option. Input file is jpg.
Nconvert -info on resulting tiff:
nconvert 4.57
Code: Select all
034.tif : Success
Format : TIFF
Name : tiff
Compression : Uncompressed
Width : 800
Height : 600
Nplanes : 1
Bitscount : 24
Depth : 24
# colors : 16777216
Bytes Per Plane : 2400
Orientation : Top Left
Xdpi : 72
Ydpi : 72
Page(s) : 1
Code: Select all
034.tif : Success
Format : TIFF
Name : tiff
Compression : JPEG
Width : 800
Height : 600
Components per pixel : 3
Bits per component : 8
Depth : 24
# colors : 16777216
Color model : RGB
Bytes Per Plane : 2400
Orientation : Top Left
Xdpi : 72
Ydpi : 72
Page(s) : 1
4.57 - '-c' works - it correctly creates JPEG-compressed tiff with '-c 8' added and uncompressed file by default.
p.s. I sent the png by email, probably won't be much help.
Hi,
thanks for your quick reply. I downloaded latest release but problem exists on. Maybe I´m having an error in my command line or the source file does not support the compression? I have a GIF and need to turn it into G4 tif. so command looks like "-out tiff -c 7 -o DATADIR1\#.tif DATDIR2\*.gif" right? But nconvert -info shows Compression: uncompressed. Only -c 8 has any effects -> Compression CCIT G3.
thanks for your quick reply. I downloaded latest release but problem exists on. Maybe I´m having an error in my command line or the source file does not support the compression? I have a GIF and need to turn it into G4 tif. so command looks like "-out tiff -c 7 -o DATADIR1\#.tif DATDIR2\*.gif" right? But nconvert -info shows Compression: uncompressed. Only -c 8 has any effects -> Compression CCIT G3.
To be ble to save in G3 or G4, the picture must B&W, so try with -binaryMarkus_S wrote:Hi,
thanks for your quick reply. I downloaded latest release but problem exists on. Maybe I´m having an error in my command line or the source file does not support the compression? I have a GIF and need to turn it into G4 tif. so command looks like "-out tiff -c 7 -o DATADIR1\#.tif DATDIR2\*.gif" right? But nconvert -info shows Compression: uncompressed. Only -c 8 has any effects -> Compression CCIT G3.
Pierre.
Yeah I didi almost all
I have tried with XnView and exported the script options (in Read/Write Write TIFF > CCIT G4 and to Binary > dither) and it worked fine. Then I ran the script command with nconvert and again I received an uncompressed file but in the exported command there is no "-c" option.
Here is there from Xnview exported script command:
"nconvert -npcd 2 -size 256x256+0 -ctype grey -corder inter -out tiff -in gif -n 16 2118265871 16 -o OUTDIR -binary pattern INDIR\##.gif "

Here is there from Xnview exported script command:
"nconvert -npcd 2 -size 256x256+0 -ctype grey -corder inter -out tiff -in gif -n 16 2118265871 16 -o OUTDIR -binary pattern INDIR\##.gif "