<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Well, as your code does, convert can
      add the arbitrary text as a comment in the file (or in a copy of
      it to keep things clean). Then, exiftool -comment file.jpg will
      extract it for use in the script.  That's a start, but I still
      don't know how to print them together (and I have the path
      directly when i access the file from a script.)<br>
      <br>
      display (from imagemagick) shows 14 characters of the "comment"
      field in the lower right corner of the image, but that's not very
      helpful.<br>
      <br>
      Another step closer:<br>
      composite <title-file.png> <base-file.jpg>
      <new-file.jpg><br>
      puts the title file into the new image in the upper left corner. 
      Now, I just have to convert the path into an image.<br>
      <br>
      Another way that works better is:<br>
      convert -pointsize 20 -fill black -draw 'text 10,20 "TEST LABEL" '
      test.jpg test2.jpg<br>
      but it puts the image in the picture instead of outside it
      somewhere and it depends on the background contrasting with
      whatever color the text is.  It will also take some advanced
      fiddling to get the file name inside all those quotes in bash.<br>
      <br>
      (found this one at
      <a class="moz-txt-link-freetext" href="http://www.instructables.com/id/Add-text-to-images-with-Linux-convert-command/step2/Adding-a-caption/">http://www.instructables.com/id/Add-text-to-images-with-Linux-convert-command/step2/Adding-a-caption/</a> 
      )<br>
      <br>
      Putting this all together (but I'm not yet motivated enough to
      code it), I could create an empty image with an opaque background
      like white and use the convert to put the text somewhere near an
      edge.  Then, use another convert to shrink the original picture so
      it will fit in the "frame" of the first and then use composite to
      put it there.<br>
      <br>
      This is more than a bit convoluted and would probably involve some
      hard coding.  Hopefully, there's an easier way.<br>
      <br>
      Joe<br>
      <br>
      On 12/12/2012 02:06 PM, Risto H. Kurppa wrote:<br>
    </div>
    <blockquote
cite="mid:CAHpgcSyRAAv9Fhsu9Gj7Od=+NKB0hmQf2uzz-beU8W6ncgt0Wg@mail.gmail.com"
      type="cite">Hi Joe!<br>
      <br>
      Interesting idea!<br>
      <br>
      I think using something like <a moz-do-not-send="true"
        href="http://gitorious.org/rhk/scripts/blobs/master/nef_julkaisija.sh">http://gitorious.org/rhk/scripts/blobs/master/nef_julkaisija.sh</a> but
      coupling it with KPA's 'open with external app' could be used at
      least to generate the initial images with texts on them. Then some
      command line magic needs to be added for the printing (see for
      example <a moz-do-not-send="true"
        href="http://forums.anandtech.com/showthread.php?t=739845">http://forums.anandtech.com/showthread.php?t=739845</a> )<br>
      <br>
      Risto
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Wed, Dec 12, 2012 at 8:49 PM, Joe <span
            dir="ltr"><<a moz-do-not-send="true"
              href="mailto:josephj@main.nc.us" target="_blank">josephj@main.nc.us</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <br>
            I have a lot of scanned images and images/photos I'm working
            on with<br>
            multiple versions.  When I print them (using various
            programs), all I<br>
            get is the image and, often, it's difficult to tell which
            image came<br>
            from which file.  This is particularly frustrating with my
            (27K) photos<br>
            when I have a print and want another copy and can't find it.
             (The<br>
            photos are in KPhotoAlbum, so I can find the small minority
            :( that I<br>
            have actually tagged correctly.)  I could also add the scans
            to KPhotoAlbum.<br>
            <br>
            What I would like is  a utility that would print a bunch of
            images (e.g.<br>
            doit *.jpg) and include an automatic (program generated)
            caption<br>
            (hopefully configurable) with something like the full path
            of the file<br>
            in it.<br>
            <br>
            I need this while projects are in progress and for cleaning
            up<br>
            afterwards.  This is not for "final" images.<br>
            <br>
            It would be cool (and economical) if I could also specify
            the print size<br>
            of the image because, often, smaller "thumbnail" images (but
            not<br>
            necessarily the thumbnails that are already generated by
            KPhotoAlbum)<br>
            may be enough for organizing/cleaning up and they would save
            a bunch of<br>
            time, paper, and ink/toner.<br>
            <br>
            Is there anything in KPhotoAlbum or that can be used with it
            to<br>
            accomplish this?<br>
            <br>
            TIA<br>
            <span class="HOEnZb"><font color="#888888">    Joe<br>
                _______________________________________________<br>
                KPhotoAlbum mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:KPhotoAlbum@mail.kdab.com">KPhotoAlbum@mail.kdab.com</a><br>
                <a moz-do-not-send="true"
                  href="https://mail.kdab.com/mailman/listinfo/kphotoalbum"
                  target="_blank">https://mail.kdab.com/mailman/listinfo/kphotoalbum</a><br>
              </font></span></blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        | risto h. kurppa<br>
        | risto at kurppa dot fi<br>
        | <a moz-do-not-send="true" href="http://risto.kurppa.fi">http://risto.kurppa.fi</a><br>
      </div>
    </blockquote>
    <br>
  </body>
</html>