Posts:
35
Registered:
18-Dec-2012
|
|
|
Posts:
3,843
Registered:
4-Aug-2006
|
|
|
Re: One picture of 2430 ist missing every second time the album is created
Posted:
27 Sep 24, 22:22
in response to: RobM
|
|
|
Moving this to the general discussion forum as it is not a bug. See the yellow note, top righthand side of Managing images with jAlbum
|
|
|
Posts:
35
Registered:
18-Dec-2012
|
|
|
Re: One picture of 2430 ist missing every second time the album is created
Posted:
28 Sep 24, 06:27
in response to: RobM
|
|
|
RobM,
thank you for your hint. That's the solution.
If I understand you right, that two files in the same directory which are the same besides the extension is not supported. In such a case I propose to show a message to the user explaining exactly what you wrote in your reply.
Nordschleife
|
|
|
Posts:
3,843
Registered:
4-Aug-2006
|
|
|
Re: One picture of 2430 ist missing every second time the album is created
Posted:
28 Sep 24, 10:02
in response to: fodohgraf
|
|
|
This topic has come up before, but I don’t remember exactly what was discussed. I suggest that you post a feature request, this is something David would need to consider/do as there are multiple ways of adding files to a project, e.g. drag and drop with use/copy/link as well as adding the file outside of jAlbum and then loading/refreshing the project.
It might take a while to get a response as there is a new beta underway.
|
|
|
Posts:
8,225
Registered:
31-Jan-2006
|
|
|
Re: One picture of 2430 ist missing every second time the album is created
Posted:
28 Sep 24, 12:42
in response to: RobM
|
|
|
It isn't really a matter of "supporting" multiple files with the same base name. Consider mydog.JPG, mydog.NEF, and mydog.MP4. The thumbnail for each would be the same: thumbs/mydog.jpg. And the slide image would also be the same for each (even an MP4 needs a splash image for the video player). Working around this would require some sort of automatic renaming of output files, and would probably trip up many skins, which rely upon knowing what the output files are called.
For objects added by dragging and dropping, the solution would be simple - instead of checking for a duplicate file name, check for a duplicate base name.
But, since entire folders might be added, or objects might have been added to a folder since the last time the project was opened, the core would have to check for duplicate base names every time the project was opened. And it would have to check every folder, since it has no way of knowing what the user has done outside of jAlbum. In a project with hundreds of folders and potentially tens of thousands of objects, that would be fairly laborious.
In short, this would be a lot of overhead to combat a problem that almost never happens. If the core had a routine for preventing this, I would certainly want to have a way to turn it off!
|
|
|
Posts:
3,843
Registered:
4-Aug-2006
|
|
|
Re: One picture of 2430 ist missing every second time the album is created
Posted:
28 Sep 24, 13:09
in response to: JeffTucker
|
|
|
Yes, even just putting up an alert for duplicate base file names could take a lot of time, especially with mega sized projects. Alerting after the first occurrence only might be frustrating as the alert might pop up again on the next make.
An external tool that can be run once on demand, after unusual results in the album could highlight all common file base names. That might be an acceptable choice.
|
|
|
Posts:
8,225
Registered:
31-Jan-2006
|
|
|
Re: One picture of 2430 ist missing every second time the album is created
Posted:
28 Sep 24, 13:19
in response to: RobM
|
|
|
An external tool that can be run once on demand, after unusual results in the album could highlight all common file base names. That might be an acceptable choice.
We'll expect a beta from you by today's close of play.
|
|
|
Posts:
3,843
Registered:
4-Aug-2006
|
|
|
Re: One picture of 2430 ist missing every second time the album is created
Posted:
28 Sep 24, 20:55
in response to: JeffTucker
|
|
|
Tool Attached, output to the System Console shows the second file to have a given base name in any directory within a project..
Edited by: RobM on 28 Sep 2024, 22:07
Removed file
|
|
|
Posts:
8,225
Registered:
31-Jan-2006
|
|
|
Re: One picture of 2430 ist missing every second time the album is created
Posted:
28 Sep 24, 21:10
in response to: RobM
|
|
|
It seems to get confused by this situation:
root contains a01.jpg
root/folder contains a01.png
It thinks the first of those is a duplicate. But as long as they're in different folders, that shouldn't produce any problems, should it?
ETA: Same problem if:
root/folder1 contains a01.jpg
root/folder2 contains a01.png
That should be allowed, since it doesn't cause any collisions.
In short, you need to refresh your array for each folder you process.
Edited by: JeffTucker on 28 Sep 2024, 15:14
|
|
|
Posts:
3,843
Registered:
4-Aug-2006
|
|
|
Re: One picture of 2430 ist missing every second time the album is created
Posted:
28 Sep 24, 21:39
in response to: JeffTucker
|
|
|
Thanks for testing.
It might have to be tomorrow, I did a quick test with a subdir included (test project above with a copy of the folder added to the folder. Didn't check for the root folder having an image with a common base name - due to my phobia about mixing files and folders in a folder.
For now I'm busy with something else.
|
|
|
Posts:
8,225
Registered:
31-Jan-2006
|
|
|
Re: One picture of 2430 ist missing every second time the album is created
Posted:
28 Sep 24, 21:43
in response to: RobM
|
|
|
For now I'm busy with something else.
Clearly a case of misplaced priorities. Off to the retraining camp.
|
|
|
Posts:
8,225
Registered:
31-Jan-2006
|
|
|
Re: One picture of 2430 ist missing every second time the album is created
Posted:
28 Sep 24, 23:48
in response to: RobM
|
|
|
That seems to be much better behaved. I'll do some more fiddling when I sober up, which should be around Tuesday.
One interesting side effect of having multiple objects with the same base name is that often, the thumbnails in the Explore view are very confused, even if the output is correct. It has to do with the internal caching that takes place for objects that don't have embedded thumbnails. Not surprising, when you mull it over.
|
|
|
Posts:
35
Registered:
18-Dec-2012
|
|
|
Re: One picture of 2430 ist missing every second time the album is created
Posted:
2 Oct 24, 11:55
in response to: RobM
|
|
|
RobM,
thank you for your script. I tested it with several of my albums and it detected two occurences with duplicate basenames (in this case mp3 and wav):
/mnt/5003/daten/MyAlbums/Tanzen/TCL/2015_11_29_Treffen_Krauthof/2015_11_29_Gedicht_von_Ingeborg__Kerze.mp3 is a duplicated basename
/mnt/5003/daten/MyAlbums/Tanzen/ATC_Freiberg/2015_11_27_Jahresabschlussfeier/2015_11_27_Jahresabschlussfeier_ATC_Gedicht_mit_der_Zeit.wav is a duplicated basename
|
|
|
|
Legend
|
|
Forum admins
|
|
Helpful Answer
|
|
Correct Answer
|
|