This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 55 - Pages: 4 [ Previous | 1 2 3 4 | Next ] - Last Post: 8 Jun 25, 23:16 Last Post By: RobM Threads: [ Previous | Next ]
RobM

Posts: 3,938
Registered: 4-Aug-2006
Re: Folders do not appear in an album
Posted: 31 May 25, 00:26   in response to: hp-bilder in response to: hp-bilder
 
  Click to reply to this thread Reply
hp-bilder wrote:

Modified tool attached. Can you confirm that, I can't run a version of jAlbum that old to test it
Thanks, i will try that with 36.1. But give me a bit time.

I have those files you mentioned (in the album in discussion, didn't check newer ones), but they are in not in the album/ directory but in several or all of the subdirs (probably from older versions) which are not in the album hierarchy.

For ex, 'ls' on top level is:

2016  2018  2020  2022  2024  album                jalbum-settings-old.jap
2017  2019  2021  2023  2025  jalbum-settings.jap  lstree.txt

Folder 2016 contains some subdirs, for ex., 2016/Saulgrub has only a .jalbum dir which contains:
.  ..  albumfiles.txt  comments.properties  .info  meta.properties

In contrast, the jalbum dir on top level is:

.     2018  2022  album.rss           folderimage.jpg   index.html      thumbs
..    2019  2023  data1.json          folderimg@2x.jpg  lifeboat.zip    tree.json
2016  2020  2024  deep-data.json      folderimg.jpg     res
2017  2021  2025  folderimage@2x.jpg  folderthumb.jpg   shareimage.jpg

and album/2016/Saulgrub:

.   album.rss   folderimage@2x.jpg  folderimg@2x.jpg  folderthumb.jpg  shareimage.jpg  thumbs
..  data1.json  folderimage.jpg     folderimg.jpg     index.html       slides

So if i understand your tool correct, it moves the meta.properties and the others from those sub-dir .jalbum files on to the top level where they will overwrite each other. Is this correct?

I think i better make a copy of the album and a backup before trying :)

HP

I was really asking David if I was right. The modified tool should move meta.properties, comments.properties and albumfiles.txt from the folder containing images to the hidden .jalbum folder. The old project format had those files loose in the image directory, the current project format has them in the hidden folder. The original tool David made was to revert the current format to the pre jAlbum 16 format.

If you do decide to try it definitely make a backup/duplicate of the project just in case it doesn't work, or the project doesn't actually have folders with the really old format.

Re: Folder 2016 contains some subdirs, for ex., 2016/Saulgrub has only a .jalbum dir which contains:
.  ..  albumfiles.txt  comments.properties  .info  meta.properties

That folder has the current project format, nothing wrong with it.

The 'album' files you have mentioned above are the output folders, they don't have any of the three files the tool moves - they are in the images folder (project files).

Hope that helps but here are two things that might clarify and help further:
https://jalbum.net/help/en/JAlbum/Where_are_my_files

jAlbum>Menu>File>Backup projects...
davidekholm

Posts: 3,692
Registered: 18-Oct-2002
Re: Folders do not appear in an album
Posted: 2 Jun 25, 13:06   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Thanks for putting together this tool Rob!
RobM

Posts: 3,938
Registered: 4-Aug-2006
Re: Folders do not appear in an album
Posted: 2 Jun 25, 13:33   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
Thanks for putting together this tool Rob!
I just hacked your tool. I finally tested it by moving the files in the hidden folder to the images folder, it worked as expected.
davidekholm

Posts: 3,692
Registered: 18-Oct-2002
Re: Folders do not appear in an album
Posted: 2 Jun 25, 14:20   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
davidekholm wrote:
Thanks for putting together this tool Rob!
I just hacked your tool. I finally tested it by moving the files in the hidden folder to the images folder, it worked as expected.

Good I figured you could simply reverse the copying done in a few lines :-)
davidekholm

Posts: 3,692
Registered: 18-Oct-2002
Re: Folders do not appear in an album
Posted: 2 Jun 25, 14:51   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
I took the liberty to modernize the conversion script a bit:
/* JAlbum tool that converts jAlbum project format from pre v16 format to current format */
 
import se.datadosen.jalbum.*;
import se.datadosen.util.IO;
 
boolean move(File src, File dest) {
	if (dest.isDirectory()) {
		dest = new File(dest, src.getName());
	}
	if (src.exists()) {
		dest.delete();
		return src.renameTo(dest);
	}
	return false;
}
 
Work.on(TreeCollection.of(rootFolder))
.titled("Convert project from pre 16 format")
.inform("This tool converts this album project from pre v16 format. Don't run on jAlbum 16+ projects")
.filter(ao -> ao.folder)
.forEach(folder) -> {
	File dir = folder.getFile();
	File jAlbumDir = new File(dir, ".jalbum");
	move(new File(dir, "meta.properties"), jAlbumDir);
	move(new File(dir, "comments.properties"), jAlbumDir);
	move(new File(dir, "albumfiles.txt"), jAlbumDir);	
}.execute(work) -> {
	if (!work.cancelled) {
		// Refresh display
		rootFolder.invalidate();
		explorer.context.redraw();			
	}
}.showResult()
RobM

