File: fabio-convert.rst

package info (click to toggle)
python-fabio 2025.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 2,932 kB
  • sloc: python: 24,414; ansic: 1,126; makefile: 145; sh: 5
file content (84 lines) | stat: -rw-r--r-- 1,910 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
FabIO-Convert
=============

Purpose:
--------

`fabio-convert` is a portable image converter based on FabIO library.
It best work when converting single-frame files from one format to another.
For multi-frame files, the best is to use the Python API.

Usage:
------

fabio-convert [-h] [-V] [-v] [-\-debug] [-l] [-o OUTPUT] [-F FORMAT] [-f] [-n] [-\-remove-destination] [-u] [-i]
[-\-dry-run] [IMAGE ...]

Positional arguments:
+++++++++++++++++++++

IMAGE
   Input file images

Options:
++++++++

**-h**, **-\-help**
   show this help message and exit

**-V**, **-\-version**
   output version and exit

**-v**, **-\-verbose**
   show information for each conversions

**-\-debug**
   show debug information

Main arguments:
+++++++++++++++

**-l**, **-\-list**
   show the list of available formats and exit

**-o** OUTPUT, **-\-output** OUTPUT
   output file or directory

**-F** FORMAT, **-\-output-format** FORMAT
   output format

Optional behaviour arguments:
+++++++++++++++++++++++++++++

**-f**, **-\-force**
   if an existing destination file cannot be opened, remove it and try
   again (this option is ignored when the **-n** option is also used)

**-n**, **-\-no-clobber**
   do not overwrite an existing file (this option is ignored when the
   **-i** option is also used)

**-\-remove-destination**
   remove each existing destination file before attempting to open it
   (contrast with **--force**)

**-u**, **-\-update**
   copy only when the SOURCE file is newer than the destination file or
   when the destination file is missing

**-i**, **-\-interactive**
   prompt before overwrite (overrides a previous **-n** option)

**-\-dry-run**
   do everything except modifying the file system

Return code: 
++++++++++++

- 0 means a success. 
- 1 means the conversion contains a failure, 
- 2 means there was an error in the arguments


.. command-output:: fabio-convert --help
    :nostderr: