Command-Line Options/it: Difference between revisions

From RawPedia
Jump to navigation Jump to search
No edit summary
No edit summary
Line 17: Line 17:


: <code>-w</code>
: <code>-w</code>
:: Do not open the Windows console. This option is available in Windows only. If you pass parameters to the RawTherapee executable it spawns a console window so that you can see the verbose output of your processing. Normally Windows closes this console directly after RawTherapee is terminated. To let you see the output we added a prompt which waits for you to hit a key before closing the console. By specifying <code>-w</code> no console will be opened and therefore no key press is needed. Useful if you want to invoke <code>rawtherapee.exe</code> in batch, e.g. from a PowerShell script. Please note that <code>-w</code> will have no effect for "Debug" builds where a console window will be opened unless you're starting RawTherapee from a console window already.
:: Non aprire la console di Windows. Questa opzione è disponibile solo in Windows. Se si passano i parametri all'eseguibile RawTherapee esso apre una finestra di console in modo che tu possa vedere l'output dettagliato della tua elaborazione. Normalmente Windows chiude questa console subito dopo che RawTherapee è terminato. Per consentirti di vedere l'output abbiamo aggiunto un prompt si blocca in attesa di premere un tasto prima di chiudere la console. Specificando <code>-w</ code> nessuna console verrà aperta e pertanto non è necessaria alcuna pressione del tasto. Utile se si desidera richiamare <code>rawtherapee.exe</ code> in batch, ad esempio da uno script PowerShell. Si prega di notare che <code>-w</ code> non avrà alcun effetto per le build di "Debug" in cui verrà aperta una finestra di console a meno che non si sia già avviato RawTherapee da una finestra di console.


: <code>-v</code>
: <code>-v</code>
:: Print the RawTherapee version number and exit.
:: Stampa la versione di RawTherapee e esce.


: <code>-R</code>
: <code>-R</code>
:: "Remote" mode, available since RawTherapee 5.2. When opening an image using "Open with" or by passing its filename as an argument, without using the <code>-R</code> option RawTherapee will open in "no-File-Browser" mode - that is a mode which lacks the File Browser and Queue tabs as well as the Preferences button. Using the new <code>-R</code> mode, RawTherapee will open in a full-fledged instance. Using <code>-R</code> also allows you to open an image in an already-running instance of RawTherapee, if that instance was also started using <code>-R</code>. The no-File-Browser mode exists for historical reasons when RAM requirements were higher and stability was worse. Now that RawTherapee's memory usage is optimized and it can quickly and reliably open folders with thousands of images, users may prefer using the <code>-R</code> mode by default.
:: Modalità "remota", disponibile da RawTherapee 5.2. Quando si apre un'immagine usando "Apri con" o passando il suo nome di file come argomento, senza utilizzare l'opzione <code>-R</ code> RawTherapee si apre in modalità "no-Navigatore" - in questa modalità mancano le schede Navigatore e Coda di sviluppo e il pulsante Preferenze. Utilizzando la nuova modalità <code>-R</ code>, RawTherapee si aprirà in un'istanza piena. L'utilizzo di <code>-R</ code> consente anche di aprire un'immagine in un'istanza già in esecuzione di RawTherapee, anche se l'istanza è stata avviata anche utilizzando <code>-R</ code>. La modalità No-Navigatore esiste per motivi storici quando i requisiti RAM erano più alti e la stabilità era peggiore. Ora che l'utilizzo della memoria di RawTherapee è ottimizzato e può aprire in modo rapido e affidabile le cartelle con migliaia di immagini, gli utenti possono preferire la modalità <code>-R</ code> per impostazione predefinita.


: <code>-h -?</code>
: <code>-h -?</code>
:: Display these commands.
:: Mostra questi comandi.


=== RawTherapee CLI ===
=== RawTherapee CLI (Interfaccia a riga di comando) ===
Use this application to start the command line only version. You'll find all command line options to develop your photos without any graphical user interface.
Usa questa versione per avviare l'applicazione con la sola linea di comando. E' possibile trovare tutti i comandi per elaborare le tue foto senza nessuna interfaccia grafica.


Usage:
Utilizzo:
: <code>rawtherapee-cli <options> -c <dir>|<files></code>
: <code>rawtherapee-cli <options> -c <dir>|<files></code>
:: Convert files in batch with default parameters if no <options> specified.
:: Converte i file in batch con i parametri predefiniti se non è stata specificata alcuna <opzione>.


