You are here

Removing Timestamp

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Rate this item!
AttachmentSize
preview.png246.63 KB
remove_timestamp.scm3.36 KB
remove_timestamp.py4.96 KB
remove_timestamp_batch.py1.76 KB

This script removes the timestamp imprinted on photos by digital cameras.
A friend had more than 400 photos with such a timestamp so I tried to get rid of it in a fast way. The script is a little quick'n'dirty but in most cases it's doing the job just fine. Better than I thought in the first place...

The procedure:

  1. select the area with the timestamp (manually but optional)
  2. select the color of the timestamp in your selection
  3. add alpha channel to layer (transparent background)
  4. remove the timestamp
  5. duplicate the layer to background
  6. interchange pixels near the timestamp gap (multiple times)
  7. meld the pixels a bit
  8. duplicate the layer with offset around the gap (multiple times)
  9. merge all layers together

Clearly I didn't want to load all the photos manually, that's why wrote a script for batch processing. It processes all photos within a specified directory and selects the area with the timestamp. This script is no real Gimp plugin script. It's just pure python...

Install:

Copy the python_remove_timestamp.py into ~/gimp-2.6/plug-ins/ and make it executable
The batch loader can be placed where you want

Use:

  • the plugin can be loaded within Gimp menu: Python-Fu --> Remove timestamp
  • the batch loader should be opened from the console:
    gimp -i --batch-interpreter python-fu-eval --batch - < remove_timestamp_batch.py

UPDATE 2010-01-13: Because of the troubles with Python I've adapted the script also to Scheme.

UPDATE 2010-11-20: Fixed some bugs and set a larger timestamp selection in batch script.

Code License: 
GIMP Version: 
Scripting Engine: 

Comments

Both the script and plug-in are ineffective for "out of the box" use in removing timestamps. The script should not need 4 additional steps on order to achieve success in removing the timestamps, especially for using in batch mode!

The instructions for use are too vague and confusing for users to follow.

Perhaps an update/fix is in order?

I am not sure how to add the remove timestamp which is in script format. I would like to know if there is a plug-in and if not then how do I add this feature to my 2.6 version. I am running Vista. Thanks.

I got the individual timestamp remover to work beautifully.
However, I am new to GIMP and Python, and have no idea how to enter that line of code for the batch processor. Can anyone offer step-by-step instructions for the batch? (i.e, which command prompt to put the code in, and line-by-line, exactly what to type)

Thank you so much!

Hi! I really like Gimp, I'm a windows and linux user and have gimp both in windows and debian.

For the moment, I have Windows Server 2003/GIMP 2.6.8/Python 2.6/Pycairo 1.8.6/pygobject 2.20/pygtk 2.16 set up and working.
'remove_timestamp.py' is working fine, but the 'remove_timestamp_batch.py' run from the command prompt fail with an error message that says it cannot find the 'python_remove_timestamp' procedure wich I saw is defined in the 'remove_timestamp.py'.

It looks like gimp, run from the command prompt, cannot find the 'remove_timestamp.py' plugin.

I copied the 'remove_timestamp.py' and 'remove_timestamp_batch.py' in the "C:\Program Files\GIMP-2.0\lib\gimp\2.0\python" folder, and 'remove_timestamp.scm' in "C:\Program Files\GIMP-2.0\share\gimp\2.0\scripts".

I really need the batch version working, because I have hundreds of photos. Any clue?

Subscribe to Comments for "Removing Timestamp"