Metadata template?

We can manually edit metadata for individual images but is there a way to setup defaults or create a template that will add specific EXIF or IPTC info automatically? I haven’t found anything, nor does RawPedia indicate it for RT (progenitor-wise), just curious. No biggie if not.

Thanks.

You should be able to save a partial profile as usual – did you try that?

Yes, that works if done manually. I was just curious if there was a way to automatically apply only specific metadata without any further interaction. I actually don’t have a use case right now, but I thought maybe I was missing something.

A minor interesting point (to me, at least) which has nothing to do with ART led to my question. I have a generic copyright string in my camera, but when viewed in an image it includes a copyright symbol (©) which isn’t visibly there in my camera. I get this from exiv2 on a Windows command line:

C:\Users\len\Downloads\tmp2>exiv2 -K Exif.Image.Copyright IMG_4442.CR3
Exif.Image.Copyright   Ascii    46  Copyright © Len Philpot, All Rights Reserved

What the terminal displayed as the two line-drawing characters after “Copyright” may well be the (two-byte?) © symbol. I didn’t enter it. so the camera must’ve added it. At any rate I’m glad it’s there.

But once again, that’s neither here nor there ART-wise. It just got me thinking about ART and custom metadata.

Thanks.

You could use the easy/portable way and express copyright as 7-bit ascii (c).

Yeah, I’ve done that in the past but the (very) former graphic designer in me wants the “proper” symbol. LOL :grin:

Thanks

Being a native English speaker (Scottish), I don’t understand code pages and all the other trickery involved outside of 7-bit ASCII. Your “graphic designer” sensibly wants ©, which I think is 0xc2a9. However, your user interface (or terminal) might display it otherwise.

552 rmills@rmillsm1:~/temp $ echo -n © | dmpf hex=1 -
       0        0: ..                                ->  c2 a9
553 rmills@rmillsm1:~/temp $ 

Exiv2 handles it, although I can’t remember how it works!

541 rmills@rmillsm1:~/temp $ curl -O https://clanmills.com/Stonehenge.jpg
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 6599k  100 6599k    0     0  2562k      0  0:00:02  0:00:02 --:--:-- 2567k
542 rmills@rmillsm1:~/temp $ exiv2 -pa -g user/i Stonehenge.jpg 
Exif.Photo.UserComment                       Undefined  20  charset=Ascii Classic View
543 rmills@rmillsm1:~/temp $ exiv2 -M'set Exif.Photo.UserComment copyright - © - you know' ./Stonehenge.jpg 
544 rmills@rmillsm1:~/temp $ exiv2 -pa -g user/i Stonehenge.jpg 
Exif.Photo.UserComment                       Undefined  33  copyright - © - you know
545 rmills@rmillsm1:~/temp $ tvisitor -pRU Stonehenge.jpg | grep -i user
         428 | 0x9286 Exif.Photo.UserComment           | UNDEFINED |       33 |      3972 | ________copyright - .. - you know
547 rmills@rmillsm1:~/temp $ 

Confused? So am I.

In my book, I have a metadata debugging tool (tvisitor). If you post a file using Canon’s “Copyright” symbol, I can investigate what’s in your file.

At one point long, long ago I read parts of Petzold and thought I understood multibyte characters (Unicode, double wide, etc.). But I quickly learned I didn’t and that was long, long ago. :slight_smile: The Windows Alt+code is 0169 but that’s almost certainly neither here nor there in this context.

At any rate here’s a JPG with the notice:

FWIW, here’s what both exiv2 and exiftool had to say about the copyright notice in the raw file, processed tif and saved jpg:

exiv2 -K Exif.Image.Copyright IMG_4442.CR3
Exif.Image.Copyright                         Ascii      46  Copyright © Len Philpot, All Rights Reserved

exiv2 -K Exif.Image.Copyright IMG_4442.tif
Exif.Image.Copyright                         Ascii      45  Copyright© Len Philpot, All Rights Reserved

exiv2 -K Exif.Image.Copyright IMG_4442.jpg
Exif.Image.Copyright                         Ascii      45  Copyright© Len Philpot, All Rights Reserved


exiftool -Copyright IMG_4442.CR3
Copyright                       : Copyright © Len Philpot, All Rights Reserved

exiftool -Copyright IMG_4442.tif
Copyright                       : Copyright© Len Philpot, All Rights Reserved

exiftool -Copyright IMG_4442.jpg
Copyright                       : Copyright© Len Philpot, All Rights Reserved

So at least it’s consistent…

But again to be clear - This isn’t keeping me awake at night – It was just a curiosity. I assume (?) the camera is inserting the symbol but simply not displaying it. I can think of no other explanation.

It’s not keeping me awake either, @lphilpot. I’m also curious.

