1.6.5: “Import and sort” feature creates duplicates when AAE file is in the source directory

Older bugs which are supposed to be fixed in 0.84. *** Please try to reproduce your bug and confirm the bug fix. ***

Moderators: XnTriq, helmut, xnview, Dreamer

Aidar
Posts: 5
Joined: Fri Mar 08, 2024 11:43 pm

1.6.5: “Import and sort” feature creates duplicates when AAE file is in the source directory

Post by Aidar »

XnView: MP 1.6.5 - 64-bit
OS: Windows 10 - 64-bit

XnView “Import and sort” feature tries to create file duplicates when AAE file is in the source directory.

Effect: XnView “Import and sort” always tries to create AAE file duplicates, showing “Replace With” dialog box. Sometimes it also silently creates HEIC (only those that corresponds to AAE) file duplicates.

Under certain circumstances iPhone generates AAE file that accompanies a picture, has the same name https://fileinfo.com/extension/aae
E.g. IMG_1004.HEIC and IMG_1004.AAE.
XnView MP 1.6.5 “Import and sort” feature tries to import AAE file two times.

To reproduce:

1) Put at least two files into Source directory, e.g. IMG_1004.HEIC and IMG_1004.AAE
2) Use “Import and sort” feature to import them into some other, empty directory
3) Get “Replace With” dialog box.

XnView-Import-Duplication.jpg
Notes:

a) If there would be several AAE files that accompany respective pictures, “Replace With” dialog box shows up multiple times (unless Replace all/Skip all are clicked).
b) Under some circumstances, XnView will silently create an image duplicate like “IMG_1004 (1).HEIC” for the AAE-related image in the Destination directory. That is, image will be copied two times into the empty folder. Unlike AAE case above that reproduces 100% of the time, image duplicate is not always generated.
c) Perhaps, double slash “//” in the Destination path on the screenshot is relevant.
d) Perhaps, “1/3 files” is relevant, when there are only two files in the source folder: IMG_1004.HEIC and IMG_1004.AAE.
e) A similar issue was fixed in ver. 1.4.2: viewtopic.php?f=96&t=44768
f) Ver. 0.96 fixed an issue when AAE files were forgotten. Perhaps, since then it became a little bit too diligent: viewtopic.php?f=96&t=38795

Expected behavior: No duplicates, as when there are no AAE files in the source folder.

Thanks!
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 44572
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 1.6.5: “Import and sort” feature creates duplicates when AAE file is in the source directory

Post by xnview »

what do you have in Settings>Companion?
Pierre.
Aidar
Posts: 5
Joined: Fri Mar 08, 2024 11:43 pm

Re: 1.6.5: “Import and sort” feature creates duplicates when AAE file is in the source directory

Post by Aidar »

XnView-Companion.png
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 44572
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 1.6.5: “Import and sort” feature creates duplicates when AAE file is in the source directory

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
User avatar
xnview
Author of XnView
Posts: 44572
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 1.6.5: “Import and sort” feature creates duplicates when AAE file is in the source directory

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.7.0. Please check and confirm the bug fix here.
Pierre.
Aidar
Posts: 5
Joined: Fri Mar 08, 2024 11:43 pm

Re: 1.6.5: “Import and sort” feature creates duplicates when AAE file is in the source directory

Post by Aidar »

Thank you so much for your fast reaction!

Upon generating next batch of photos on the iPhone to be transferred to PC, I tested XnView MP 1.7.1 on Windows 10 x64.

This issue is fixed.

There seems to be another AAE-related one.

When AAE file accompanies HEIC, as is the case here, Photos->[Subfolder] does not work, both AAE and HEIC are placed in the Destination root. Other photos (with no AAE) are sorted into Subfolders, based on date.

It seems the issue is caused by the following.

When Photos->[New filename] is enabled with template like {Modified Date [Ymd_HMS]},
both AAE and HEIC get their names from filesystem Modified Date of the AAE file
(HEIC file’s filesystem Created, Modified Date and EXIF.CreateDate aren’t used, if artificially set to differ for testing purposes).

Seems logical, as AAE and HEIC should be lumped together when getting a new datetime-based filenames.

XnView MP 1.7.1 creates Subfolders based on date in EXIF. AAE does not have EXIF. So both AAE and its HEIC image get orphaned into the root Destination folder.

“Transfer files with no EXIF to ‘Other Files’ folder” checkbox does not affect this case in XnView MP 1.7.1.

Perhaps, “Import and sort” could sort AAE+HEIC duos into Subfolders based on EXIF date in HEIC/JPG image.
XnView-Import-and-sort.png
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 44572
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 1.6.5: “Import and sort” feature creates duplicates when AAE file is in the source directory

Post by xnview »

Aidar wrote: Wed Apr 24, 2024 9:23 pm
There seems to be another AAE-related one.
could you send me sample files?
Pierre.
Aidar
Posts: 5
Joined: Fri Mar 08, 2024 11:43 pm

Re: 1.6.5: “Import and sort” feature creates duplicates when AAE file is in the source directory

Post by Aidar »

The step-by-step instruction to artificially reproduce the case on Windows 10 x64 would be:

1. Obtain a photo with EXIF data, e.g. https://cdn.dxomark.com/wp-content/uplo ... cro-2.jpeg
2. Create four copies of the photo file with different names & extensions in the same folder: 1.jpeg, 2.heic, 3.jpeg and 4.heic (or have 4 different photos, similarly named)
3. Create two empty files: 3.AAE and 4.AAE in the very same folder
4. Open XnView MP -> Tools -> Import and sort
5. Set Source to the folder with 1.jpeg, 2.heic, 3.jpeg, 4.heic, 3.AAE, 4.AAE files
6. Set Destination to some empty folder
7. Enable Photos->Subfolder checkbox with [Y_m_d] template
8. Click OK
9. Check Destination folder. 1.jpeg, 2.heic, 3.jpeg, 3.AAE will be put in [Y_m_d] subfolder. 4.heic and 4.AAE will be placed in the Destination folder itself, unsorted.

Notes:

1. Apparently, AAE + JPG duo sorts fine, only AAE + HEIC duo is affected. Only file extension matters, not whether it is HEIC or JPEG inside.

Please, let me know if any additional information is needed.
User avatar
xnview
Author of XnView
Posts: 44572
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 1.6.5: “Import and sort” feature creates duplicates when AAE file is in the source directory

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
User avatar
xnview
Author of XnView
Posts: 44572
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 1.6.5: “Import and sort” feature creates duplicates when AAE file is in the source directory

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.7.2. Please check and confirm the bug fix here.
Pierre.