[QUOTE] You solved my case Buffer Overflow and i made few alternatives using your idea.
Code:
for i in *.[Jj][Pp][Gg]; do convert "$i" -background black -fill white -pointsize 30 label:"${i%.*}" -gravity South -append $HOME/tmp/"$i"; done
this command
adds filename over the image as text
in the bottom center
background black
and text is white
the result is all copied in a tmp folder in the home folder
Code:
for i in *.[Jj][Pp][Gg]; do convert "$i" -background none -fill white -pointsize 30 label:"${i%.*}" -gravity South -composite -append $HOME/tmp/"$i"; done
this command
background transparent
and text is white
rest all same
Code:
for i in *.[Jj][Pp][Gg]; do convert "$i" -background none -fill white -font DejaVu-Sans-Bold -pointsize 30 -strokewidth 1 -stroke black label:"${i%.*}" -gravity East -composite -append $HOME/tmp/"$i"; done
this command
bottom right
background transparent
and text is white
font is dejavusans bold
with black outline
rest all same
thats all
thanks again everyone..
you need not read further i am just describing why i needed this idea.
Infrared Motion detection guide.
the purpose of my question was a project i am trying.
i needed to install a motion detection infrared camera (something like paranormal activity)(i am serious)
i needed
an infrared camera . ( i am going to convert a cheap webcam to infrared) (not done yet)
a motion detection software. ( linux has a software called motion)
it clicks pictures continuously the moment it sees a movement. in the end i get a large number of jpeg images .
a 30 sec movement caused approximately 800 images to be captured by motion software. each jpeg image had the date and time signature as the filename.
motion is working well as expected in my laptop .
next
i have to stitch all the images into a single video and see the result as a continuous video.
this is also successful by using a terminal command
so my whole project is successful as long as im trying it during the day time using a normal webcam.
technically my project is complete for a day camera job.
one question came into my mind.
consider i kept the camera on for 8 hours. and the images got captured whenever there was movement.
i might end up with several thousands of images.
i would even combine the entire images into video.
now while seeing the video
how can one find out at what time did a given movement happened.
for example consider a bird came and sat on the table at 1.30 pm.
definetly the motion will be captured. and i would be able to make the video later.
but how can i find out at what time the bird come on the table.
one difficult way is to see every image in the entire batch of thousands of images and see when the picture of bird was captured. the filename will give the answer for my time.
another idea i thought was to keep a digital table clock in front of the camera view somewhere in the room.
but that was silly. idea.
because everytime the time would change the software would detect motion and would capture unnecessary images. in the end it may capture the entire 8 hours length of images.
no use.
finally i thought . there should be a software technique to imprint the filename onto the image as text somewhere in the bottom. because the filename has the time signature already.
so when i run the video later i ll get to see the time signature also . that will help me to know what time the event occured.
this is exactly what you solved. thanks ..again Buffer Overflow.
so now not only this is a solution to my question . this is also a guide to make a motion detection video.