Permlink Replies: 94 - Pages: 7 [ Previous | 1 2 3 4 5 6 | Next ] - Last Post: 30 Dec 25, 00:04 Last Post By: Soulportals
JeffTucker

Posts: 8,297
Registered: 31-Jan-2006
Re: Cleaning up path variables
Posted: 22 Sep 25, 20:48   in response to: davidekholm in response to: davidekholm
  Click to reply to this thread Reply
davidekholm wrote:
Anyway, it's a good path forward if skins can use contentPath (or videoPath) more. It paves the way for ensuring that originalPath only points to an unprocessed video in the future.

My skins are "clean" in that regard, and have been so for years. I always use videoPath, reserving originalPath to access only untouched images, and non-processed objects, like PDF's and MP3's.
RobM

Posts: 3,952
Registered: 4-Aug-2006
Re: Cleaning up path variables
Posted: 22 Sep 25, 20:55   in response to: davidekholm in response to: davidekholm
  Click to reply to this thread Reply
Please remember Jeff and I are septuagenarians and I for one would prefer 38 beta posts to be in one place, e.g. the General forum 38B1 post (renamed as just 38 beta). It doesn't take much to get me head scratching, like two forum posts essentially about the same thing and beta versions going from 1 to 8 without intermediate posts - having read Lara's post above I tried for an update an got b6 ;)
RobM

Posts: 3,952
Registered: 4-Aug-2006
Re: Cleaning up path variables
Posted: 22 Sep 25, 21:31   in response to: davidekholm in response to: davidekholm
  Click to reply to this thread Reply
davidekholm wrote:
Try b8 at https://jalbum.net/download/beta/jalbum-core.jar
With this version, you can download and unzip this demo project and hopefully successfully make a gallery using Minimal:

https://jalbum.net/download/Same-image-multiple-folders.zip

This project has some extra folders, like "Black & white, Females, Males, Water and Animals that simply contains internal links from the main folders Architecture, Nature and People. All without generating any image duplicates.

It seems to be working though it might be confusing for some if include originals is checked.
These are just random thoughts at the moment, trying to think how other users might think.

For example in the album you select the 'Nature' folder and then the 'Water' folder. Now click on the first thumbnail and you see in the address bar 'Same%20image%20multiple%20folders/Nature/Water/slides/caitlin-wynne.html' - great, just what you'd expect. Click on the download button and the address bar shows 'Same%20image%20multiple%20folders/Nature/caitlin-wynne.jpg' - no longer in the 'Water' folder.

I'm just wondering if there should be an overlay (on the webpage thumbnails/slides?) or something to indicate to the user the original image is linked to a different folder. It might also take a bit of education for users, telling them the linked images will not appear in the output slides folder, just the html pages. We've gotten use to telling people to check the local output files are all there if they report a broken uploaded album.

As one of my grand nephews said when very young 'quite nice, little bit horrible' ;)
I just can't make up my mind on it.
JeffTucker

Posts: 8,297
Registered: 31-Jan-2006
Re: Cleaning up path variables
Posted: 22 Sep 25, 21:31   in response to: RobM in response to: RobM
  Click to reply to this thread Reply
...Jeff and I are septuagenarians....

That's very hurtful. You shouldn't be spreading these ugly rumors.
RobM

Posts: 3,952
Registered: 4-Aug-2006
Re: Cleaning up path variables
Posted: 22 Sep 25, 21:33   in response to: JeffTucker in response to: JeffTucker
  Click to reply to this thread Reply
JeffTucker wrote:
...Jeff and I are septuagenarians....

That's very hurtful. You shouldn't be spreading these ugly rumors.

I thought I was being kind not giving away our exact ages ;)
MarkusD

Posts: 864
Registered: 13-Apr-2006
Re: Cleaning up path variables
Posted: 22 Sep 25, 22:06   in response to: RobM in response to: RobM
  Click to reply to this thread Reply
Folks, I'm following this thread carefully. From a users point of view: Please take care to don't break things. Test everything to the last detail. Thanks in advance. Cheers, Markus
RobM

Posts: 3,952
Registered: 4-Aug-2006
Re: Cleaning up path variables
Posted: 22 Sep 25, 22:18   in response to: MarkusD in response to: MarkusD
  Click to reply to this thread Reply
MarkusD wrote:
Folks, I'm following this thread carefully. From a users point of view: Please take care to don't break things. Test everything to the last detail. Thanks in advance. Cheers, Markus
More testers welcome, otherwise it looks like 3 or 4 testing. I’d say the probability of that number checking everything is almost zero.
MarkusD

Posts: 864
Registered: 13-Apr-2006
Re: Cleaning up path variables
Posted: 22 Sep 25, 22:28   in response to: RobM in response to: RobM
  Click to reply to this thread Reply
RobM wrote:
MarkusD wrote:
Folks, I'm following this thread carefully. From a users point of view: Please take care to don't break things. Test everything to the last detail. Thanks in advance. Cheers, Markus
More testers welcome, otherwise it looks like 3 or 4 testing. I’d say the probability of that number checking everything is almost zero.
To be honest, testing the beta versions is most of the time (for me) a little bit chalenging. Just downloading the latest beta, even with all available external tools, can be tricky.
RobM

Posts: 3,952
Registered: 4-Aug-2006
Re: Cleaning up path variables
Posted: 22 Sep 25, 23:40   in response to: davidekholm in response to: davidekholm
  Click to reply to this thread Reply
davidekholm wrote:
Try b8 at https://jalbum.net/download/beta/jalbum-core.jar
With this version, you can download and unzip this demo project and hopefully successfully make a gallery using Minimal:

https://jalbum.net/download/Same-image-multiple-folders.zip