: <code>-w</code>
: <code>-w</code>
:: Do not open the Windows console. This option is available in Windows only. If you pass parameters to the RawTherapee executable it spawns a console window so that you can see the verbose output of your processing. Normally Windows closes this console directly after RawTherapee is terminated. To let you see the output we added a prompt which waits for you to hit a key before closing the console. By specifying <code>-w</code> no console will be opened and therefore no key press is needed. Useful if you want to invoke <code>rawtherapee-cli.exe</code> in batch, e.g. from a PowerShell script.
:: Non aprire la console di Windows. Questa opzione è disponibile solo in Windows. Se si passano i parametri all'eseguibile RawTherapee questo apre una finestra di console in modo che tu possa vedere l'output dettagliato della tua elaborazione. Normalmente Windows chiude questa console subito dopo che RawTherapee è terminato. Per consentirti di vedere l'output abbiamo aggiunto un prompt che si blocca in atteda della pressione di un tasto prima di chiudere la console. Specificando <code>-w</code> nessuna console verrà aperta e pertanto non è necessaria alcuna pressione sul tasto. Utile se si desidera richiamare <code>rawtherapee-cli.exe</code> in batch, ad esempio da uno script PowerShell.


Other options used with <code>-c</code>:
Antre opzioni utilizzate con <code>-c</code>:
: <code>rawtherapee-cli [-o <output>|-O <output>] [-q] [-a] [-s|-S] [-p <files>] [-d] [-j[1-100] [-js<1-3>]|[-b<8|16>] <[-t[z] | [-n]]] [-Y] [-f] -c <input></code>
: <code>rawtherapee-cli [-o <output>|-O <output>] [-q] [-a] [-s|-S] [-p <files>] [-d] [-j[1-100] [-js<1-3>]|[-b<8|16>] <[-t[z] | [-n]]] [-Y] [-f] -c <input></code>


: <code>-c <files></code>
: <code>-c <files></code>
:: Specify one or more input files or folders.
:: Specifica uno o piu immagini o percorsi.
:: When specifying folders, RawTherapee will look for image files which comply with the selected parsed extensions (see the <code>-a</code> option).
:: Quando si specifica un percorso, RawTherapee cerca le immagini contenute con l'estenzione impostata (vedi l'opzione <code>-a</code>).
:: The <code>-c</code> option must always be the last one.
:: L'opzione <code>-c</code> deve sempre essere l'ultima.


: <code>-o <file>|<dir></code>
: <code>-o <file>|<dir></code>
:: Select output file or folder.
:: Seleziona un file o percorso di uscita.
:: Saves output file alongside input file if -o is not specified.
:: Salva il file di output accanto al file di input se -o non è specificato.


: <code>-O <file>|<dir></code>
: <code>-O <file>|<dir></code>
:: Select output file or folder and copy PP3 file into it.
:: Seleziona un file o percorso di uscita e copia i file PP3 nello stesso percorso.
:: Saves output file alongside input file if -O is not specified.
:: Salva il file di output accanto al file di input se -O non è specificato.


: <code>-q<file>|<dir></code>
: <code>-q<file>|<dir></code>
:: Quick-start mode. Does not load cached files to speedup start time.
:: Modalità di avvio rapido. Non carica i file memorizzati nella cache per accelerare l'avvio.


: <code>-a<file>|<dir></code>
: <code>-a<file>|<dir></code>
:: Process all supported image file types when specifying a folder, even those not currently selected in Preferences > File Browser > Parsed Extensions.
:: Processi tutti i tipi di file di immagine supportati quando si specifica una cartella, anche quelli non selezionati in Preferenze> Navigatore> Estensioni riconosciute.


: <code>-s</code>
: <code>-s</code>
:: Use the existing sidecar file to build the processing parameters, e.g. for photo.raw there should be a photo.raw.pp3 file in the same folder. If the sidecar file does not exist, neutral values will be used.
:: Utilizza il file sidecar esistente per costruire i parametri di elaborazione, ad esempio per photo.raw dovrebbe essere un file photo.raw.pp3 nella stessa cartella. Se il file sidecar non esiste, verranno utilizzati valori neutri.


: <code>-S</code>
: <code>-S</code>
:: Like <code>-s</code> but skip if the sidecar file does not exist.
:: Identico a <code>-s</code> ma non usatelo se non esiste il file sidecar.


