Comment 8 for bug 648424

Revision history for this message
Michael Hendry (hendry-michael) wrote : Re: [Bug 648424] Re: Export doesn't deal with different files with same filename

On Thu, 2010-11-11 at 00:01 +0000, Rodrigo Virote Kassick wrote:
> Em 10-11-2010 20:52, Jim Nelson escreveu:
> > I think Brian was merely grooming the ticket and marking that a patch
> > was available (from Rodrigo). However, that patch is against an older
> > version of Shotwell and I'd need it to be update to work with trunk to
> > review it.
> >
> > Also, I'm not sure the patch's strategy is what we want -- it might
> > generate unique filenames, but it also loses the original's filename in
> > the process.
> >
>
> Indeed, I had that issue in mind. But then what would be a good file
> name in this case? Photos imported by shotwell and f-spot are named as a
> sequential number.
>
> Exporting a selection of photos (that may or may not be under a same tag
> in shotwell) will create a directory with a bunch of files whose numbers
> are mostly meaningless numbers.
>
> Sugestions?
>

Suggestion 1:

Number the files sequentially, in the order in which they appear on the
screen:

Export0001.jpg
Export0002.jpg
Export0003.jpg
...

The number of leading zeroes could be adjusted according to the number
of files that are to be exported, the idea being that the exported files
will appear in a directory listing in the same order, and can be
imported into a presentation manager in this order too.

Suggestion 2:

Number the files as above, but append the original filename:

Export0001-IMAGE006.jpg
Export0002-DSC0999.jpg
Export0003-Jane's Wedding 6.jpg
...

This has the advantage of making it easier to track back to the original
image while keeping the chosen sort order.

Suggestion 3:

As above, but insert the file creation date and time:

Export0001-2004_10_06_12_03-IMAGE006.jpg
Export0002-1966_05_04_16_23-DSC0999.jpg
...

This would mean that a relative to whom I'd sent a selection of
(compressed) images of a family event could ask for a hi-resolution
print of a particular image using an unambiguous filename.

I'd like to be able to override the default filename prefix (e.g.
replace "Export" with "Xmas2007" or "Jim's60th") - indeed the default
filename prefix could be the tag by which the export list has been
selected, if this is the case, although I can see that this might cause
problems if future developments in Shotwell allow selection by some
logical combination of tags!

I'd also like to be able (as indicated in an earlier post) to
drag-and-drop the images into the order in which I want them to be
numbered on export.

Michael