I looked at your photos on Flickr. Very nice. I am proud to be a US Citizen and visited all 50 States. My guess is you’re in Louisiana or the Carolinas.

Here’s what I see on macOS/Terminal (xterm256).

571 rmills@rmillsm1:~/temp $ exiv2 -g Copyright/i ~/Desktop/16d9c916d7783900ca9eee098700af7bfb20c03e_2_690x460.jpeg 
Exif.Image.Copyright                         Ascii      45  Copyright© Len Philpot, All Rights Reserved
Iptc.Application2.Copyright                  String     44  Copyright© Len Philpot, All Rights Reserved
572 rmills@rmillsm1:~/temp $ 

Your copyright tag is stored as follows:

567 rmills@rmillsm1:~/temp $ tvisitor -pRU ~/Desktop/16d9c916d7783900ca9eee098700af7bfb20c03e_2_690x460.jpeg | grep -e STR -e Copy
STRUCTURE OF JPEG FILE (II): /Users/rmills/Desktop/16d9c916d7783900ca9eee098700af7bfb20c03e_2_690x460.jpeg
  STRUCTURE OF 8BIM FILE (MM): /Users/rmills/Desktop/16d9c916d7783900ca9eee098700af7bfb20c03e_2_690x460.jpeg:38->118
    STRUCTURE OF IPTC FILE (MM): /Users/rmills/Desktop/16d9c916d7783900ca9eee098700af7bfb20c03e_2_690x460.jpeg:38->118:12->80
             2 |     116 | Iptc.Application.0x74          |     44 | Copyright.. Len Philpot, All Rights Reserved
  STRUCTURE OF TIFF FILE (MM): /Users/rmills/Desktop/16d9c916d7783900ca9eee098700af7bfb20c03e_2_690x460.jpeg:168->516
       118 | 0x8298 Exif.Image.0x8298                |     ASCII |       45 |       226 | Copyright© Len Philpot, All Rights  +++
    STRUCTURE OF TIFF FILE (MM): /Users/rmills/Desktop/16d9c916d7783900ca9eee098700af7bfb20c03e_2_690x460.jpeg:168->516

For this, I deduce:

568 rmills@rmillsm1:~/temp $ dmpf count=45 skip=$((168+226)) ~/Desktop/16d9c916d7783900ca9eee098700af7bfb20c03e_2_690x460.jpeg 
 0x18a 394: Copyright.. Len Philpot, All Rig  ->  43 6f 70 79 72 69 67 68 74 c2 a9 20 4c 65 6e 20 50 68 69 6c 70 6f 74 2c 20 41 6c 6c 20 52 69 67
 0x1aa 426: hts Reserved_                     ->  68 74 73 20 52 65 73 65 72 76 65 64 00

Decoding the bytes (manually), I see:

568 rmills@rmillsm1:~/temp $ dmpf count=45 skip=$((168+226)) ~/Desktop/16d9c916d7783900ca9eee098700af7bfb20c03e_2_690x460.jpeg 
 0x18a 394: Copyright.. Len Philpot, All Rig  ->  43 6f 70 79 72 69 67 68 74 c2 a9 20 4c 65 6e 20 50 68 69 6c 70 6f 74 2c 20 41 6c 6c 20 52 69 67
                                                   C  o  p  y  r  i  g  h  t <-©-> sp  L  e  n .....
 0x1aa 426: hts Reserved_                     ->  68 74 73 20 52 65 73 65 72 76 65 64 00
                                                      t  s sp  R  e  s  e  r  v  e  d nul

So, your Windows console displays ┬⌐ for the bytes 0xc2 0xa9. How can you change that? I’d use a Cygwin terminal! You could output to file and display in a suitable editor.

exiftool -Copyright IMG_4442.tif > foo.txt
textedit foo.txt

I see that exiftool and exiv2 agree that .CR3 has Copyright_©, yet .tif and .jpg have no blank after Copyright. That has to involve the convertor for CR3 to tif/jpeg (on the camera or desktop).

I doubt if you have the desire to discuss this further. However, we can if you wish. Or we can say: Thanks for the chat… planet Unicode is mysterious!

Thanks, I’m in Louisiana. Land of Rain and Clouds (until this morning, that is). :slight_smile:

It is indeed! I’m satisfied for now. :slight_smile: Actually I started to fire up a Linux VM (or WSL) and see how it looked there, but never got around to it. I have a bash Windows executable somewhere, maybe I’ll find that…

Thanks.

Good stuff. Until we meet again. We only spent a couple of days in LA. Two nights in New Orleans and drove the coast to Biloxi.

Linux VM or WSL sound good. bash might not help as it’s the console/terminal UI that’s leading you astray.