VectorLinux
October 31, 2014, 09:39:14 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1] 2
  Print  
Author Topic: [solved] program for date/time stamp on photos  (Read 3164 times)
MarkGrieveson
Vectorian
****
Posts: 531


« on: June 03, 2013, 07:50:28 am »

Hello.  I have an old digital camera (an HP 315).  It does not have a date stamp option for photos, but it does keep a record of when photos were shot.  So, I'm wondering if there is a program within Vector or Linux that would take this information and insert a date stamp onto the photos.  I found a Windows program, but haven't found a Linux program yet.
« Last Edit: June 09, 2013, 10:24:30 am by MarkGrieveson » Logged

I am using VL7.0 standard with XFCE
rbistolfi
Packager
Vectorian
****
Posts: 2290


« Reply #1 on: June 03, 2013, 11:44:53 am »

Hi Mark,

Looks like this one would do it: http://photobatch.wikidot.com/image-inspector
Logged

"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite."
Jorge Luis Borges, Avatars of the Tortoise.

--
Jumalauta!!
MarkGrieveson
Vectorian
****
Posts: 531


« Reply #2 on: June 03, 2013, 04:23:09 pm »

Hi rbistolfi,

I downloaded phatch version 0.2.7, and then successfully created a package out of it using vpackager.  I then successfully installed it, but got the following feedback when I tried to run it:

Code:
vector:/~
mark:$ phatch
Warning: python-wxversion is not installed.
Error: wxPython 2.8 (or at least 2.8) can not be found, but is required.

Please (re)install it./bin/sh: -c: line 4: syntax error near unexpected token `('
/bin/sh: -c: line 4: `This application needs 'python-wxversion' and 'python-wxgtk2.8' (or at least 'python-wxgtk2.8').'
Only the command line package 'phatch-cli' seems to be installed.
Please install the graphical user interface package 'phatch' as well.

vector:/~
mark:$


I think I have what it lists above:

Code:
vector:/~
mark:$ slapt-get --show python wxPython wxGTK
Package Name: python
Package Mirror: http://vectorlinux.osuosl.org/veclinux-7.0/packages/
Package Priority: Default
Package Location: ./d
Package Version: 2.7.2-i586-4vl70
Package Size: 9086 K
Package Installed Size: 67270 K
Package Required:   bzip2 >= 1.0.6,cxxlibs >= 6.0.14 | gcc-g++ >= 4.5.2,db44 >= 4.4.20,expat >= 2.0.1,fontconfig >= 2.8.0,freetype >= 2.4.4,gcc >= 4.5.2,gdbm >= 1.8.3,gettext-tools >= 0.18.1.1,glibc-solibs >= 2.13,icu4c >= 4.4.1,libX11 >= 1.4.2,libXScrnSaver >= 1.2.1,libXau >= 1.0.6,libXdmcp >= 1.1.0,libXext >= 1.2.0,libXft >= 2.2.0,libXrender >= 0.9.6,libxcb >= 1.7,ncurses >= 5.9,openssl >= 0.9.8r | openssl-solibs >= 0.9.8r,readline >= 6.1.002,sqlite >= 3070500,tcl >= 8.5.9,tk >= 8.5.9,zlib >= 1.2.5
Package Conflicts:   
Package Suggests:   
Package MD5 Sum:  e0972bec93bb92c62f0238c4d5f77309
Package Description:
 python (object-oriented interpreted programming language)

 Python is an interpreted, interactive, object-oriented programming
 language that combines remarkable power with very clear syntax.   
 Python's basic power can be extended with your own modules written in
 C or C++.  Python is also adaptable as an extension language for
 existing applications.
 License: GPL
 Authors: Guido van Rossum
 Website: http://www.python.org
Package Installed: yes
Package Name: wxPython
Package Mirror: http://vectorlinux.osuosl.org/veclinux-7.0/extra/
Package Priority: Default
Package Location: ./l
Package Version: 2.8.11.0-i586-3vl70
Package Size: 11942 K
Package Installed Size: 68120 K
Package Required:   SDL >= 1.2.14,atk >= 1.32.0,cairo >= 1.10.2,cxxlibs >= 6.0.14 | gcc-g++ >= 4.5.2,directfb >= 1.4.3,expat >= 2.0.1,fontconfig >= 2.8.0,freetype >= 2.4.4,gcc >= 4.5.2,gdk-pixbuf2 >= 2.22.1,glib2 >= 2.26.1,glibc-solibs >= 2.12.2,gtk+2 >= 2.22.1,libICE >= 1.0.7,libSM >= 1.2.0,libX11 >= 1.4.1,libXau >= 1.0.6,libXcomposite >= 0.4.3,libXcursor >= 1.1.11,libXdamage >= 1.1.3,libXdmcp >= 1.1.0,libXext >= 1.2.0,libXfixes >= 4.0.5,libXi >= 1.4.1,libXinerama >= 1.1.1,libXrandr >= 1.3.1,libXrender >= 0.9.6,libXxf86vm >= 1.1.1,libjpeg >= 8a,libpng >= 1.4.5,libtiff >= 3.9.4,libxcb >= 1.7,mesa >= 7.9_ccc11aa,pango >= 1.28.3,pixman >= 0.20.2,python >= 2.7.1,svgalib >= 1.9.25,util-linux >= 2.18,wxGTK >= 2.8.11,zlib >= 1.2.5
Package Conflicts:   
Package Suggests:   
Package MD5 Sum:  7ba7e22165bb8141090c58f94ec49970
Package Description:
 wxPython (Crossplatform GUI Toolkit)

 wxPython is a GUI toolkit for the Python programming language.
 It allows Python programmers to create programs with a robust,
 highly functional graphical user interface simply and easily.
 It is implemented as a Python extension module (native code)
 that wraps the popular wxWidgets cross platform GUI library
 which is written in C++.

 Homepage: http://wxPython.org/

