Extract multipage-TIF and overwrite

XnConvert Multi Platform - Windows, MacOSX, Linux

Moderators: XnTriq, helmut, xnview

Post Reply
User avatar
Peter2
XnThusiast
Posts: 1334
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Extract multipage-TIF and overwrite

Post by Peter2 »

I'm a little bit confused ..

- Take x.tif, multipage with 5 frames
- convert it to single page TIF, rotated, Filename: {Filename}_#

Result:
x_0.tif
x_0_1.tif
x_0_2.tif
x_0_3.tif
x_0_4.tif
Problem a:
Why does "Frame 1" does not start with number 1, but with "nothing"? And Frame 5 should be "x_0_5.tif" ...

- convert it again, file-settings "override"

Result:
x_0.tif
x_0_1.tif
x_0_2.tif
x_0_3.tif
x_0_4.tif
x_0_5.tif
x_0_6.tif
x_0_7.tif
x_0_8.tif
"x_0.tif" (Frame 1) is really overwritten, frames 2 - 5 are exported to files numer 5 - 8.

- convert it again, file-settings "override"

Result:
x_0.tif
x_0_1.tif
x_0_2.tif
x_0_3.tif
x_0_4.tif
x_0_5.tif
x_0_6.tif
x_0_7.tif
x_0_8.tif
x_0_9.tif
x_0_10.tif
x_0_11.tif
x_0_12.tif
x_0_13.tif
The new converted files get the numbers 9-13.

Find attached my INI-file - header and geometry removed.
(PS: Why is the PATH-Value empty?)

Please take a look at it.

Peter

Code: Select all

[Convert]
Path=
script=@Invalid()
Preview=false
PictFilename=
History=D:/test, D:/xx/Downloads, D:/Softwarepacks, 
UseFolder=true
Filename={Filename}_#, {Filename}_j, "{Filename}_{Current Date [MS]}   ", ycsdcds, 
Case=0
Format=tiff
Overwrite=3
OrgDate=false
KeepMeta=false
KeepIcc=false
KeepFolder=false
DelOrg=false
Multipage=false
AllPages=true
folder=D:/PDF-Ausgabe/
OpenExplorer=false
LoadLastScript=false
LastScript=-1

[Start]
language=de

[Load]
useEmbeddedThumb=true
useOrgIfSmaller=false
useHighQuality=true
useSharpen=false
sharpen=50
useGamma=false
gamma=1
noReadError=false
useEXIFRotation=true
useEXIFDpi=true
composeWithTrans=false
composeWithAlpha=false
useICCProfile=false
ICCDefault=0
ICCIntent=0
ICCProfile=
ICCDefaultProfile=
RAWFlag=0
RAWAutoBalance=true
RAWCameraBalance=false
RAWAutoBrightness=true
RAWBrightness=@Variant(\0\0\0\x87?\x80\0\0)
RAWRedScaling=@Variant(\0\0\0\x87?\x80\0\0)
RAWBlueScaling=@Variant(\0\0\0\x87?\x80\0\0)
PCDBase=2
GrobBpp=0
DjVuMaxDpi=false
WMFHighRes=false
PDFDpi=72
PDFPageSize=0
PDFCIE=false
ICOIn32bits=false
PDDPage=0
EXRGamma=@Variant(\0\0\0\x87?\x80\0\0)
HDRGamma=@Variant(\0\0\0\x87?\x80\0\0)
YUVWidth=720
YUVHeight=576
YUVOffset=0
RAWWidth=256
RAWHeight=256
RAWOffset=0
channelOrder=0
channelType=1
videoFrameP=0

