gif2base64: a tool to convert gif pictures to base64
Development, English, TCL August 1st, 2007I have just submitted a tool to our board, that is able to convert gif pictures into base64. This might be useful to developers, who intend to use pictures in their applications but are sick of delivering the pictures directly. Base64 offers the possibility to include these pictures in your source code. The tool features a GUI with basic open/save and display options. If you have any suggestions or if you have found any bugs, be kind enough to let me know.






August 6th, 2007 at 11:28
Hej SIYB,
what’s wrong with “uuencode -m from.gif to.plain”?
I mean, do you really need a GUI? ;)
Regards
Evgeni
August 6th, 2007 at 11:32
Ah, and I forgot, this of course works with every file-type, not only gif.
However, I do not understand why one should want to deliver images in sourcecode and not as images…
August 6th, 2007 at 12:46
Well my program would work with all file formats as well but I restricted it so that only gif files can be converted, as it is ought to be used to convert gif files for later useage in TCL/TK scripts.
Additionally the tool can convert base64 back to gif and features a preview. You must remember that not everybody uses a terminal (windows users for instance).
Additionally, the program is fairly slim (~150 lines). The advantage of pictures directly located in code is obvious , why should you create a package for a small script if you can place everything a single text file? In bigger projects you can have one text file containing all artwork, in my opinion, it’s just easier to handle and more organizable.
The point is, if you don’t need it, don’t use it :>