Click here to Skip to main content
15,867,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to either convert a TBN file[^] to JPG or load it into an Image object from where I can save it to JPG.

Unfortunately, the C# Image.FromFile cannot read TBN files despite the fact that they are basically JPGs.

Obviously, simply renaming the file doesn't work either... :-(

Google is not my friend today!

Has anybody got any ideas? I'm not opposed to using a 3rd party library, but I can't find any...

What I have tried:

Opening the file in C# using System.Drawing.Image.FromFile()

Renaming the file to JPG.

Googling

Searching Nuget for appropriate libraries

Trying to see if ffmpeg could convert it - it can't!
Posted
Updated 23-Dec-20 6:13am
v2
Comments
Richard MacCutchan 23-Dec-20 4:12am    
According to that link:
1. TBN files are just JPG with a different extension (why?).
2. Kodi (which can read them) is open source.
Johnny J. 23-Dec-20 5:13am    
>TBN files are just JPG with a different extension (why?).
Really good question. The link also says that you can open TBN files using any image viewer in Windows. But the file I have certainly won't open neither in any image viewer programs nor image editors...
Richard MacCutchan 23-Dec-20 5:40am    
Sorry, the only information I have is what is on that website. Try the open source product and see if that helps.
Johnny J. 23-Dec-20 5:53am    
I know. No problem. Unfortunately, the open source project is in C/C++, and I don't know that... :-(

1 solution

Quote:
Renaming the file to JPG.


Try ".jpg"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900