[Save]
addExtensionIfNeeded=true
keepOriginalDate=true
JPEGQuality=80
JPEGProgressive=false
JPEGOptimizeHuffmanTable=false
JPEGKeepEXIF=true
JPEGKeepIPTC=true
JPEGKeepXMP=true
JPEGRebuildThumb=true
useOriginalJPEGQuality=false
JPEGDCTMethod=0
JPEGSubSampling=0
JPEGSmoothFactor=0
WebPQuality=80
PNGCompressionLevel=6
PNGInterlaced=false
PNGFilter=0
GIFInterlaced=false
GIF87aHeader=false
IFFCompress=false
PCXCompress=false
TGACompress=false
TGABottomUp=false
SOFTCompress=true
SGICompress=true
BMPCompress=false
OS2Header=false
HP49Header=false
PPMInAscii=false
TIFFCompress=0
TIFFBinaryCompress=0
TIFFOnlyOneStrip=false
DPXMsbf=false
PDFCompress=5
PDFJpegQuality=80
JP2KMode=0
JP2KQuality=80
JP2KRatio=4
JP2KFileSize=100
JpegXRQuality=80
JpegXRColorFormat=0
JpegXRFilter=0
Last edited by Peter2 on Tue Mar 29, 2011 8:13 am, edited 1 time in total.
XnViewMP 1.6.5 German, XnConvert 1.99, Win 10
User avatar
xnview
Author of XnView
Posts: 43603
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Extract multipage-TIF and overrite

Post by xnview »

Peter2 wrote: Why does "Frame 1" does not start with number 1, but with "nothing"? And Frame 5 should be "x_0_5.tif" ...
Yes, will be better...
"x_0.tif" (Frame 1) is really overwritten, frames 2 - 5 are exported to files numer 5 - 8.
I can't confirm here, i have x_0_9.tif
Pierre.
User avatar
Peter2
XnThusiast
Posts: 1334
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Re: Extract multipage-TIF and overrite

Post by Peter2 »

Peter2 wrote:...
"x_0.tif" (Frame 1) is really overwritten, frames 2 - 5 are exported to files numer 5 - 8.
Tried again - confirmed again.

Here are my log-data, step 1 and step 2:

Code: Select all

D:\PDF-Ausgabe\x.tif 4678x6617x1 : geöffnet
D:\test\x_0.tif : gespeichert
D:\PDF-Ausgabe\x.tif (1) 4678x6617x1 : geöffnet
D:\test\x_0_1.tif : gespeichert
D:\PDF-Ausgabe\x.tif (2) 4678x6617x1 : geöffnet
D:\test\x_0_2.tif : gespeichert
D:\PDF-Ausgabe\x.tif (3) 4678x6617x1 : geöffnet
D:\test\x_0_3.tif : gespeichert
D:\PDF-Ausgabe\x.tif (4) 4678x6617x1 : geöffnet
D:\test\x_0_4.tif : gespeichert
------------------------------------
D:\PDF-Ausgabe\x.tif 4678x6617x1 : geöffnet
D:\test\x_0.tif : gespeichert
D:\PDF-Ausgabe\x.tif (1) 4678x6617x1 : geöffnet
D:\test\x_0_5.tif : gespeichert
D:\PDF-Ausgabe\x.tif (2) 4678x6617x1 : geöffnet
D:\test\x_0_6.tif : gespeichert
D:\PDF-Ausgabe\x.tif (3) 4678x6617x1 : geöffnet
D:\test\x_0_7.tif : gespeichert
D:\PDF-Ausgabe\x.tif (4) 4678x6617x1 : geöffnet
D:\test\x_0_8.tif : gespeichert
Here is my resulting file-list:

Code: Select all

x_0.tif
x_0_1.tif
x_0_2.tif
x_0_3.tif
x_0_4.tif
x_0_5.tif
x_0_6.tif
x_0_7.tif
x_0_8.tif
And here is my XBS:

Code: Select all

  <?xml version="1.0" encoding="UTF-8" ?> 
- <XnView_script version="1.0" name="HP_TIFF">
  <Rotate angle="90" smooth="false" color="#ffffff" /> 
  <Clean_metadata flags="0" /> 
  <Change_color_depth method="0" dither="0" ncompo="-1" alpha="255" /> 
- <Output folder="D:/test" filename="{Filename}_#" case="0" format="TIFF">
  <Options overwrite="0" orgDate="false" keepMeta="false" keepICC="false" keepFolder="false" delOrg="false" multipage="false" allPages="true" openExplorer="false" /> 
  <TIFF compress="2" compressBW="6" oneStrip="false" /> 
  </Output>
  </XnView_script>
Peter
XnViewMP 1.6.5 German, XnConvert 1.99, Win 10
User avatar
xnview
Author of XnView
Posts: 43603
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Extract multipage-TIF and overrite

Post by xnview »

could you send me your email, i would like to send a test version
Pierre.
Post Reply