LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

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

Rep: Reputation: 0
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.
 
Old 11-09-2009, 12:05 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
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"
 
Old 11-15-2009, 02:52 PM   #3
arizonagroovejet
Member
 
Registered: Jun 2005
Location: England
Distribution: SLED, openSUSE
Posts: 997

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


Reply

Tags
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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 04:18 PM.

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