This project has some extra folders, like "Black & white, Females, Males, Water and Animals that simply contains internal links from the main folders Architecture, Nature and People. All without generating any image duplicates.

If I attach an audio clip to a black and white image in the 'Architecture' folder and make the album the audio file appears in the 'Architecture' folder but not in the 'Black and white' folder's image. Is this yet to be implemented?
davidekholm

Posts: 3,939
Registered: 18-Oct-2002
Re: Cleaning up path variables
Posted: 23 Sep 25, 11:02   in response to: JeffTucker in response to: JeffTucker
  Click to reply to this thread Reply
JeffTucker wrote:
No immediate smoke and flames from b8, so I'll leave it "live" while I continue to do skin revisions. It might be a while before I have time to venture into the new functionality.

But it sounds as if you want to pretend that jAlbum is a server-side app, assembling pages from a stored database of images. What do you think this is, Piwigo?!


We're trying to achieve what comes naturally for a server side engine. But the only extra charge will be some extra html + json pages, increasing the album size by a percent or so.

If viewers need an indefinite amount of views, then this breaks down, but I think that it serves well for adding a calendar view to any gallery for instance.
davidekholm

Posts: 3,939
Registered: 18-Oct-2002
Re: Cleaning up path variables
Posted: 23 Sep 25, 11:06   in response to: RobM in response to: RobM
  Click to reply to this thread Reply
RobM wrote:

As one of my grand nephews said when very young 'quite nice, little bit horrible' ;)
I just can't make up my mind on it.

The way I see it we're naturally not doing anything out of the ordinary. After all, the web has allowed all kinds of image links with relative and absolute paths since the beginning.
JeffTucker

Posts: 8,297
Registered: 31-Jan-2006
Re: Cleaning up path variables
Posted: 23 Sep 25, 14:37   in response to: davidekholm in response to: davidekholm
  Click to reply to this thread Reply
davidekholm wrote:
This project has some extra folders, like "Black & white, Females, Males, Water and Animals that simply contains internal links from the main folders Architecture, Nature and People.

OK, so how do I create these links? And if you can't tell me in ten words or less.... ;)

ETA: OK, it appears to be SHIFT-CTRL-drag (BTW, RobM, the lookup table of keyboard shortcuts, in trying to account for the Windows/macOS differences, ends up being a bit of a muddle - we need to think of a way to make that clearer).

Did that, made an album like that using Neptune (my default), and it seems to behave itself. But other than saving a bit of disk space, and perhaps a few seconds of uploading time, why do I want this?

Now, just to play devil's advocate, what happens if I also invoke something from the Structures panel?
RobM

Posts: 3,952
Registered: 4-Aug-2006
Re: Cleaning up path variables
Posted: 23 Sep 25, 15:07   in response to: JeffTucker in response to: JeffTucker
  Click to reply to this thread Reply
JeffTucker wrote:
ETA: OK, it appears to be SHIFT-CTRL-drag (BTW, RobM, the lookup table of keyboard shortcuts, in trying to account for the Windows/macOS differences, ends up being a bit of a muddle - we need to think of a way to make that clearer).
The easiest way would be to have a keyboard shortcut page for each OS. I can make the existing keyboard shortcuts page just have links to different OS’, then make a page for macOS, can’t do Windows other than to duplicate the Mac page and remove the mac specific entries.

So as not to encroach further on this topic we can discuss via email.
JeffTucker

Posts: 8,297
Registered: 31-Jan-2006
Re: Cleaning up path variables
Posted: 23 Sep 25, 17:48   in response to: JeffTucker in response to: JeffTucker
  Click to reply to this thread Reply
Attachment ss012918.png (2.4 MB)
JeffTucker wrote:
Now, just to play devil's advocate, what happens if I also invoke something from the Structures panel?

It tolerated Flat and Calendar well enough, but didn't like Alphabetical at all. See screenshot - the missing thumbnails have <img> links to nonexistent files, like thumbs/car-1.jpg, whereas the preceding (correct) thumbnail points to thumbs/car.jpg.

ETA: I take it back - Alphabetical blows up, too. Flat also fails, but it's not immediately obvious, since the bogus thumbnail paths are at the end of the page.
davidekholm

Posts: 3,939
Registered: 18-Oct-2002
Re: Cleaning up path variables
Posted: 23 Sep 25, 18:05   in response to: JeffTucker in response to: JeffTucker
  Click to reply to this thread Reply
JeffTucker wrote:
JeffTucker wrote:
Now, just to play devil's advocate, what happens if I also invoke something from the Structures panel?

It tolerated Flat and Calendar well enough, but didn't like Alphabetical at all. See screenshot - the missing thumbnails have <img> links to nonexistent files, like thumbs/car-1.jpg, whereas the preceding (correct) thumbnail points to thumbs/car.jpg.


Amazing it worked at att as I haven't tested with other structures yet.

Now b11 is available through the beta jar location. It fixes some linking issues and introduces a new API that assists skin developers in creating those <picture> elements (unless you wish to use the ja:picture element).

In short, skin developers can call
currentObject.elements().thumbnails().picture()
to generate a picture element for thumbnails and
currentObject.elements().closeups().picture()
to generate a picture element for closeups. The picture elements contains a backing img element as well. You have full control over the generated html as each generated element is of type https://javadoc.io/doc/org.jsoup/jsoup/1.8.2/org/jsoup/nodes/Element.html . To, for instance, remove the embedded img element, run
currentObject.elements().thumbnails().picture().select("img").remove()


You can play with the generated output simply by replacing "currentObject" by selected and run snippets through the system console, for instance:
selected.elements().thumbnails().picture()
Legend
Forum admins
Helpful Answer
Correct Answer

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