how put a copyright notice in a border for uploading images

Discussion in '35mm Cameras' started by H. S., Sep 27, 2003.

  1. H. S.

    H. S. Guest


    I was wondering, could anyone help with pointers or suggestions on how
    to put a border around my digital photos and a copyright notice within
    that border (say on the lower left corner) using a script?

    I want to do this before I put up my photos online. I have seen many
    photos online that people have put up that have this information on
    them. I do not use Windows and do not use Photoshop. I work in Linux,
    and have ImageMagic and gimp and related stuff, in case this helps in
    your suggestions.

    Thanks a ton,
    H. S., Sep 27, 2003
    1. Advertisements

  2. H. S.

    Guest Guest

    Have you got ImageMagick? The mogrify programme?

    For example, with a png called my.png:

    mogrify -border 15x15 -draw 'text 5,10 "Made by Me"' my.png

    puts a border around the image and the text in the upper left

    mogrify -border 15x15 -gravity SouthWest -draw 'text 3,15 "Made by Me"' my.png

    puts it in the lower left.

    If you have ImageMagick, try "man ImageMagick" - the man pages
    are not too complete (nor is the documentation you may find in
    other directories) so ... play around with setting fonts, colours
    for the border, font size, etc.

    So ... a script which loops over your images and uses mogrify should do it.
    Guest, Sep 27, 2003
    1. Advertisements

  3. H. S.

    Peter Chant Guest

    Hmm, an echo.


    You got in first and appear to be much more familiar with the intricacys.
    Peter Chant, Sep 27, 2003
  4. H. S.

    H. S. Guest

    This worked like a charm. And since this can be done with a shell
    script, number of images ceases to be a problem :)

    But I am not sure how to get the actuall copyright symbol (c). Any

    Thanks a ton,
    H. S., Sep 27, 2003
  5. H. S.

    Zol. Guest

    Not sure whether you can use keyboard shortcuts in Linux or cmd line - but
    with windows it can accessed by holding ALT and entering "0169" on the
    numeric keypad © (on a UK keyboard)
    ALT and ­"0174" gives ®
    ALT and " 0153" gives T

    Don`t know if that`s a help but there`s probably a shortcut or character
    mapping somewhere ... Zol.

    p.s. if using a different language character set then these may have
    different codes and may not display properley (Z)
    Zol., Sep 28, 2003
  6. H. S.

    Guest Guest

    Hmmm ... I managed to do it.

    First, to get the copyright symbol in a text file -
    I used open office, used the option to insert the symbol
    and saved the file as TEXT (say, my.txt).

    All it has is the copyright symbol (I will indicate that here
    with a (C)).

    Then I put some text in front of and behind that symbol so
    my.txt became:

    text 3,15 "This file is (C) by me."

    (heck, I did not change the font I was using to display this,
    so it did not show up).

    Note that his is just the "draw" command stuff (be sure the
    text you want is inside quotation marks) and then used:

    mogrify -border 15x15 -gravity SouthWest -draw @my.txt A.png

    That did it. Using @my.txt takes that as the file for the
    "draw" option and I had managed to get the (C) symbol in it
    and the default font that mogrify uses supports the symbol.

    Trying to copy the symbol to a command line (instead of using
    a file) failed (try copying, say, a CTRL-D to the command line,
    and you get ^D, a CARET followed by a D, not the actual

    So ... a file (you can use OpenOffice to insert the copyright

    text 3,15 "This file is (C) by me."

    call the file my.txt, and use it as the option in the
    mogrify draw:

    mogrify -border 15x15 -gravity SouthWest -draw @my.txt A.png
    Guest, Sep 28, 2003
  7. H. S.

    H. S. Guest

    Yup. Did that.
    Yes, did this too.

    Yup. I did that too. I did get the (c) symbol by following your method
    exactly, but I also get an "A" with a caret just before the (c) symbol
    in my image. The text file shows (c) okay. Moreover, I can even open
    that text file in emacs and it shows (c) perfectly. If I copy that
    symbol to the command line I get the symbol there too. It is only in the
    image that I get the character A with a caret.

    So now the only problem left is to get rid of that "A" with a caret.

    Thanks a ton for your suggestion,
    most of the work seems to done :)

    H. S., Sep 28, 2003
  8. H. S.

    Dave Kelly Guest

    I have not tried this for the copyright symbol, but its worth a try.
    I used it for some other fonts I needed.

    Follow this path.
    KDE (K+gear) > application > text tools > gnome charector map
    Dave Kelly, Sep 28, 2003
  9. H. S.

    Guest Guest

    [sigh] ... what version of RH? What shell? What locale setting?
    What font? It is set to UTF8?

    RH 7.2, using ISO Latin-1 font, using the tcshell

    Looking at the result of saving the copyright symbol to a text file,
    I see one character in it, A9_hex (chr$(169)) (which is the copyright
    symbol in the ISO Latin-1 character set) (I looked at it in a binary/hex
    editor). I cannot paste that to the command line. I can get it
    with tcshell's echo:

    echo "\0251"

    or the external

    /bin/echo -e "\251"

    It is difficult (in the tcshell) to get past quoting problems,
    but in RH 7.2 (default settings, tcshell) (not UTF8 which
    is what I believe RH9 defaults to):

    set x="This file is `echo '\0251'` by me."

    (octal 251 is the copyright character, and, of course,
    this is different in the bash shell which has its
    own echo command and one could use the external
    echo command with

    /bin/echo -e '\251'

    and setting a variable differs between the tcshell
    and the bash shell and ...)

    Anyway, I can use the tcshell in RH7.2 to set the
    x variable.

    This sets the x variable with the copyright symbol.


    mogrify -border 15x15 -gravity SouthWest -draw "text 3,15 '$x'" A.png

    If you can paste it to the command line, try using it on the
    command line instead of in a separate file.
    mogrify can add the border and the text. It is just a matter
    of getting it to work.

    and thanks for the thanks ...
    Guest, Sep 28, 2003
  10. Recent versions of StarOffice/OpenOffice use Unicode character encoding.
    The  is in the textfile too but your console and Emacs understand UTF-8
    and show you the correctly encoded '©'. It seems mogrify doesn't know
    Unicode. So either save your text file from SO/OO with iso-8859-1
    encoding or recode your existing text file with

    recode utf8..latin1 my.txt

    Marc 'BlackJack' Rintsch
    Marc 'BlackJack' Rintsch, Sep 28, 2003
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.