Package Installed: yes
Package Name: wxGTK
Package Mirror: http://vectorlinux.osuosl.org/veclinux-7.0/extra/
Package Priority: Default
Package Location: ./l
Package Version: 2.8.11-i586-3vl70
Package Size: 2808 K
Package Installed Size: 12690 K
Package Required:   SDL >= 1.2.14,atk >= 1.32.0,cairo >= 1.10.2,cxxlibs >= 6.0.14 | gcc-g++ >= 4.5.2,directfb >= 1.4.3,expat >= 2.0.1,fontconfig >= 2.8.0,freetype >= 2.4.4,gcc >= 4.5.2,gdk-pixbuf2 >= 2.22.1,glib2 >= 2.28.1,glibc-solibs >= 2.13,gtk+2 >= 2.24.1,libICE >= 1.0.7,libSM >= 1.2.0,libX11 >= 1.4.1,libXau >= 1.0.6,libXcomposite >= 0.4.3,libXcursor >= 1.1.11,libXdamage >= 1.1.3,libXdmcp >= 1.1.0,libXext >= 1.2.0,libXfixes >= 4.0.5,libXi >= 1.4.1,libXinerama >= 1.1.1,libXrandr >= 1.3.1,libXrender >= 0.9.6,libXxf86vm >= 1.1.1,libjpeg >= 8a,libpng >= 1.4.5,libtiff >= 3.9.4,libxcb >= 1.7,mesa >= 7.9_ccc11aa,pango >= 1.28.3,pixman >= 0.21.6,svgalib >= 1.9.25,util-linux >= 2.19,zlib >= 1.2.5
Package Conflicts:   
Package Suggests:   
Package MD5 Sum:  85a911994015e454cba36617c9ecc7a2
Package Description:
 wxGTK (The GTK+ 2 port of the wxWidgets library)
 
 wxWidgets is a free C++ library for cross-platform GUI development.
 With wxWidgets, you can create applications for different GUIs (GTK+,
 Motif, MS Windows, MacOS X, Windows CE, GPE) from the same source
 code, using native controls where possible.
 
 
 License: GPL, LGPL, wxWindows Library Licence, Version 3.1
 Author:  Many, please see docs
 Website: http://www.wxwidgets.org/
Package Installed: yes
vector:/~
mark:$
Logged

I am using VL7.0 standard with XFCE
hata_ph
Packager
Vectorian
****
Posts: 3258


-- Just being myself --


« Reply #3 on: June 03, 2013, 04:39:36 pm »

phatch-0.2.7 is available in the VL-7.0 extra repo...you can install it via gslapt/slapt-get
Logged
rbistolfi
Packager
Vectorian
****
Posts: 2290


« Reply #4 on: June 03, 2013, 04:52:35 pm »

phatch-0.2.7 is available in the VL-7.0 extra repo...you can install it via gslapt/slapt-get

Nice. In any case, looks like we have a problem with wx because I cant import it from the python shell ?
Logged

"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite."
Jorge Luis Borges, Avatars of the Tortoise.

--
Jumalauta!!
hata_ph
Packager
Vectorian
****
Posts: 3258


-- Just being myself --


« Reply #5 on: June 03, 2013, 05:11:50 pm »

btw, imagemagick can add time stamp base on the EXIF info

http://dptnt.com/2009/08/add-date-time-stamp-to-jpeg-photos-using-free-software-mac-linux-nix-edition/
Logged
MarkGrieveson
Vectorian
****
Posts: 531


« Reply #6 on: June 04, 2013, 04:52:35 am »

I tried the phatch from the repository, and got the same result.  I'll take a look at the link you gave for imagemagick and see.
Logged

I am using VL7.0 standard with XFCE
rbistolfi
Packager
Vectorian
****
Posts: 2290


« Reply #7 on: June 04, 2013, 06:47:42 am »

I tried the phatch from the repository, and got the same result.  I'll take a look at the link you gave for imagemagick and see.

Yeah because the problem is in the wx package
Logged

"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite."
Jorge Luis Borges, Avatars of the Tortoise.

--
Jumalauta!!
hata_ph
Packager
Vectorian
****
Posts: 3258


-- Just being myself --


« Reply #8 on: June 04, 2013, 04:25:19 pm »

I install phatch-0.2.7 via gslapt in my VL7.0 32bit (vm) and it working fine...I have wxPython-2.8.12.0-i586-2vl70.txz installed.
Logged
MarkGrieveson
Vectorian
****
Posts: 531