: <code>-p <file.pp3></code>
: <code>-p <file.pp3></code>
:: Specify processing profile to be used for all conversions. You can specify as many sets of "-p <file.pp3>" options as you like, each will be built on top of the previous one, as explained below.
:: Specificare il profilo di elaborazione da utilizzare per tutte le conversioni. È possibile specificare il numero di set di opzioni "-p <file.pp3>" come si desidera, ciascuna sarà costruita in cima a quella precedente, come spiegato di seguito.


: <code>-d</code>
: <code>-d</code>
:: Use the default raw or non-raw PP3 file as set in "[[Main_Page#Preferences | Preferences]] > [[Image_Processing_Tab | Image Processing]] > [[Image_Processing_Tab#Default_Processing_Profile | Default Processing Profile]]"
:: Usa il file PP3 predefinito specificato in "[[Main_Page#Preferences | Preferences]] > [[Image_Processing_Tab | Image Processing]] > [[Image_Processing_Tab#Default_Processing_Profile | Default Processing Profile]]"


: <code>-j[1-100]</code>
: <code>-j[1-100]</code>
:: Specify output to be JPEG (default, if -t and -n are not set).
:: Specifica il formato di uscita JPEG (predefinito, se-t o-n non sono impostati).
:: Optionally, specify compression 1-100 (default value: 92).
:: Opzionale, specifica la compressione 1-100 (valore predefinito: 92).


