Deleting accompanying (raw) files while keeping primary (jpg) files

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

Moderators: XnTriq, helmut, xnview, Dreamer

lalaka
Posts: 17
Joined: Tue Oct 10, 2006 9:27 pm

Deleting accompanying (raw) files while keeping primary (jpg) files

Post by lalaka »

I'm shooting JPG+RAW at the same time mostly and use XnView for quick browsing the images.
Raw development is done in another tool (darktable), therefore I hide raw files by configuring the raw extension to be handled as accompanying file.

I would like to address the following situation:
At some point I decide for a new set of pictures if I a) delete it completely, b) want to keep only the jpg for "documentation" but I'll never edit the picture further or c) keep jpg and raw file for editing in the future.
Deleting the complete set of files for an image as in a) works well with the hiding option.
However, a significant amount of pictures fall into the b) category and I'd like to select any number of images and then delete just the accompanying raw files.

So, I'd like to suggest an advanced delete operation which deletes only those files, keeping the shown primary files, or maybe even better, it deletes only the set of accompanying files with configurable extension(s).

What do you think?

Lars.
User avatar
xnview
Author of XnView
Posts: 45051
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Deleting accompanying (raw) files while keeping primary (jpg) files

Post by xnview »

do you have tried the 1.00 release by configuring companion files?
Pierre.
lalaka
Posts: 17
Joined: Tue Oct 10, 2006 9:27 pm

Re: Deleting accompanying (raw) files while keeping primary (jpg) files

Post by lalaka »

xnview wrote: Wed May 04, 2022 11:20 am do you have tried the 1.00 release by configuring companion files?
I did. Used 0.99.7 previously.
I noted the various bug fixes in the change log for 1.00, but I don't see how my feature request would be addressed.

However, as a workaround I wrote an external program which does the cleanup as described in my first post and configured it as external "viewer". It's even slightly more "intelligent" than XnView could, as it looks specifically for existing (darktable) edits in the xmp and only deletes raw+raw.xmp companions if no edits exist.
User avatar
xnview
Author of XnView
Posts: 45051
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Deleting accompanying (raw) files while keeping primary (jpg) files

Post by xnview »

all is in Settings>File list>companion
Pierre.
lalaka
Posts: 17
Joined: Tue Oct 10, 2006 9:27 pm

Re: Deleting accompanying (raw) files while keeping primary (jpg) files

Post by lalaka »

xnview wrote: Mon May 23, 2022 12:02 pm all is in Settings>File list>companion
I think I'm still misunderstood.

What I was missing is an option to delete just the companion files for a set of selected files, without also deleting the primary files.

As said, I found another solution using an external program which works for me better anyway, so this is not as important for me, but maybe still an improvement for the general user base.
User avatar
xnview
Author of XnView
Posts: 45051
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Deleting accompanying (raw) files while keeping primary (jpg) files

Post by xnview »

lalaka wrote: Tue May 24, 2022 8:37 am What I was missing is an option to delete just the companion files for a set of selected files, without also deleting the primary files.
Oh, when you use companion files settings, right?
Pierre.
lalaka
Posts: 17
Joined: Tue Oct 10, 2006 9:27 pm

Re: Deleting accompanying (raw) files while keeping primary (jpg) files

Post by lalaka »

xnview wrote: Tue May 24, 2022 9:43 am Oh, when you use companion files settings, right?
Exactly!
User avatar
xnview
Author of XnView
Posts: 45051
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Deleting accompanying (raw) files while keeping primary (jpg) files

Post by xnview »

so a "delete without companion"
Pierre.
lalaka
Posts: 17
Joined: Tue Oct 10, 2006 9:27 pm

Re: Deleting accompanying (raw) files while keeping primary (jpg) files

Post by lalaka »

xnview wrote: Tue May 24, 2022 2:40 pm so a "delete without companion"
to the contrary - rather a "delete companions"

Both actions may make sense depending on the use case and on what people define for themselves as primary vs companion: for me JPG is primary (speedy viewing in XnView) and RAW, XMP etc. are companions. People using RAW as primary and JPG as companion may see things differently...
bigboo
Posts: 8
Joined: Fri May 27, 2022 1:53 pm

Re: Deleting accompanying (raw) files while keeping primary (jpg) files

Post by bigboo »

I would find it usefull to be able to delete in one click all companion raw files from primary jpg with low rating (1&2) for example.
lalaka
Posts: 17
Joined: Tue Oct 10, 2006 9:27 pm

Re: Deleting accompanying (raw) files while keeping primary (jpg) files

Post by lalaka »

bigboo wrote: Fri May 27, 2022 11:22 pm I would find it usefull to be able to delete in one click all companion raw files from primary jpg with low rating (1&2) for example.
Exactly what I intended. I'd be happy to do this in 3 steps:
  1. Enable filter as needed
  2. Select all (ctrl+A)
  3. Action “delete companion files“ (e.g.via context menu)