I would like to write a scipt that gets gps informatoin from a jpg and print 's it on the lower left corner, In order to get the gps data I have found a tool called jhead. In know that with the help of the imagemagick command convert it is possible to print text on the pictures.
Here is the Jhead output. but I only need th gps part.
From that command I only need the following to be printed on the bottom left corner of the pictures. ---------- Post updated at 05:56 PM ---------- Previous update was at 05:54 PM ----------
Thx for your reply,
I have tested with the following error.
when I execute the imagemagick command
The file is generated but the wrong information is printed on it.
Looks like there were a couple of slight issues with the solution posted:
length is an awk function and should be used as a variable name
image magic draw function requires text x,y 'string'
Adjusted script to correct these issues:
Other things to consider: the black stroke around the text looks really poor with my testing images and you may want to try without the stroke like (remove line is green above). I always like using a gamma adjust in a rectangle where the text is to go (say 0.2 gamma with white text), this tends to help the text stand out from the background.
You would need to play around with imagemagic to measure the size of the text and darken a rectangle where it is to go.
---------- Post updated at 03:35 PM ---------- Previous update was at 01:24 PM ----------
I've had a go at creating a dark plaque sized from the GPS text. This should get you going, but it could be tweaked more.
Your GPS text may always be a consistent width and you could just use a standard image for the plaque (just get rid of the maxwidth function and the convert command that created the black plauque.jpg images:
Here is a pretty light image (mainly white where the text is to appear) and I think it is still quite readable at 60%:
These 2 Users Gave Thanks to Chubler_XL For This Post:
I need a hint about gvfsd-metadata using mate on bsd. Or dual-core cpu, quad-core cpu ore an old laptop single core, the gvfsd is an obstacle and does not accelerate anything, vice versa, it slows down many processes, coming from gnome. So someone can give me a hint how to wipe it out for good? I... (1 Reply)
Hi guys,
I would like to ask your opinion about my theory, how to fix my broken LVM without risking any data loss.
I use Archlinux at home. I just love this distro, even it gives me a lots of work (particularly after system updates).
Basic system spec:
AMD FX(tm)-6100 Six-Core Processor... (1 Reply)
Hi, Dear all:
One question ! ^_^
I'm using bash under Ubuntu 9.10.
My question is not to rename all ".JPG" files to ".jpg" in a single folder, but to rename all ".JPG" files to ".jpg" in all subfolders.
To rename all ".JPG" to ".jpg" in a single folder,
for x in *.JPG; do mv "$x"... (7 Replies)
Hi,
my application (actually library) indexes a file of many GB producing tables (arrays of offset and length of the data indexed) for later reuse. The tables produced are pretty big too, so big that I ran out of memory in my process (3GB limit), when indexing more than 8GB of file or so.... (9 Replies)
Is there any possible way to print the contents of a directory to a .jpg file? I have a list of thumbnails (e-books) which I want to share (+500) but I don't know how to make this.
I would appreciate a lot any comments regarding this issue. (4 Replies)