Missing extension when using -o to convert filenames with periods

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderator: xnview

User avatar
zecanard
Posts: 14
Joined: Sun Sep 11, 2022 6:58 pm
Location: Longmont, CO

Missing extension when using -o to convert filenames with periods

Post by zecanard »

Simple steps to reproduce:
  1. Take a screenshot. It will be named something like Screenshot 2026-03-11 at 19.57.25.png
  2. Run

    Code: Select all

    nconvert -o ~/Desktop/% -out jpeg "Screenshot 2026-03-11 at 19.57.25.png"
The output file is ~/Desktop/Screenshot 2026-03-11 at 19.57.25 with no extension, despite not having specified -no_auto_ext.

Omitting -o produces an output with the correct extension. Using -o on a filename that does not contain periods also appends the correct extension.

I tested this under macOS v7.232.
Last edited by zecanard on Tue Mar 24, 2026 9:23 am, edited 3 times in total.
User avatar
xnview
Author of XnView
Posts: 47539
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Missing extension when converting periods in filenames with -o

Post by xnview »

ok, right it will be fixed
Pierre.