getmusicbee.com

Support => Developers' Area => TheaterMode => Topic started by: hiccup on December 02, 2017, 11:00:51 PM

Title: using the 'composer' tag for images gives very strange results?
Post by: hiccup on December 02, 2017, 11:00:51 PM
This is weird and confusing.

I took XBOX Music Style as a bases, and tried to generate a gallery of pictures of the 'composer' instead of the 'artist'.
  
So I only changed:

Code
<element type="Gallery" x="1" y="1" widthDock="Panel" width="-2" heightDock="Panel" height="-2" aspectRatio="zoomKeep" interval="60" tags="artist"></element>
to:

Code
<element type="Gallery" x="1" y="1" widthDock="Panel" width="-2" heightDock="Panel" height="-2" aspectRatio="zoomKeep" interval="60" tags="composer"></element>

I expected TM would then look at the contents of the 'composer' tag, and display images of that person.

But I get: houses, walls, lakes, windows, plaques, furniture and whatnot.
But no portraits of the composer?

Very funny, but even more confusing.
How can I get the results I would like?
Title: Re: using the 'composer' tag for images gives very strange results?
Post by: hiccup on December 05, 2017, 05:00:50 PM
To illustrate it a bit better, these are some typical images it generates.
None of them being a nice and flattering portrait of good old Bach.

(the composer tag is populated here with: johann sebastian bach)

(https://i.imgur.com/VlFX4Yf.png)
Title: Re: using the 'composer' tag for images gives very strange results?
Post by: Steven on December 05, 2017, 06:03:21 PM
looking at the code, the way its been implemented is
Code
<element type="Gallery" x="1" y="1" widthDock="Panel" width="-2" heightDock="Panel" height="-2" aspectRatio="zoomKeep" interval="60" tags="artist" artistType="composer"></element>
Title: Re: using the 'composer' tag for images gives very strange results?
Post by: hiccup on December 05, 2017, 06:33:43 PM
Yes, I noticed that being an option for Pictures.

Could it be it isn't working for Gallery?
Title: Re: using the 'composer' tag for images gives very strange results?
Post by: Steven on December 05, 2017, 06:52:01 PM
working fine here. Did you set: tags="artist" artistType="composer"
Title: Re: using the 'composer' tag for images gives very strange results?
Post by: hiccup on December 05, 2017, 07:17:26 PM
Yes, and I am getting slightly better results by now.

But the results are very mixed and far from perfect.
I now mostly get images from artists (performers), and only sometimes from the composer.
So it doesn't seem to strictly source from the 'composer' tag?

(and when it indeed shows the composer, it sometimes will still be a photograph of a statue of him, but that might be more difficult to avoid)

Are there other settings or tagging aspects this is depending on that might be influencing the results?
(I'd hate the culprit of this strictly being on my side)


edit:

This is the xml I am using to test this:

Code
<?xml version="1.0" encoding="utf-8"?>
<root>
<settings enableScaling="true" />
<element type="Gallery" x="100" y="100" width="600" height="300" aspectRatio="zoomKeep" interval="31" tags="artist" artistType="composer"></element>
</root>


edit:
Never mind, I'm no longer pursuing this.
Title: Re: using the 'composer' tag for images gives very strange results?
Post by: Steven on December 07, 2017, 05:15:28 PM
I think the plugin falls back to the artist picture if none is found for the composer ie. if the behavior was changed, you would have no picture at all in the cases where the artist picture is being displayed or only one or two composer pictures repeated