Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-09-2009, 11:24 AM   #1
LQ Newbie
Registered: Feb 2004
Posts: 15

Rep: Reputation: 0
Automatically Add date to .gif


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.
Old 11-09-2009, 12:05 PM   #2
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Do you mean add the date to the filename?

Suppose name=filename
cp $name "$name"$(date +_%m_%d)
Creates file named "filename_11_09"
Old 11-15-2009, 02:52 PM   #3
Senior Member
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Rep: Reputation: 198Reputation: 198
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.


cron, gif, gimp, perl

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox 3 gif images not loading automatically mitchellray Linux - Desktop 2 03-31-2009 10:11 AM
ntp port blocked - how to set date automatically unkie888 Linux - General 4 11-06-2007 05:57 AM
digikam 0.9.1 automatically create folder by date ToK Linux - Software 0 05-12-2007 03:12 AM
need shell script to copy 1.gif to 1-100.gif stefaandk Programming 6 03-23-2006 06:20 PM
How to automatically date the input directories satimis Programming 5 11-05-2004 09:11 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration