This question is answered.


Permlink Replies: 20 - Pages: 2 [ 1 2 | Next ] - Last Post: 6 Oct 24, 18:22 Last Post By: RobM Threads: [ Previous | Next ]
fodohgraf

Posts: 35
Registered: 18-Dec-2012
One picture of 2430 ist missing every second time the album is created
Posted: 27 Sep 24, 15:43
 
  Click to reply to this thread Reply
Hello,
I'm working quite some time with my album
https://fodoh.de/media/index.html

This week I added some more pictures here:
https://fodoh.de/media/Dampf/Ehrenlokfuehrer_Selfkantbahn_2024/index.html.

While making backups I recognized that one picture, that I have not touched, has been removed from backup. It's this one:
https://fodoh.de/media/bofo_vortrag_focus_stacking/zerene_stacker_prosumer_edition/Drahtkugel/index.html#img=_1147235.jpg.

The pictures is still in the local jalbum project folder but not in the locally created album directory slides and thus also not uploaded, respectively deleted on my own web space. When you view the whole folder you can see the thumbs file of this picture.

When I create the album once again, the picture is back in local album slides folder. Creating the album again and it's not in local album slides folder. This can be done repeatedly. Gone - back - gone - back - gone - back .... I'm aware of only this file with this effect. There is no error message, not even in the console F7.

Excluding / deleting that last created album does not help.

Creating the album with Shift+F9 instead of F9 does not help

According to the post at the beginning of this forum page I reduced the album. Even with only one folder. Here the link to the test album with plain skin:
https://www.fodoh.de/test/Drahtkugel/index.html

Here the link to the missing picture in the small test album:
https://www.fodoh.de/test/Drahtkugel/index.html#img=_1147235.jpg

Here is the ZIP of the small test album:
https://fodoh.de/fodoh.de-test.zip

Any help is appreciated.

My environment:
OpenSUSE leap 15.5
jAlbum 34.2.3, but happens also with 33.3.1.
java 19 64 bit
Tiger 5.8 and 5.13, but happens also with plan 3.1.2

Thank you.
Nordschleife
RobM

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, 21:26   in response to: fodohgraf in response to: fodohgraf
Correct
  Click to reply to this thread Reply
You have two images with the same filename but different extensions, _1147235.jpg and _1147235.gif

Rename the .gif image so it has a unique name, or if not being used remove it.
RobM

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 in response to: RobM
 
  Click to reply to this thread Reply
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
fodohgraf

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 in response to: RobM
 
  Click to reply to this thread Reply
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
RobM

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 in response to: fodohgraf
 
  Click to reply to this thread Reply
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.
JeffTucker

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 in response to: RobM
 
  Click to reply to this thread Reply
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!
RobM

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 in response to: JeffTucker
 
  Click to reply to this thread Reply
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.
JeffTucker

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 in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
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. ;)
RobM

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 in response to: JeffTucker
 
  Click to reply to this thread Reply
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
JeffTucker

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 in response to: RobM
 
  Click to reply to this thread Reply
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
RobM

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 in response to: JeffTucker
 
  Click to reply to this thread Reply
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.
JeffTucker

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 in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
For now I'm busy with something else.

Clearly a case of misplaced priorities. Off to the retraining camp.
RobM

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, 23:07   in response to: JeffTucker in response to: JeffTucker
Helpful
  Click to reply to this thread Reply
Better, but I have a feeling it still needs more work.

Edited by: RobM on 28 Sep 2024, 22:08
It's this recursion, I'm not returning the partial array list from a subdirectory, if it is in the middle of some files. Have to look at what I've done before.
JeffTucker

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 in response to: RobM
 
  Click to reply to this thread Reply
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.
fodohgraf

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 in response to: RobM
 
  Click to reply to this thread Reply
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

Point your RSS reader here for a feed of the latest messages in all forums