|
Replies:
25
-
Pages:
2
[
1
2
| Next
]
-
Last Post:
22 Sep 22, 18:52
Last Post By: MarkusD
|
|
|
Posts:
8,100
Registered:
31-Jan-2006
|
|
|
|
Variant image debugging problem
Posted:
19 Sep 22, 22:20
|
|
|
|
Our friend MarkusD just posted about mysterious text overlays on the variant images in his albums, and couldn't figure out how to get rid of them. I had to hunt around, and this happens if you set the logging level to FINEST. The even nastier part of it is that to get rid of the overlays, you have to reprocess all the images - nothing less than a Force Remake will do.
Granted, few users will ever change the logging level, but this is a dangerous little hack, IMO. What's needed is a more rational way to generate these overlays for debugging purposes. Tough to know where to put it so that it's not invisible (like the current mechanism), but where a typical user won't be lured into using it.
Perhaps a checkbox under Images > General > Variants labeled Put a text overlay on variant images, for debugging. If selected, it should pop up a warning dialog about using this only for small test albums.
I'm open to suggestions.
|
|
|
Posts:
3,950
Registered:
4-Aug-2006
|
|
|
|
Re: Variant image debugging problem
Posted:
19 Sep 22, 22:32
in response to: JeffTucker
|
|
|
|
Maybe a new tab on the advanced settings tab.
Settings>Advanced>Variants>Print variant size on image.
Alternatively on the images>advanced tab, there is already a superimpose play icon option.
If it is a new setting then an ‘advanced’ tab seems safer to me.
|
|
|
Posts:
8,100
Registered:
31-Jan-2006
|
|
|
|
Re: Variant image debugging problem
Posted:
19 Sep 22, 22:35
in response to: RobM
|
|
|
|
I was just thinking of my skins, which don't support variants at all, so that panel isn't shown. I'd rather have the "overlay" setting vanish with it.
|
|
|
Posts:
3,950
Registered:
4-Aug-2006
|
|
|
|
Re: Variant image debugging problem
Posted:
20 Sep 22, 12:37
in response to: JeffTucker
|
|
|
Marcus is not the only user to have found this a problem, there was a previous post in Tiger by Gadaud. The feature was, and is, intended as a debugging aid for skin developers and not something users should stumble upon.
|
|
|
Posts:
3,712
Registered:
18-Oct-2002
|
|
|
|
Re: Variant image debugging problem
Posted:
20 Sep 22, 13:54
in response to: JeffTucker
|
|
|
I agree. It's pretty exceptional that the logging level affects the final gallery so I've changed this behavior in the upcoming beta. If you now want this debugging printed on Variants, then you need to pass -DdebugVariants=true on jAlbum's command line or open the system console and issue System.setProperty("debugVariants", "true");
beta jalbum-core.jar updated.
|
|
|
Posts:
8,100
Registered:
31-Jan-2006
|
|
|
|
Re: Variant image debugging problem
Posted:
20 Sep 22, 14:14
in response to: davidekholm
|
|
|
I agree. It's pretty exceptional that the logging level affects the final gallery so I've changed this behavior in the upcoming beta. If you now want this debugging printed on Variants, then you need to pass -DdebugVariants=true on jAlbum's command line or open the system console and issue System.setProperty("debugVariants", "true");
beta jalbum-core.jar updated.
Sounds like a good solution, as long as RobM updates his excellent wiki, so we can find this again a year from now. 
|
|
|
Posts:
1,116
Registered:
14-Dec-2007
|
|
|
|
Re: Variant image debugging problem
Posted:
20 Sep 22, 15:24
in response to: davidekholm
|
|
|
open the system console and issue System.setProperty("debugVariants", "true");
I did test this on my Windows 10 system: System.setProperty("debugVariants", "true");
Making "Sample_project_FB" (All)
"Sample_project_FB" made in 23,283s
But it does not work on my place.
|
|
|
Posts:
3,950
Registered:
4-Aug-2006
|
|
|
|
Re: Variant image debugging problem
Posted:
20 Sep 22, 15:54
in response to: JeffTucker
|
|
|
I agree. It's pretty exceptional that the logging level affects the final gallery so I've changed this behavior in the upcoming beta. If you now want this debugging printed on Variants, then you need to pass -DdebugVariants=true on jAlbum's command line or open the system console and issue System.setProperty("debugVariants", "true");
beta jalbum-core.jar updated.
Sounds like a good solution, as long as RobM updates his excellent wiki, so we can find this again a year from now. 
Updated the preferences, developer tags and command line pages to show the different ways, for jAlbum users 24 to 28.1 and then new versions.
Edited by: RobM on 20 Sep 2022, 16:24
Also an entry in the glossary V>Variants
|
|
|
Posts:
8,100
Registered:
31-Jan-2006
|
|
|
|
Re: Variant image debugging problem
Posted:
20 Sep 22, 16:05
in response to: AndreWolff
|
|
|
But it does not work on my place.
It needs two things: First, the absolutely latest beta core - even the one I had, installed yesterday, wasn't new enough. It reads 29b12. And when you plug the code into the console, make sure you hit CTRL-E to execute it. You should see something like this in the lower console panel: 0.515s ==> null
|
|
|
Posts:
1,116
Registered:
14-Dec-2007
|
|
|
|
Re: Variant image debugging problem
Posted:
20 Sep 22, 16:32
in response to: JeffTucker
|
|
|
It needs two things: First, the absolutely latest beta core - even the one I had, installed yesterday, wasn't new enough. It reads 29b12.
That is what I see
And when you plug the code into the console, make sure you hit CTRL-E to execute it. You should see something like this in the lower console panel: 0.515s ==> null
After entering that statement, I did hit Ctrl+E but I do not get the type of response you see.
|
|
|
Posts:
3,712
Registered:
18-Oct-2002
|
|
|
|
Re: Variant image debugging problem
Posted:
20 Sep 22, 16:49
in response to: AndreWolff
|
|
|
To avoid confusion, I've bumped the revision to b13. Get https://jalbum.net/download/beta/jalbum-core.jar and replace lib/jalbum-core.jar with it. Now you should be able to set the "debugVariants" system property to "true" and get debug info printed onto the generated Variants (requires a "force rebuild")
|
|
|
Posts:
8,100
Registered:
31-Jan-2006
|
|
|
|
Re: Variant image debugging problem
Posted:
20 Sep 22, 17:09
in response to: davidekholm
|
|
|
|
|
To avoid confusion, I've bumped the revision to b13.
I was just about to explain that in your version control system, there can be more than one version labeled b12. I've gotten used to that, but it still makes me a little crazy.
And perhaps a handy screenshot, attached.
|
|
|
Posts:
1,116
Registered:
14-Dec-2007
|
|
|
|
Re: Variant image debugging problem
Posted:
20 Sep 22, 17:16
in response to: davidekholm
|
|
|
|
|
|
Sorry, my fault: I did enter the debug statement in the lower part of the system console!
If I do it in the upper part, it works as decribed, in 29b12 see screenshot.
Thanks for this feature and the help!
|
|
|
Posts:
3,712
Registered:
18-Oct-2002
|
|
|
|
Re: Variant image debugging problem
Posted:
20 Sep 22, 18:01
in response to: AndreWolff
|
|
|
|
I've adjusted the console window now to allow selected expressions to be executed from either the upper or lower panel of the system console.
|
|
|
|
Legend
|
|
Forum admins
|
|
Helpful Answer
|
|
Correct Answer
|
|