Batch convert images from the Windows command line (Turno 2.4.0)
The window is named Turno. The command is still filee. The installer option reads: Add the “filee” command to PATH (convert from the command line). 2.4.0 adds --json to filee convert and filee watch. Progress is written to stderr, one JSON object per line, so a script can read it. Scripts that already call filee keep that name.
Check 2.4.0 on the Turno product page. On this page, Download 1 is the installer and Download 2 is the second address. Drag-and-drop in the window is in the Turno guide.
Make a new terminal see filee
- While installing, or when you run the installer again, tick Add the “filee” command to PATH (convert from the command line).
- Close any terminal that is already open, then open a new one. An open window does not pick up a PATH that was just written.
- Type
filee version. When it prints a version, you can continue. - About still shows Turno 2.4.0, author muko, and a link to muko.cc.
If the command is not found, run filee.cmd from the cli folder under the install directory.
Convert one file or a whole folder
Open a terminal next to the files:
filee convert photo.heic --to jpg
filee convert *.png --to webp --quality 80 -o converted
filee convert D:\Scans --recursive --preset to-pdf
--totakes a format name such as jpg, png, pdf, docx, or mp4. Runfilee formatswhen you are unsure.--qualityis 1 to 100, for JPG, WebP, AVIF, and similar formats.-osets the output folder. Without it, the result is saved next to the original.- When a result of that name already exists, a number is added.
--overwritereplaces it.--skipleaves the existing file. --presetuses a preset saved in Turno, by name or id. List them withfilee presets.- A folder is only one level deep unless you add
--recursive. - PDF pages use
--pages, for example--pages 1-3,8,12-.
Video, audio, and some documents need the matching engine installed first under Engines in the window. The command line uses that same set. It does not download a second copy. Full options are in filee help convert.
—json in 2.4.0
filee convert *.jpg --to webp --json
When the job finishes, stdout is one JSON document. While it runs, stderr gets one JSON object per line: progress about every 150 milliseconds, shaped like {"event":"progress",...}, and {"event":"file",...} as each file finishes.
If another program reads all of stdout before it reads stderr, a long conversion can stall. Use --quiet, or have that program read both at once. That is the note 2.4.0 adds for scripts.
Watch a folder from the terminal
filee watch D:\Inbox --to pdf --move-originals
The command runs until you press Ctrl+C. A file is converted once it has finished arriving. Results go to converted inside that folder unless you pass -o. --move-originals moves sources to originals, and files already waiting are converted at start. The same watching rules, including the 2.4.0 skip of symbolic links, are in Watch folders.
With --json, stdout is only events: started at the beginning, file as each file finishes, and stopped on Ctrl+C.
Removing a shooting location field by field still uses Metadata in the window. filee convert changes the format.
Get 2.4.0
Open the Turno product page. Turno is made by muko, at https://muko.cc/. This version is free, shows no ads, and does not ask you to sign in.