Skip to content

Transparent pngs still showing as black in certain places #5107

@kieranhogg

Description

@kieranhogg

What version of Music Assistant has the issue?

dev

How is the MA server installed?

Home Assistant OS Addon

Mandatory: Carefully read the Troubleshooting FAQ and confirm that

  • I have examined the logs and tried to resolve this issue
  • I have fixed any errors or warnings in the logs that relate to tags
  • I am not running MA across a VPN, VLAN, subnet, behind a firewall, or using local SSL or have any other complex network setup
  • I am not using or have disabled tools such as AdGuard, Pi-hole or pfSense and retested
  • I have checked my network setup to ensure mDNS/multicast is not being blocked
  • I have reviewed the Open and Closed Issues and Discussions
  • I have reviewed the applicable player or music provider documentation
  • I have reviewed the MA Status Page
  • I have tried restarting MA and rebooting the host

As Applicable: Carefully read the Troubleshooting FAQ and confirm that

  • If using HA, I have confirmed the internal URL is set correctly
  • I have tried a wired connection for issues related to interrupted or poor playback quality
  • If the problem relates to a device then I have checked the device settings
  • If it is a frontend issue, I have tried a different widely used browser
  • For voice problems, I have sought help elsewhere before returning here
  • For playback problems, I have recycled power to the physical device

The problem

I initially reported this a few months back which was largely fixed by this commit: music-assistant/server@5a85ce0

I'm still seeing the same behavior (transparent pngs are being loaded as jpgs with back background) on some occasions. I don't know if it's the only way to reproduce / place to observe, but logos loaded from cache in the player pane seem to the easiest way to reproduce this.

Working URL: http://localhost:8095/imageproxy?path=https%253A%252F%252Fsounds.files.bbci.co.uk%252F3.9.4%252Fnetworks%252Fbbc_6music%252Fcolour_450x450.png&provider=bbc_sounds&checksum=&size=256

Incorrect URL: http://localhost:8095/imageproxy?provider=bbc_sounds&size=500&fmt=jpeg&path=https%253A%252F%252Fsounds.files.bbci.co.uk%252F3.9.4%252Fnetworks%252Fbbc_6music%252Fcolour_450x450.png

Example:
Image

This is as of 2.8.0 beta / dev r35662

How to reproduce

  1. Load a radio stream with a transparent png icon
  2. Reload page
  3. Observe cached jpg version

Music Providers

BBC Sounds

Player Providers

N/A - same for all

Full log output

N/A

Additional information

N/A

What version of Home Assistant Core (if used) are your running

N/A

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

macOS

Have you included ALL of the information specified in the Troubleshooting FAQ or explained why you cannot

  • Yes

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions