Solved Renaming logo and clearlogo as jpg not png
#1
Since latest update when updating or adding new TV shows if I choose to add my own logo or clearlogo by selecting "choose file" even though the file I am selecting is a png it renames it as logo.jpg or clearlogo.jpg.  This is a pain as when Kodi looks for logo or clearlogo it looks only for a png.  TinyMediaManager never used to do this.  It has started since last update.  NB. This does not happen if I scrape the logo from fanart.tv.
#2
this must have to do with the following change: https://gitlab.com/tinyMediaManager/tiny...11962be484 (originally posted by issue https://gitlab.com/tinyMediaManager/tiny...issues/953 / here in the forums)

if we cannot infer the file type from the file name, we fixate this to ".jpg". You probably have your pngs without valid extensions on the hard drive and this is why tmm cannot detect the type
tinyMediaManager - THE media manager of your choice - available for Windows, macOS and Linux
Help us translate tinyMediaManager at Weblate | Translations at 66%
Found a bug or want to submit a feature request? Contact us at GitLab
#3
(2020-09-06, 09:37)mlaggner Wrote: this must have to do with the following change: https://gitlab.com/tinyMediaManager/tiny...11962be484 (originally posted by issue https://gitlab.com/tinyMediaManager/tiny...issues/953 / here in the forums)

if we cannot infer the file type from the file name, we fixate this to ".jpg". You probably have your pngs without valid extensions on the hard drive and this is why tmm cannot detect the type

They are all valid pngs (saved when created on Adobe Photoshop) with png extension. I even tested one I did months ago which at the time TMM had no problem with and did not change the extension at the time, but now since the latest update even that one gets changed to a jpg. I even did test by naming one logo.png and after selecting it TMM changed it to logo.jpg
#4
I can confirm the issue testing with fanart image. It happens with "choose file" action. "download image" action that you fixed works fine with png files retaining the same extension.
But what's odd is it doesn't remove the previous fanart image if the new fanart image contains a different extension.
#5
do you have those files on a network share? (I did test it with choosing a local file from my downloads folder)

EDIT: strange - seems to happen on windows only. Can confirm this on a Windows machine
tinyMediaManager - THE media manager of your choice - available for Windows, macOS and Linux
Help us translate tinyMediaManager at Weblate | Translations at 66%
Found a bug or want to submit a feature request? Contact us at GitLab
#6
okay, has been a Windows only bug - will be resolved in 3.1.9/v4
tinyMediaManager - THE media manager of your choice - available for Windows, macOS and Linux
Help us translate tinyMediaManager at Weblate | Translations at 66%
Found a bug or want to submit a feature request? Contact us at GitLab
#7
(2020-09-07, 08:57)tars Wrote: But what's odd is it doesn't remove the previous fanart image if the new fanart image contains a different extension.

Is this intended? Does it overwrite the previous image only if the extension is the same as the new one and just leave it if they are different?
#8
in this case yes -> we just "exchange" the images.. whenever the extension changes, you get a new "unique" filename..

this will need a bit more brainstorming how to solve this behavior
tinyMediaManager - THE media manager of your choice - available for Windows, macOS and Linux
Help us translate tinyMediaManager at Weblate | Translations at 66%
Found a bug or want to submit a feature request? Contact us at GitLab

Logout Mark Read Team Forum Stats Members Help
Renaming logo and clearlogo as jpg not png0