Here is a short script (1.6kb) to add a timestamp on all PNG pictures in a directory. It requires Python and the Python Image Library (PIL). In order to use it, modify some parameters in the beginning to suit your needs (images directory, font file and size, etc.) and launch
./timestampFiles.py. Here is a before/after example (size of pictures is reduced to fit in this blog):
Note 1: the font is not included in the script. Here, I used FreeSans which is a true free font (GNU GPL with font exception). It is available here (local copy, just the FreeSans font, 753kb).
Note 2: I chose to convert PNG images to JPG ones for 2 reasons. First, my capture script gives me PNG images (see previous posts). Second, I want to be able to copy all JPG pictures in a MJPEG movie. It shouldn’t be difficult to change the different file formats to suit your needs (ask me if you can’t do that).
Note 3: I guess this would also have been possible using a bash script and imagemagick, Perl or any other programming language 😉
In the Free Software Movement, we believe computer users should have the freedom to change and redistribute the software that they use. The “free” in free software refers to freedom: it means users have the freedom to run, modify and redistribute the software. Free software contributes to human knowledge, while non-free software does not. Universities should therefore encourage free software for the sake of advancing human knowledge, just as they should encourage scientists and other scholars to publish their work.
As for free software, universities should encourage the use of free fonts, just for the sake of theirs employees, scientists and students. Free fonts are fonts the users have the freedom to use, modify and redistribute (you can find some of them here). Since I don’t have the technical abilities to modify fonts, here is a short story about the “use” and “redistribution” aspects …
The University of Liege chose a new logo in which they use the Bliss Medium font. The university is giving some variations around the logo but none of these variations include white letters on a transparent background (the version I want for my poster with a coloured background). Since I don’t have the freedom to obtain and use this font (it costs Â£125 or â‚¬180 and I can’t redistribute it), I can’t create the simple variation I want. Fortunately, a graphic artist from the university did it for me. After some modifications of her image (no font, of course!), here is the result:
If one were using free fonts, this logo including my two labs would have taken 2 minutes … With a free font, all the ULg scientists could have included this new lettering in all kind of papers and this will be the start of a general “corporate feeling” in this university (1)…
Title and first paragraph from “Releasing Free Software if you work at a University” 😉
(1) Next time, I’ll write about the urgent need of a common policy about how to refer to the ULg in English. For the moment, in English papers, I’ve seen at least 3 names: University of Liege, Liege University, UniversitÃ© de LiÃ¨ge (and I don’t count variations including the accent or not) …