QDivision 42 Posted August 14, 2017 Posted August 14, 2017 Hi, I have just done a complete fresh install using the latest emby server (3.2.27) on Windows 10. Some of the Live TV logos look corrupted (see attached). All the logos are .png format and appear fine when viewing them standalone or in Kodi. The TV backend is DVBLink. Hope someone can help. Thanks!
Luke 38981 Posted August 15, 2017 Posted August 15, 2017 hi @ what did those images look like before hand? thanks.
QDivision 42 Posted August 15, 2017 Author Posted August 15, 2017 Attached are the logos that should be displayed for ITV2 and BBC4
Luke 38981 Posted August 15, 2017 Posted August 15, 2017 Can you zip those up to ensure the forum software hasn't re-encoded them? thanks.
QDivision 42 Posted August 15, 2017 Author Posted August 15, 2017 zip is attached. The other weird thing I've noticed is that some of them have picked the completely wrong logo. see attached screenshots. Should I try clearing them in cache and refreshing guide data? logos.zip
Sven 136 Posted August 15, 2017 Posted August 15, 2017 I assume the logo's are coming from DVBLink? In that application the logo's are OK? Can you maybe also add your logs from the server?
QDivision 42 Posted August 15, 2017 Author Posted August 15, 2017 (edited) Just cleared the logs and done a guide refresh (log attached). doesn't look like it has any details on getting the images. Edited August 20, 2017 by thomasorr
QDivision 42 Posted August 15, 2017 Author Posted August 15, 2017 Yes they are coming from dvblink and they are fine in there. They are also fine in Kodi which is linked to dvblink.
Luke 38981 Posted August 16, 2017 Posted August 16, 2017 Those logos are all rendering OK for me but I'm still going to try and dig a bit deeper into this. As far as the wrong logos appearing, that would be something to take up with the developer of the dvblink plugin.
QDivision 42 Posted August 16, 2017 Author Posted August 16, 2017 I've been doing some experimenting and found that the corruption happens when the jpeg image gets converted to webp (the original png files re converted to jpeg by emby successfully). The bug seems to be a common issue and happens when a zero padding is missed out on odd size images (depending on what library you're using to make the webp images) Hope this helps fix the issue.
Luke 38981 Posted August 16, 2017 Posted August 16, 2017 what do you mean by original png converted to jpg by emby?
QDivision 42 Posted August 16, 2017 Author Posted August 16, 2017 The original logos are in png format, when emby discovers them I can see them getting converted to jpeg format and stored in %emby-data-path%\metadata\livetv\%random-string%\poster.jpg They are not corrupted here but when I look in %emby-data-path%\cache\images\resized-images\%prefix%\%random-string-file-name.webp% the images in question are corrupted when I view them directly.
Luke 38981 Posted August 17, 2017 Posted August 17, 2017 What do you mean by discovers them? When are they being converted to jpg? Are you supplying these images yourself manually or is the plugin doing it?
QDivision 42 Posted August 17, 2017 Author Posted August 17, 2017 Starting with a clean installation with only DVBLink plugin installed, I select the option to use server logos in the plugin settings. Then when I press refresh guide I can see the logos being populated in the metadata folder as previously said but in jpeg format (they are in png format in the DVBLink logo folder), so either emby or the plugin has converted them. These logos are fine and there is no corruption. Then when I go to the web Live TV dashboard under the channels section the cache folder fills up with the .webp format logos and this is when some of them get corrupted.
Luke 38981 Posted August 17, 2017 Posted August 17, 2017 I think the plugin is reporting to the server that they are jpg and that might be the root of the issue. Either that or it is not reporting the image format at all.
QDivision 42 Posted August 17, 2017 Author Posted August 17, 2017 That wouldn't explain why it's only happening to a select few of them. Could it not be a bug with converting the images to webp? Something similar to this... https://stackoverflow.com/questions/30078090/imagewebp-php-creates-corrupted-webp-files/30124973
Luke 38981 Posted August 17, 2017 Posted August 17, 2017 Nonetheless I would still expect side effects as a result of that, because we save a png as jpg and then that will affect the way image processing libraries interpret it.
QDivision 42 Posted August 19, 2017 Author Posted August 19, 2017 I've remade the logos as jpg files and the issue has gone. I'll just use jpg files in the future.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now