: <code>-js<1-3></code>
: <code>-js<1-3></code>
:: Specify the JPEG [http://en.wikipedia.org/wiki/Chroma_subsampling chroma subsampling] parameter, where:
:: Specifica i parametri del formato JPEG [http://en.wikipedia.org/wiki/Chroma_subsampling chroma subsampling], dove:
::: 1 = Best compression: 2x2, 1x1, 1x1 (4:2:0)
::: 1 = Migliore compressione: 2x2, 1x1, 1x1 (4:2:0)
::::    Chroma halved vertically and horizontally.
::::    Chroma dimezzata verticalmente e orizzontalmente.
::: 2 = Balanced:        2x1, 1x1, 1x1 (4:2:2)
::: 2 = Bilanciato:        2x1, 1x1, 1x1 (4:2:2)
::::    Chroma halved horizontally.
::::    Chroma dimezzata orizzontalmente.
::: 3 = Best quality:    1x1, 1x1, 1x1 (4:4:4)
::: 3 = Migliore qualità:    1x1, 1x1, 1x1 (4:4:4)
::::    No chroma subsampling.
::::    Nessun sottocampionamento del chroma.


: <code>-b<8|16></code>
: <code>-b<8|16></code>
:: Specify bit depth per channel (16 by default).
:: Specifica la profondità colore per canale (16 bit predefinito).
:: Only applies to TIFF and PNG output, JPEG is always 8.
:: Si applica solo all'uscita TIFF e PNG, JPEG è sempre 8.


: <code>-t[z]</code>
: <code>-t[z]</code>
:: Specify output to be TIFF (16-bit if <code>-b8</code> is not set).
:: Specifica i parametri del formato TIFF (16-bit se<code>-b8</code> non è impostato).
:: Uncompressed by default, or ZIP compression with 'z'.
:: Non compresso per impostazione predefinita, o compressione ZIP con 'z'.


: <code>-n</code>
: <code>-n</code>
:: Specify output to be compressed PNG (16-bit if <code>-b8</code> is not set).
:: Specifica i parametri del formato PNG (16-bit se<code>-b8</code> non è impostato).
:: Compression is hard-coded to level 6.
:: La compressione è hard-coded al livello 6.


: <code>-Y</code>
: <code>-Y</code>
:: Overwrite output if present.
:: Sovrascrive output se presente.


: <code>-f</code>
: <code>-f</code>
:: Use the custom fast-export processing pipeline.
:: Usa la coda di sviluppo pe accellerare l'esportazione.


Your PP3 files can be incomplete, RawTherapee will set the values as follows:
Your PP3 files can be incomplete, RawTherapee will set the values as follows:

Revision as of 13:35, 17 September 2017

Spiegazione

<Chevrons> indica i parametri che che è possibile modificare.
[Square brackets] significa che il parametro non è obbligatorio.
The pipe symbol | indica una scelta di uno o l'altro.
The dash symbol - indica una gamma di valori possibili tra uno e l'altro.

Dalla versione di RawTherapee 5.1,sono forniti due programmi eseguibili.

RawTherapee GUI

Una questa applicazione per avviare il programma con la versione grafica.

Utilizzo:

rawtherapee <selected dir>
Avvia il Navigatore nel percorso indicato.
rawtherapee <file>
Avvia il Navigatore con l'immagine indicata.
-w
Non aprire la console di Windows. Questa opzione è disponibile solo in Windows. Se si passano i parametri all'eseguibile RawTherapee esso apre una finestra di console in modo che tu possa vedere l'output dettagliato della tua elaborazione. Normalmente Windows chiude questa console subito dopo che RawTherapee è terminato. Per consentirti di vedere l'output abbiamo aggiunto un prompt si blocca in attesa di premere un tasto prima di chiudere la console. Specificando -w</ code> nessuna console verrà aperta e pertanto non è necessaria alcuna pressione del tasto. Utile se si desidera richiamare rawtherapee.exe</ code> in batch, ad esempio da uno script PowerShell. Si prega di notare che -w</ code> non avrà alcun effetto per le build di "Debug" in cui verrà aperta una finestra di console a meno che non si sia già avviato RawTherapee da una finestra di console.
-v
Stampa la versione di RawTherapee e esce.
-R
Modalità "remota", disponibile da RawTherapee 5.2. Quando si apre un'immagine usando "Apri con" o passando il suo nome di file come argomento, senza utilizzare l'opzione -R</ code> RawTherapee si apre in modalità "no-Navigatore" - in questa modalità mancano le schede Navigatore e Coda di sviluppo e il pulsante Preferenze. Utilizzando la nuova modalità -R</ code>, RawTherapee si aprirà in un'istanza piena. L'utilizzo di -R</ code> consente anche di aprire un'immagine in un'istanza già in esecuzione di RawTherapee, anche se l'istanza è stata avviata anche utilizzando -R</ code>. La modalità No-Navigatore esiste per motivi storici quando i requisiti RAM erano più alti e la stabilità era peggiore. Ora che l'utilizzo della memoria di RawTherapee è ottimizzato e può aprire in modo rapido e affidabile le cartelle con migliaia di immagini, gli utenti possono preferire la modalità -R</ code> per impostazione predefinita.
-h -?
Mostra questi comandi.

RawTherapee CLI (Interfaccia a riga di comando)

Usa questa versione per avviare l'applicazione con la sola linea di comando. E' possibile trovare tutti i comandi per elaborare le tue foto senza nessuna interfaccia grafica.

Utilizzo:

rawtherapee-cli <options> -c <dir>|<files>
Converte i file in batch con i parametri predefiniti se non è stata specificata alcuna <opzione>.
-w
Non aprire la console di Windows. Questa opzione è disponibile solo in Windows. Se si passano i parametri all'eseguibile RawTherapee questo apre una finestra di console in modo che tu possa vedere l'output dettagliato della tua elaborazione. Normalmente Windows chiude questa console subito dopo che RawTherapee è terminato. Per consentirti di vedere l'output abbiamo aggiunto un prompt che si blocca in atteda della pressione di un tasto prima di chiudere la console. Specificando -w nessuna console verrà aperta e pertanto non è necessaria alcuna pressione sul tasto. Utile se si desidera richiamare rawtherapee-cli.exe in batch, ad esempio da uno script PowerShell.

Antre opzioni utilizzate con -c:

rawtherapee-cli [-o <output>|-O <output>] [-q] [-a] [-s|-S] [-p <files>] [-d] [-j[1-100] [-js<1-3>]|[-b<8|16>] <[-t[z] | [-n]]] [-Y] [-f] -c <input>
-c <files>
Specifica uno o piu immagini o percorsi.
Quando si specifica un percorso, RawTherapee cerca le immagini contenute con l'estenzione impostata (vedi l'opzione -a).
L'opzione -c deve sempre essere l'ultima.
-o <file>|<dir>
Seleziona un file o percorso di uscita.
Salva il file di output accanto al file di input se -o non è specificato.
-O <file>|<dir>
Seleziona un file o percorso di uscita e copia i file PP3 nello stesso percorso.
Salva il file di output accanto al file di input se -O non è specificato.
-q<file>|<dir>
Modalità di avvio rapido. Non carica i file memorizzati nella cache per accelerare l'avvio.
-a<file>|<dir>
Processi tutti i tipi di file di immagine supportati quando si specifica una cartella, anche quelli non selezionati in Preferenze> Navigatore> Estensioni riconosciute.
-s
Utilizza il file sidecar esistente per costruire i parametri di elaborazione, ad esempio per photo.raw dovrebbe essere un file photo.raw.pp3 nella stessa cartella. Se il file sidecar non esiste, verranno utilizzati valori neutri.
-S
Identico a -s ma non usatelo se non esiste il file sidecar.
-p <file.pp3>
Specificare il profilo di elaborazione da utilizzare per tutte le conversioni. È possibile specificare il numero di set di opzioni "-p <file.pp3>" come si desidera, ciascuna sarà costruita in cima a quella precedente, come spiegato di seguito.
-d
Usa il file PP3 predefinito specificato in " Preferences > Image Processing > Default Processing Profile"
-j[1-100]
Specifica il formato di uscita JPEG (predefinito, se-t o-n non sono impostati).
Opzionale, specifica la compressione 1-100 (valore predefinito: 92).
-js<1-3>
Specifica i parametri del formato JPEG chroma subsampling, dove:
1 = Migliore compressione: 2x2, 1x1, 1x1 (4:2:0)
Chroma dimezzata verticalmente e orizzontalmente.
2 = Bilanciato: 2x1, 1x1, 1x1 (4:2:2)
Chroma dimezzata orizzontalmente.
3 = Migliore qualità: 1x1, 1x1, 1x1 (4:4:4)
Nessun sottocampionamento del chroma.
-b<8|16>
Specifica la profondità colore per canale (16 bit predefinito).
Si applica solo all'uscita TIFF e PNG, JPEG è sempre 8.
-t[z]
Specifica i parametri del formato TIFF (16-bit se-b8 non è impostato).
Non compresso per impostazione predefinita, o compressione ZIP con 'z'.
-n
Specifica i parametri del formato PNG (16-bit se-b8 non è impostato).
La compressione è hard-coded al livello 6.
-Y
Sovrascrive output se presente.
-f
Usa la coda di sviluppo pe accellerare l'esportazione.

Your PP3 files can be incomplete, RawTherapee will set the values as follows:

  1. A new processing profile is created using neutral values,
  2. If the -d option is set, the values are overridden by those found in the default raw or non-raw processing profile,
  3. If one or more -p options are set, the values are overridden by those found in these processing profiles,
  4. If the -s or -S options are set, the values are finally overridden by those found in the sidecar files.

The processing profiles are processed in the order specified on the command line.

Redirect Output

To redirect RawTherapee's output to a text file, you have to start it from a console and append the redirection code as follows:

Windows (cmd.exe)
rawtherapee.exe > rtlog.txt 2>&1
Linux
rawtherapee &> rtlog.txt

Examples

Example 1

In Linux, process a single raw which resides in /tmp and is called "photo.raw", use its sidecar file "photo.raw.pp3" during conversion, save it in the same folder as "foo.tif", and overwrite the file "foo.tif" if it exists:

rawtherapee-cli -o /tmp/foo.tif -s -t -Y -c /tmp/photo.raw

Example 2

In the next example, we'll assume that you want to quickly process all your raw photos from the /tmp/jane01 folder to a web sub-folder by using the default profile as a basis, using the sidecar profile if it exist, but with removing some Exif tags (e.g. the camera's serial number) and adding some IPTC tags (e.g. your usual copyright parameters), plus resize and sharpen the image for the web (spread over multiple lines for clarity):

rawtherapee-cli -o /tmp/Jane01/web -p ~/profiles/iptc.pp3 -s -p ~/profiles/exif.pp3 -p ~/profiles/web.pp3 -t -Y -d -c /tmp/Jane01/

The processing profile will be built as follows:

  1. A new profile is created using internal default values (hard-coded into RawTherapee),
  2. then overridden by those from the default raw profile (-d),
  3. then overridden by those found in iptc.pp3,
  4. then overridden by those found in the sidecar file (-s) if it exists, so you can force some IPTC tags even if already set by iptc.pp3,
  5. then overridden by those found in exif.pp3, so you can force the profile to erase some tags,
  6. then overridden by those found in web.pp3, to resize and sharpen the image, and make sure that the output colorspace is sRGB.

As you can see, the position of the -s switch tells when to load the sidecar profile relative to the other -p parameters. That is not the case for the -d switch.

Example 3

In the third example, we will see how long it takes to process every raw file in a folder, assuming that each raw photo has a corresponding processing profile, and discard each output file:

time {
 for f in /home/user/photos/2011-11-11/*.raw; do
   rawtherapee-cli -o /dev/null -S -t -Y -c "$f";
 done
 }