Thread Locked This thread is locked - replies are not allowed.


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


Permlink Replies: 42 - Pages: 3 [ Previous | 1 2 3 ] - Last Post: 29 Jul 23, 16:07 Last Post By: M-i-c-h-a
Laza

Posts: 1,511
Registered: 6-Sep-2005
Re: Wish: 'latest photos' functionality (-> NewImages.htt not right working)
Posted: 27 Jul 23, 10:46   in response to: M-i-c-h-a in response to: M-i-c-h-a
 
Attachment util.js (156.7 KB)
Can you please save the attached file into the Skin directory / lib folder? You can now turn back the *Force JPEG ... * options.
M-i-c-h-a

Posts: 123
Registered: 7-Nov-2021
Re: Wish: 'latest photos' functionality (-> NewImages.htt not right working)
Posted: 27 Jul 23, 13:44   in response to: Laza in response to: Laza
 
Unfortunately it's not working, the problems are like before - I uploaded the current state with debug mode = on.

There was an other problem: the output dir was full of PNG and my album was more than 1GB now - PNG and JPG of the same images. Looks like switching back to force JPG doesn't remove the unneeded PNG. I manually removed the PNG. I suppose so it's a basic jAlbum issue. Is it?
JeffTucker

Posts: 8,336
Registered: 31-Jan-2006
Re: Wish: 'latest photos' functionality (-> NewImages.htt not right working)
Posted: 27 Jul 23, 14:06   in response to: M-i-c-h-a in response to: M-i-c-h-a
 
M-i-c-h-a wrote:
Looks like switching back to force JPG doesn't remove the unneeded PNG. I manually removed the PNG. I suppose so it's a basic jAlbum issue.

Yes. The core doesn't quite know how to clean things up after a switch like that. If the album isn't huge, and doesn't contain any videos, it's probably easiest to click the little arrow to the right of the project name and choose Delete... Delete local album, then make the album again.

ETA: I posted a bug report about it. Kind of a fringe case, and maybe very difficult to fix, since the core has to be careful about what it deletes.
RobM

Posts: 3,983
Registered: 4-Aug-2006
Re: Wish: 'latest photos' functionality (-> NewImages.htt not right working)
Posted: 27 Jul 23, 14:51   in response to: M-i-c-h-a in response to: M-i-c-h-a
 
There is an external tool that would delete the files by extension, https://jalbum.net/forum/message.jspa?messageID=360514#360514

If you get the problem again it will save you from doing it manually.
M-i-c-h-a

Posts: 123
Registered: 7-Nov-2021
Re: Wish: 'latest photos' functionality (-> NewImages.htt not right working)
Posted: 27 Jul 23, 14:59   in response to: RobM in response to: RobM
 
Thank you for the hints. :)

I used the image browser XnView and scanned all folders of my album per "Show all files (recursive)" and filtering for PNG. Most I like your hint "Delete local album". I didn't know that there is this save command for a complete clean up.

Now we are back to the first issue - if JPG creation is forced than "new images" doesn't work.
Laza

Posts: 1,511
Registered: 6-Sep-2005
Re: Wish: 'latest photos' functionality (-> NewImages.htt not right working)
Posted: 27 Jul 23, 16:36   in response to: M-i-c-h-a in response to: M-i-c-h-a
 
Are you sure you saved the util.js in the real skins directory? (Ctrl-Shift-S) /lib folder!
Are you sure you did a "Make album" after that?
Can you please post here the NewImages.html file from your PC? (Ctrl-Shift-O)
M-i-c-h-a

Posts: 123
Registered: 7-Nov-2021
Re: Wish: 'latest photos' functionality (-> NewImages.htt not right working)
Posted: 27 Jul 23, 17:12   in response to: Laza in response to: Laza
 
Attached a screenshot of the used path and the Newimages.html. Also I restarted jAlbum before make Album.
Laza

Posts: 1,511
Registered: 6-Sep-2005
Re: Wish: 'latest photos' functionality (-> NewImages.htt not right working)
Posted: 28 Jul 23, 08:35   in response to: M-i-c-h-a in response to: M-i-c-h-a
 
Sorry, I don't know why this doesn't work for you. It still shows the data-path as PNG. I have even imported your setting into my test album and all works fine. Here's the code that's generated for a PNG image:
<div class="card preload square" data-path="Objects/ClickAction.jpg">...<img src="Objects/thumbs/ClickAction.jpg" alt="ClickAction">...</div>


Did you use Ctrl-Shift-S to select the skin directory, or just went to C:/Programme/jAlbum ? Perhaps you have added the file in the bundled skins, not the latest Tiger?
M-i-c-h-a

Posts: 123
Registered: 7-Nov-2021
Re: Wish: 'latest photos' functionality (-> NewImages.htt not right working)
Posted: 28 Jul 23, 09:08   in response to: Laza in response to: Laza
 
Attachment Newimages.html (16.2 KB)
You are right, it was the wrong directory. Now I copied it to the right dir and ... it still doesn't work.

I download the script again, saved it to the right dir, restarted jAlbum, delete the local album and create a fresh one - still not working.
Laza

Posts: 1,511
Registered: 6-Sep-2005
Re: Wish: 'latest photos' functionality (-> NewImages.htt not right working)
Posted: 28 Jul 23, 11:52   in response to: M-i-c-h-a in response to: M-i-c-h-a
 
Can you please zip me a small project so I could look into it?

BTW, you don't have to delete the local album.
M-i-c-h-a

Posts: 123
Registered: 7-Nov-2021
Re: Wish: 'latest photos' functionality (-> NewImages.htt not right working)
Posted: 28 Jul 23, 17:11   in response to: Laza in response to: Laza
 
I create a small test project and ... it works. So, I decide me to pack my whole project and sent to you per swisstransfer. You should got it now or it's in your email spam folder.
Laza

Posts: 1,511
Registered: 6-Sep-2005
Re: Wish: 'latest photos' functionality (-> NewImages.htt not right working)
Posted: 29 Jul 23, 08:48   in response to: M-i-c-h-a in response to: M-i-c-h-a
 
It works fine on my PC. Perhaps I made other changes besides the util.js? I will release the updated Tiger in a few minutes, so you can test if that works.
M-i-c-h-a

Posts: 123
Registered: 7-Nov-2021
Re: Wish: 'latest photos' functionality (-> NewImages.htt not right working)
Posted: 29 Jul 23, 16:07   in response to: Laza in response to: Laza
 
Great, it works here too now! Thank you very much!!! :)
Legend
Forum admins
Helpful Answer
Correct Answer

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