« Reply #9 on: June 07, 2013, 02:57:58 pm »

I install phatch-0.2.7 via gslapt in my VL7.0 32bit (vm) and it working fine...I have wxPython-2.8.12.0-i586-2vl70.txz installed.

I don't know where you found wxPython-2.8.12.0-i586-2vl70.txz, because I can only find wxPython 2.8.11.0-i586-3vl70 within Gslapt.  My sources are http://vectorlinux.osuosl.org/veclinux-7.0/packages/, http://vectorlinux.osuosl.org/veclinux-7.0/extra/, http://vectorlinux.osuosl.org/veclinux-7.0/patches/.  I'm using VL-7.0, and have no wish to use testing or unstable.
Logged

I am using VL7.0 standard with XFCE
hata_ph
Packager
Vectorian
****
Posts: 3258


-- Just being myself --


« Reply #10 on: June 07, 2013, 03:57:12 pm »

I install phatch-0.2.7 via gslapt in my VL7.0 32bit (vm) and it working fine...I have wxPython-2.8.12.0-i586-2vl70.txz installed.

I don't know where you found wxPython-2.8.12.0-i586-2vl70.txz, because I can only find wxPython 2.8.11.0-i586-3vl70 within Gslapt.  My sources are http://vectorlinux.osuosl.org/veclinux-7.0/packages/, http://vectorlinux.osuosl.org/veclinux-7.0/extra/, http://vectorlinux.osuosl.org/veclinux-7.0/patches/.  I'm using VL-7.0, and have no wish to use testing or unstable.

Ah...is was from the testing repo...actually you can enable testing repo just for this time and disable it after install wxPython...
Logged
MarkGrieveson
Vectorian
****
Posts: 531


« Reply #11 on: June 08, 2013, 05:49:27 pm »

Thanks hata_ph.  I did that and installed phatch.  It works now.  However, I can't figure out how to get it to date-stamp photos.

From the documentation, it states "If you want to time stamp your images, choose the Text action and fill in as text: <Pexif.DateTime>".  I tried this but it did not work.
« Last Edit: June 09, 2013, 09:48:40 am by MarkGrieveson » Logged

I am using VL7.0 standard with XFCE
hata_ph
Packager
Vectorian
****
Posts: 3258


-- Just being myself --


« Reply #12 on: June 08, 2013, 07:13:37 pm »

Thanks hata_ph.  I did that and installed phatch.  It works now.  However, I can't figure out how to get it to date-stamp photos, however.

From the documentation, it states "If you want to time stamp your images, choose the Text action and fill in as text: <Pexif.DateTime>".  I tried this but it did not work.

What I did is add a Text action, choose <year>-<##month>-<##day>_<##hour>-<##minute>-<##second> from the Text drop down list.
Logged
MarkGrieveson
Vectorian
****
Posts: 531


« Reply #13 on: June 09, 2013, 10:04:01 am »

Thanks hata_ph, I'll give that a try.  Also, in further reading, I think I've stumbled upon the source of my confusion, in that apparently this program does not work on individual photo files that are opened, but rather creates actions that are then applied to photo files. 

Quote
A common mistake is to think that Phatch opens images or photos directly. Phatch can save and open action lists, which will be applied to as many photos as you want.

It may take me awhile to get used to this.

Edited to Add:  Okay, I did manage to figure it out, and it works well.  So, thanks to both rbistolfi and hata_ph.
« Last Edit: June 09, 2013, 10:23:55 am by MarkGrieveson » Logged

I am using VL7.0 standard with XFCE
MarkGrieveson
Vectorian
****
Posts: 531


« Reply #14 on: July 12, 2013, 03:11:59 pm »

Okay, I've been using phatch to date photos, and it's been working.  But, I've been getting the current day's date rather than the date which the photo was taken.  Here's the text of the action I use:

Code:
Text:  <year>-<##month>-<##day>

The above text works, but it gives me the current date rather than the date which the photo was taken.  I tried the following to get it to give the date which the photo was taken, but it gave me an error:

Code:
<Exif_Photo_DateTimeOriginal.year>-<##Exif_Photo_DateTimeOriginal.month>-<##Exif_Photo_DateTimeOriginal.day>

The error I got was:

Code:
Text: The following name(s) are invalid: Exif_Photo_DateTimeOriginal

Use the Image Inspector to list all the variables.

Does anyone know how to get the original date on the photos with phatch?  And do you know what the "Image Inspector" is?

ETA:  Okay, I think I figured this out.  I discovered that the dates of the photos do not originate within the cell-phone camera that I have, but rather on my computer.  So, when I date photos with phatch, it will give a date other than the current date (IE, it will show photos as having been dated previous to the current date).  However, my cell phone doesn't seem to date things, so if it's a photo taken from this phone, even a year ago, if I simply were to upload it to my computer today then it would show the current date.  Also, I did figure out the Image Inspector.
« Last Edit: July 12, 2013, 03:32:56 pm by MarkGrieveson » Logged

I am using VL7.0 standard with XFCE
Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!