The goal is to add some data to the meta data of jpg and png images.
I have working code(using dotnet) to do this for jpg images, but it does not work for png(because the lack of available properties).
So, searching the net and I have found this:
As author states:
"The CompactExifLib library consists of one single .cs file. Therefore, it is very easy to use the library, just add the file ExifData.cs to your project and insert the namespace CompactExifLib with a using command. "
I’ve downloaded the files, but when I add the c# code to maxscript I have an error:
StringStream:"Error:CS1010 Line:66 Column:68 Newline in constant Error:CS1012 Line:66 Column:68 Too many characters in character literal
Putting the c# code here: https://dotnetfiddle.net/IFdwlU
Run-time exception (line -1): Execution time limit was exceeded
[DotNetFiddle.Infrastructure.LimitExceededException: Execution time limit was exceeded]
Putting it here: https://www.programiz.com/csharp-programming/online-compiler/
and here: https://rextester.com/
error CS5001: Program does not contain a static 'Main' method suitable for an entry point
The c# code is 4000+ lines, so here is the maxscript:
Can this c# code be used directly inside a maxscrtipt?