Page 1 of 1

Album Art Sizing

PostPosted: Tue Mar 07, 2017 12:10 am
by chrisfromthelc
Using the dialog box settings, the album art download seems to ignore the size requirement. Should I designate pixels (ex: "125px")?

It doesn't matter what the Art To Download selection is, it seems to ignore the sizing no matter what. My goal is to use the image on a control page screen, so consistent sizing is important.

Any ideas?

Re: Album Art Sizing

PostPosted: Tue Mar 07, 2017 8:29 am
by RogueProeliator
It doesn't matter what the Art To Download selection is, it seems to ignore the sizing no matter what. My goal is to use the image on a control page screen, so consistent sizing is important.

Are you seeing that one of the dimensions (width or height) is being set to 125, but the other is not?

Re: Album Art Sizing

PostPosted: Thu Jul 06, 2017 2:56 am
by kelmk
I have the same issue. The image is not resizing at all no matter what I set resize to.

Re: Album Art Sizing

PostPosted: Thu Jul 06, 2017 9:23 am
by RogueProeliator
Turn on debugging for the plugin and see if anything shows up in the logs... also, can you open a terminal and type in "sips" and enter? This should be included in all OS X versions, but let's just make sure. It will return some brief info about usage if it is found, otherwise you'll see the standard "file not found" type error message.

Adam

Re: Album Art Sizing

PostPosted: Sat Jul 08, 2017 3:16 pm
by kelmk
Trigger save plex art
Plex Media Server Manager Debug Scheduling download of art at /library/metadata/13185/thumb/1493146035
Plex Media Server Manager Debug Processing GET operation: (u'http', u'/library/metadata/13185/thumb/1493146035', u'', u'', u'', u'/Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/images/controls/static/plexArt.png', 150, 0)
Plex Media Server Manager Debug /Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/images/controls/static/plexArt.png resized via sip shell command

in terminal

sips
sips 10.4.4 - scriptable image processing system.
This tool is used to query or modify raster image files and ColorSync ICC profiles.
Its functionality can also be used through the "Image Events" AppleScript suite.
Try 'sips --help' or 'sips --helpProperties' for help using this tool

Thanks

Re: Album Art Sizing

PostPosted: Sat Jul 08, 2017 3:20 pm
by kelmk
I turned up the debug level and ran it again.

Trigger save plex art
Plex Media Server Manager Debug Scheduling download of art at /library/metadata/13185/thumb/1493146035
Plex Media Server Manager Threaddebug Command queue has 1 command(s) waiting
Plex Media Server Manager Debug Processing GET operation: (u'http', u'/library/metadata/13185/thumb/1493146035', u'', u'', u'', u'/Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/images/controls/static/plexArt.png', 150, 0)
Plex Media Server Manager Threaddebug Added authentication token to request
Plex Media Server Manager Threaddebug Command Response: [200] -=- binary data written to /Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/images/controls/static/plexArt.png-=-
Plex Media Server Manager Threaddebug Executing resize via command line "sips -Z 150 /Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/images/controls/static/plexArt.png"
Plex Media Server Manager Debug /Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/images/controls/static/plexArt.png resized via sip shell command

running this command in the terminal

sips -Z 150 /Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/images/controls/static/plexArt.png
Warning: /Library/Application not a valid file - skipping
Warning: Support/Perceptive not a valid file - skipping
Warning: Automation/Indigo not a valid file - skipping
Warning: 7/IndigoWebServer/images/controls/static/plexArt.png not a valid file - skipping
Error 4: no file was specified

seems it's messing up because it's not escaping the spaces in the path

This works

sips -Z 150 /Library/Application\ Support/Perceptive\ Automation/Indigo\ 7/IndigoWebServer/images/controls/static/plexArt.png

Re: Album Art Sizing

PostPosted: Mon Jul 10, 2017 12:23 pm
by RogueProeliator
Agreed - it does appear to have lost its encoding somehow... I'll take a look and get a fix out.