Posts: 3,938
Registered: 4-Aug-2006
Re: Folders do not appear in an album
Posted: 2 Jun 25, 15:28   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Much nicer :)
hp-bilder

Posts: 34
Registered: 15-Feb-2013
Re: Folders do not appear in an album
Posted: 7 Jun 25, 14:37   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Hi, thanks, i tested now your script with jAlbum 37.5.6

The script ran, i updated the album and it looked correct. However, when i add an image this will not show up in the final result. Strange enough, the new image is shown in the integrated preview (control-shift-F12) but not in the external browser, be it locally (F12) or remotely after upload.

So i'm afraid, no complete success :(

I stay with an older jAlbum version for now.

Edit: version 36.1 works fine with the now converted album, no problems.

HP

Edited by: hp-bilder on 7 Jun 2025, 14:39
RobM

Posts: 3,938
Registered: 4-Aug-2006
Re: Folders do not appear in an album
Posted: 7 Jun 25, 15:26   in response to: hp-bilder in response to: hp-bilder
 
  Click to reply to this thread Reply
Could you duplicate that project and zip it up, then make it available via a link if necessary?
We will then have something to work with.

Edited by: RobM on 7 Jun 2025, 14:27
And have you cleared your browser cache, or tried a browser not used for that album?
hp-bilder

Posts: 34
Registered: 15-Feb-2013
Re: Folders do not appear in an album
Posted: 7 Jun 25, 18:11   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
I will produce a zip, can i send the link via PM from the jAlbum site to you?

Regarding browser cache: i did not explicitly clear the cache, but my Firefox is configured to clear cookies and cache after termination, so this should not be a problem. And as said, the test image i added was not there locally and not in the uploaded album (now it is, because 36.1 did the update and upload). I will however test with a different browser.

HP
JeffTucker

Posts: 8,071
Registered: 31-Jan-2006
Re: Folders do not appear in an album
Posted: 7 Jun 25, 18:28   in response to: hp-bilder in response to: hp-bilder
 
  Click to reply to this thread Reply
hp-bilder wrote:
Strange enough, the new image is shown in the integrated preview (control-shift-F12) but not in the external browser, be it locally (F12) or remotely after upload.

We're all struggling to understand this.

First, there is no CTRL-SHIFT-F12 keyboard shortcut in jAlbum, as far as I know.

Second, there is only one album. Whether you view it with the integrated browser, the windowed browser, on an external browser, it's the same album. It simply can't have different content that is dependent upon the method of doing the preview.
RobM

Posts: 3,938
Registered: 4-Aug-2006
Re: Folders do not appear in an album
Posted: 7 Jun 25, 18:28   in response to: hp-bilder in response to: hp-bilder
 
  Click to reply to this thread Reply
Sorry, you can’t pm a zip file, but you could pm a link to a cloud service like Dropbox.
JeffTucker

Posts: 8,071
Registered: 31-Jan-2006
Re: Folders do not appear in an album
Posted: 7 Jun 25, 18:32   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
He's got jAlbum hosting. He can just upload a zip file to his jalbum.net hosting space, and give us a link.

(I have the nagging feeling that this will prove to have something to do with case-sensitive names. I don't know why I say that, and I can't sort out a plausible explanation. It's just a hunch.)
hp-bilder

Posts: 34
Registered: 15-Feb-2013
Re: Folders do not appear in an album
Posted: 7 Jun 25, 19:05   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
sorry, i mean control-shift-F, the internal browser. And yes, different behavior is a mystery for me as well :)

But - after 36.1 touched the album - the newer 37.5.6 can also see the last added image.

However, adding yet another image from jAlbum V. 37.5.6, is not shown. I also tested in another browser (Vivaldi, AFAIK chrome based). Same result.

Strange.

HP
hp-bilder

Posts: 34
Registered: 15-Feb-2013
Re: Folders do not appear in an album
Posted: 7 Jun 25, 19:08   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
i intended to put the zip on my web space and then just send the link to it. But if i figure out how to upload them to my jAlbum space, i can do this as well. Whatever you prefer.

HP
RobM

Posts: 3,938
Registered: 4-Aug-2006
Re: Folders do not appear in an album
Posted: 7 Jun 25, 20:49   in response to: hp-bilder in response to: hp-bilder
 
  Click to reply to this thread Reply
hp-bilder wrote:
i intended to put the zip on my web space and then just send the link to it. But if i figure out how to upload them to my jAlbum space, i can do this as well. Whatever you prefer.

HP

Whatever is easier for you.
Legend
Forum admins
Helpful Answer
Correct Answer

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