Page 1 of 1

-out option help?

Posted: Sun Mar 22, 2009 1:55 am
by BabaG
is there a list someplace here in the forum or online that articulates
the parameters for the -out option? i just assumed that the parameters
would pretty much match file extensions (as in -out bmp to output a file
named filename.bmp). i recently found, however, that, in the case of jpg
files, the -out option requires jpeg and not jpg for it to work. i'd like to
be able to look up which extensions differ from their -out option parameters.
the list of command line options at the head of this forum does not give
any details in this regard.

thanks,
BabaG

Re: -out option help?

Posted: Sun Mar 22, 2009 6:55 am
by DOS386
BabaG wrote:is there a list someplace here in the forum or online that articulates
the parameters for the -out option?
Built-in in the executable.
assumed that the parameters would pretty much match file extensions (as in -out bmp to output a file named filename.bmp). i recently found, however, that, in the case of jpg files, the -out option requires jpeg and not jpg for it to work. i'd like to be able to look up which extensions differ from their -out option parameters.
NO. Output format is "guessed" by input format, not output extension.
the list of command line options at the head of this forum does not give
any details in this regard.
It does, just scroll down. :bug:

http://newsgroup.xnview.com/viewtopic.php?f=57&t=12247

Code: Select all

               [iss     ]     : ISS
               [j6i     ]     : Ricoh Digital Camera
               [jbf     ]     : PaintShopPro Browser Cache File
               [jbr     ]     : PaintShopPro Brush
               [jif     ]  *  : Jeff's Image Format
               [jig     ]     : Jigsaw
               [jig2    ]     : Weekly Puzzle
               [jj      ]     : Doodle C64 (Compressed)
               [jpeg    ]  *  : JPEG / JFIF
               [jps     ]     : Stereo Image
               [jtf     ]     : Hayes JTFax
               [k25     ]     : Kodak DC25 Camera
               [kdc     ]     : Kodak DC120 Digital Camera
               [kdc2    ]     : Kodak DC120 Digital Camera
               [kfx     ]     : Kofax Group 4
               [kntr    ]     : KONTRON
               [koa     ]     : Koala Paint
               [kps     ]     : IBM Kips
               [kqp     ]     : Konica Camera File
               [kskn    ]     : KinuPix Skin

Re: -out option help?

Posted: Sun Mar 22, 2009 6:36 pm
by BabaG
thanks dos386 but i have a couple of questions.

when you say 'built in in the executable,' what does that mean? how do
i use this to find what parameter to give the -out option for a given format?

also, i've seen the list in the topic you linked to. it's the one i referenced in
my original post. isn't that just a list of supported formats? how does that tell
me the differences between extensions and option parameter syntax? i do
notice that jpg is listed here as jpeg. if this list is, in fact, the list of -out
option parameters, maybe someone could amend the line 'Available formats'
to say something a little clearer like 'Available formats. Use these as syntax
for the -out option.'

thanks again,
BabaG

Re: -out option help?

Posted: Thu Mar 26, 2009 1:59 am
by DOS386
> when you say 'built in in the executable' what does that mean?

NC -help outputs the list to screen

NC -help > NC.TXT outputs the list into a file

No need for an internet connection to find out :-)

> isn't that just a list of supported formats?

YES. And the problem is ?

> how does that tell me the differences between extensions
> and option parameter syntax?
> i do notice that jpg is listed here as jpeg.

NCONVERT doesn't care about extensions. You can save "BLAH.RAR" with "-out jpeg" - it still will be a JPG/JPEG image ;-)

> if this list is, in fact, the list of -out option parameters

Partially.

Code: Select all

        Available format:
               Name     Write  Description
                -1            : Automatic (Only for input)
               [*       ]     : JFIF based file
               [2bp     ]     : Pocket PC Bitmap
               [2d      ]     : Amapi
               [411     ]     : Mavica
               [a64     ]     : Artist 64
               [abmp    ]     : Alpha Microsystems BMP
               [abs     ]     : Optocat
               [acc     ]     : Access
               [ace     ]     : ACE texture
               [aces    ]     : Aces200
               [acorn   ]     : Acorn Sprite
               [adex    ]     : ADEX
               [adt     ]     : AdTech perfectfax
               [afx     ]     : Auto F/X
               [ai      ]     : Adobe Illustrator
               [aim     ]     : AIM Grey Scale
               [aip     ]     : Starlight Xpress SX 500x291 RAW
               [aipd    ]     : AIPD image
               [alias   ]  *  : Alias Image File
               [ami     ]     : Amica Paint
               [ani     ]     : Windows Animated Cursor
               [anv     ]     : AirNav
               [aphp    ]     : Adobe PhotoParade (images)
               [apx     ]     : Ability Photopaint Image
               [arcib   ]  *  : ArcInfo Binary
               [arf     ]     : ARF
               [arn     ]     : Astronomical Research Network
               [art     ]     : Artisan
               [artdir  ]     : Art Director
               [atk     ]     : Andrew Toolkit raster object
               [att     ]     : AT&T Group 4
               [aurora  ]     : Aurora
               [avs     ]     : Stardent AVS X
               [b16     ]     : PCO
               [b3d     ]     : B3D (images)
               [bdr     ]     : Brender
               [bfli    ]     : BFLI
               [bfx     ]     : Bfx Bitware
               [bga     ]     : Os/2 Warp
               [bias    ]     : BIAS FringeProcessor
               [bif     ]     : byLight
               [biorad  ]  *  : Bio-Rad confocal
               [bld     ]     : MegaPaint
               [blp     ]     : BLP textures
               [bmc     ]     : Embroidery
               [bmg     ]     : Bert's Coloring
               [bmp     ]  *  : Windows Bitmap
               [bms     ]     : Playback Bitmap Sequence
Only those having a star (like bmp) are available for -out.

> say something a little clearer like 'Available formats. Use these as syntax
for the -out option.'

YES (almost, see above).

Re: -out option help?

Posted: Thu Mar 26, 2009 5:12 pm
by BabaG
>> isn't that just a list of supported formats?

>YES. And the problem is ?

the problem is that on all my systems and, undoubtedly, a great many others,
jpg is what is used as the jpeg extension. i, and likely others not deeply familiar
with the inner workings of nconvert, assume the -out format option would take
this as its syntax. i just think that, in instances where the syntax differs from
conventional extensions, it would be helpful to have that difference noted.
where it says 'JPEG/JFIF' could also be amended to say something like
'JPEG (JPG)/JFIF'.


>> how does that tell me the differences between extensions
>> and option parameter syntax?
>> i do notice that jpg is listed here as jpeg.

>NCONVERT doesn't care about extensions. You can save "BLAH.RAR" with "-out jpeg" - it still will be a JPG/JPEG image

while nconvert is, as you describe, agnostic in regard to the file extension,
it is not in regard to the -out option, which is where the confusion derives. it
might be helpful if the commonly used variations of extensions were all accepted
by the -out option. in other words, if -out accepted both jpeg and jpg for its
syntax. i can see how that might not be possible, though, in which case, it would
be helpful to have the differences noted, something like:

'Starred entries denote available -out formats. -out option accepts common file
extensions as its syntax except as noted.'

another column could be included for variations of syntax.

OR

if file extensions are not the most common syntax for the -out option:

'Starred entries denote available -out formats. Left column also denotes -out
option syntax.'

thanks for the clarifications,
BabaG