Rename bug in Import and Sort

Bugs which have been reproduced by a second user or the developer, or features to do

Moderators: xnview, Dreamer

jkm
Posts: 412
Joined: Sat May 11, 2024 12:43 am

Rename bug in Import and Sort

Post by jkm »

There is a bug in File->Import and Sort.

When renaming, the app removes the source filename up to the FIRST dot, when it should use the LAST dot.

Steps to reproduce:

1. Have jpeg file named "Bird 50mm f5.8 iso 200.jpg" that has an IPTC:Document Title of "Goose"
2. Use Import and Sort; new filename= {IPTC:Object Name}

Result filename= "Goose.8 iso 200.jpg" :bug:
Should be "Goose.jpg"

It interpreted the source filename as everything up to the first dot: "Bird 50mm f5" and stripped it off and replaced it with the variable.
But it should have stripped up to the LAST dot, right before the extension.
User avatar
xnview
Author of XnView
Posts: 47539
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Rename bug in Import and Sort

Post by xnview »

:bugconfirmed:
Pierre.