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


Permlink Replies: 25 - Pages: 2 [ 1 2 | Next ] - Last Post: 22 Sep 22, 18:52 Last Post By: MarkusD Threads: [ Previous | Next ]
JeffTucker

Posts: 8,040
Registered: 31-Jan-2006
Variant image debugging problem
Posted: 19 Sep 22, 22:20
 
  Click to reply to this thread Reply
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.
RobM

Posts: 3,932
Registered: 4-Aug-2006
Re: Variant image debugging problem
Posted: 19 Sep 22, 22:32   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
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.
JeffTucker

Posts: 8,040
Registered: 31-Jan-2006
Re: Variant image debugging problem
Posted: 19 Sep 22, 22:35   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
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.
RobM

Posts: 3,932
Registered: 4-Aug-2006
Re: Variant image debugging problem
Posted: 20 Sep 22, 12:37   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
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.
davidekholm

Posts: 3,679
Registered: 18-Oct-2002
Re: Variant image debugging problem
Posted: 20 Sep 22, 13:54   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
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.
JeffTucker

Posts: 8,040
Registered: 31-Jan-2006
Re: Variant image debugging problem
Posted: 20 Sep 22, 14:14   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
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. ;)
AndreWolff

Posts: 1,116
Registered: 14-Dec-2007
Re: Variant image debugging problem
Posted: 20 Sep 22, 15:24   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
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.
RobM

Posts: 3,932
Registered: 4-Aug-2006
Re: Variant image debugging problem
Posted: 20 Sep 22, 15:54   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
JeffTucker wrote:
davidekholm wrote:
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
JeffTucker

Posts: 8,040
Registered: 31-Jan-2006
Re: Variant image debugging problem
Posted: 20 Sep 22, 16:05   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
AndreWolff wrote:
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
JeffTucker

Posts: 8,040
Registered: 31-Jan-2006
Re: Variant image debugging problem
Posted: 20 Sep 22, 16:07   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Oh, and one more note of caution. After using this debug mode, be sure you close jAlbum and relaunch it. Otherwise that setting will stay there, and make a mess of one of your non-test projects.
AndreWolff

Posts: 1,116
Registered: 14-Dec-2007
Re: Variant image debugging problem
Posted: 20 Sep 22, 16:32   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
JeffTucker wrote:
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.
davidekholm

Posts: 3,679
Registered: 18-Oct-2002
Re: Variant image debugging problem
Posted: 20 Sep 22, 16:49   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
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")
JeffTucker

Posts: 8,040
Registered: 31-Jan-2006
Re: Variant image debugging problem
Posted: 20 Sep 22, 17:09   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Attachment debug.png (27.2 KB)
davidekholm wrote:
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.
AndreWolff

Posts: 1,116
Registered: 14-Dec-2007
Re: Variant image debugging problem
Posted: 20 Sep 22, 17:16   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Attachment jALBUM_CONSOLE.jpg (31.8 KB)
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!
davidekholm

Posts: 3,679
Registered: 18-Oct-2002
Re: Variant image debugging problem
Posted: 20 Sep 22, 18:01   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
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

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