alonetone icon indicating copy to clipboard operation
alonetone copied to clipboard

Original appearance of an uploaded non square album art isn't cropped

Open ofsound opened this issue 5 years ago • 3 comments

Screenshot 2019-10-21 16 05 24

ofsound avatar Oct 21 '19 22:10 ofsound

@ofsound Is this still an issue?

Manfred avatar Nov 11 '19 15:11 Manfred

@Manfred Yes, right after uploading, when the new image first appears on the page, before the playlist is saved, when it's in this state:

img src="data/jpeg;base64...

ofsound avatar Nov 11 '19 19:11 ofsound

Ah, that image element is created by the JavaScript based on the file loaded from disk. The easiest way to solve this is probably to change the JavaScript to create a style attribute with a background-image data URL and then style it properly.

Manfred avatar Nov 12 '19 07:11 Manfred