Flkalas / TwitterMediaAssist

Twitter Media Assist
https://addons.mozilla.org/en-US/firefox/addon/twitter-media-assist-ff
MIT License
83 stars 18 forks source link

[Feature] Option to convert/rename .jfif to .jpg #27

Closed Neatro closed 1 year ago

Neatro commented 1 year ago

Option to convert/rename .jfif to .jpg, as .jpg tends to be used more rather than .jfif

Flkalas commented 1 year ago

This issue is an old one. I've seen this problem several times, but all attempts to fix it have failed.

This problem combines two things.

Firstly, downloading extensions in the Chrome browser requires a very complex logic for renaming. If you use extensions without applying this logic or mix extensions with and without this logic, the names won't be changed correctly. Please refer to the following API documentation: https://developer.chrome.com/docs/extensions/reference/downloads/#event-onDeterminingFilename

Secondly, when downloading jpg images from the web on Windows, the default extension is set to jfif. This is a Windows problem and can be fixed by modifying the registry. You can resolve it by changing the Extension value from .jfif to .jpg for the key HKEY_CURRENT_USER\SOFTWARE\Classes\MIME\Database\Content Type\image/jpeg.

Both of these issues are not related to the TMA extension, and it is determined that TMA cannot control or fix them.