LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Automatically Add date to .gif (http://www.linuxquestions.org/questions/linux-software-2/automatically-add-date-to-gif-767940/)

joborohe 11-09-2009 11:24 AM

Automatically Add date to .gif
 
Alright,

What Im looking for is a script that would automatically add a date to a .gif, which I can run daily as a cron job. I don't know perl very well, but It seems that Perl & Gimp might be a way to get the job done. Any help is greatly appreciated.

pixellany 11-09-2009 12:05 PM

Do you mean add the date to the filename?

Suppose name=filename
Code:

cp $name "$name"$(date +_%m_%d)
Creates file named "filename_11_09"

arizonagroovejet 11-15-2009 02:52 PM

If you want to have the date as part of the image then look at ImageMagick. If you don't have it installed then it's in your repos.

The way to do it is probably to create an image containing today's date and then composite that over the .gif you refer to.


All times are GMT -5. The time now is 05:13 PM.