Re: adding text to JPEGs, in bulk



On Saturday 16 September 2006 00:29, Tim wrote:
On Sat, 2006-09-16 at 09:42 +0530, François Patte wrote:
All these answers about adding comment text to jpeg are interresting
but the result is "binary". I have been seeking for a while (and did
not find an answer) on how to annotate an image with a "grep readable"
annotation. If I use Gimp or ImageMagick, to write the comment "foo"
in an image, grep foo image.jpg returns "binary file image.jpg
matches".

Actually, this was the first sort of thing I did find in a Google search
(keywords: adding text to jpegs). I'm not looking at those results
now, but I think it was done by putting data into EXIF (or similar) data
fields in the JPEGs. For my own purposes (album cataloguing that didn't
depend on using particular software in the future), it's a neat idea,
but I've not followed up on it so far.

The other ones about modifying the images are what I want to do at the
moment. I had a brief play with "composite" from ImageMagick last
night, which was slow, and I hadn't yet figured out how to do a batch of
files (I'll work through that over the weekend).

It occurred to me that I'd like to add text rather than merge two images
together, so I could write "PROOF" as well as the image number (from the
file) onto the picture. That gives people an easy way to say they
wanted a copy of picture number 256.

I think I can work out how to handle a batch of files to add consistent
text, now. But I haven't worked out how I could extract "256" from a
filename like "img_0256.jpg", yet. The filenames are all the same
length, so there's got to be some tool that'll let me strip characters
7, 8 & 9 out of the name.

May I suggest 'man bash'?

--
(Currently running FC4, occasionally trying FC5.)

Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.

--
Cheers, Gene
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Yahoo.com and AOL/TW attorneys please note, additions to the above
message by Gene Heskett are:
Copyright 2006 by Maurice Eugene Heskett, all rights reserved.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: inserting multiple pictures and description
    ... the height of the first row to the height that you want the picture. ... {MERGEFIELD filename} ... your report. ... Dim szPicPath As String, lRowCounter As Long ...
    (microsoft.public.word.vba.customization)
  • Re: Front page problems - help please
    ... HighStreetGrayCrag you'll see some photos. ... I set up thumbnails, with the main picture ... > When the web server tries to find the file referred to in the html page it ... > that of the actual filename. ...
    (uk.rec.walking)
  • Re: How to add new property to Image control??
    ... Without actually writing the code for saving a picture ... Assigning an empty filename could unload any loaded ... Conventions are useful. ...
    (alt.comp.lang.borland-delphi)
  • Re: Front page problems - help please
    ... However, when I click on the thumbnails some correctly show the main picture, and some just give "The page cannot be displayed" error message. ... However many web servers run Linux or other UNIX based operating system and they are case sensitive. ... When the web server tries to find the file referred to in the html page it will fail if the case on the filename in the html does not exactly match that of the actual filename. ...
    (uk.rec.walking)
  • Re: Modifying environment from VBScript
    ... My VBScript produces output which redirected into a file results in a batch ... I pass a filename as %1 when I run the batch file. ... not available after the script completed. ... persistent environmental variables can be ...
    (microsoft.public.scripting.wsh)

Loading