zB bei den Exif-Infos von Digikam oder bei http://cvs.sourceforge.net/viewcvs.py/gtkmmviewer/gimageview/libexif/Attic/e... findet man ähnliches: When there is a clear distinction between the photographer and editor copyrights, these are to be written in the order of photographer followed by editor copyright, separated by NULL (in this case, since the statement also ends with a NULL, there are two NULL codes) (see example 1). Leider finde ich nirgends die Beispiele. Was bedeutet "eparated by NULL"? Ich habe experimentiert und schaffe immer nur "photographer" zu definieren, aber nie "editor" Der foglende Text hilft auch nicht viel: When only the photographer is given, it is terminated by one NULL code (see example 2). When only the editor copyright is given, the photographer copyright part consists of one space followed by a terminating NULL code, then the editor copyright is given (see example 3). When the field is left blank, it is treated as unknown. Al
Ähm, ich bin nicht ganz sicher... aber hast du es mal mit "\0" probiert? Al Bogner wrote:
zB bei den Exif-Infos von Digikam oder bei http://cvs.sourceforge.net/viewcvs.py/gtkmmviewer/gimageview/libexif/Attic/e... findet man ähnliches:
When there is a clear distinction between the photographer and editor copyrights, these are to be written in the order of photographer followed by editor copyright, separated by NULL (in this case, since the statement also ends with a NULL, there are two NULL codes) (see example 1).
Leider finde ich nirgends die Beispiele. Was bedeutet "eparated by NULL"? Ich habe experimentiert und schaffe immer nur "photographer" zu definieren, aber nie "editor"
Der foglende Text hilft auch nicht viel:
When only the photographer is given, it is terminated by one NULL code (see example 2). When only the editor copyright is given, the photographer copyright part consists of one space followed by a terminating NULL code, then the editor copyright is given (see example 3). When the field is left blank, it is treated as unknown.
Al
Am Freitag, 15. Oktober 2004 23:56 schrieb Patrick Nagel:
Ähm, ich bin nicht ganz sicher... aber hast du es mal mit "\0" probiert?
--set-value="$COPYRIGHTSTATEMENT""\0" --set-value="$COPYRIGHTSTATEMENT""\0""Test" Klappt auch nicht. Es bleibt der Platzhalter "[None] (Editor)" für den 2. Teil und an den 1. Teil wird \0 bzw. \OTest hinzugefügt. Al
Am Freitag, 15. Oktober 2004 23:25 schrieb Al Bogner:
zB bei den Exif-Infos von Digikam oder bei http://cvs.sourceforge.net/viewcvs.py/gtkmmviewer/gimageview/libe xif/Attic/exif-tag.c?rev=1.3 findet man ähnliches:
When there is a clear distinction between the photographer and editor copyrights, these are to be written in the order of photographer followed by editor copyright, separated by NULL (in this case, since the statement also ends with a NULL, there are two NULL codes) (see example 1).
Leider finde ich nirgends die Beispiele. Was bedeutet "eparated by NULL"? Ich habe experimentiert und schaffe immer nur "photographer" zu definieren, aber nie "editor"
Der foglende Text hilft auch nicht viel:
When only the photographer is given, it is terminated by one NULL code (see example 2). When only the editor copyright is given, the photographer copyright part consists of one space followed by a terminating NULL code, then the editor copyright is given (see example 3). When the field is left blank, it is treated as unknown.
Ich lasse mal ausnahmsweise Fullquote. Per PM wurde ich auf das Ende von o.a URL hingewiesen. {EXIF_TAG_SCENE_TYPE, "SceneType", N_("Scene Type"), N_("Indicates the type of scene. If a DSC recorded the image, " "this tag value must always be set to 1, indicating that the " "image was directly photographed.")}, {0, NULL, NULL, NULL} Auch das macht mich nicht schlauer: The unused portion of the area is padded " "with NULL (\"00.h\"). exif --ifd=0 --tag=0x8298 --set-value="$COPYRIGHTSTATEMENT" "$TEMPNEWNAME" schreibt wie gewünscht in das erste Feld etwas, aber anstatt [None] habe ich noch nichts geschafft und völlig leer auch nicht. Ich erwähne die diversen Kombinationen nicht, die ich nach --set-value="$COPYRIGHTSTATEMENT" probiert habe. Beispiel mit leerem 2. Teil: Copyright (C) 2004 by Al Bogner (Photographer) - [None] (Editor) Al
Hallo, Am Fri, 15 Oct 2004, Al Bogner schrieb:
zB bei den Exif-Infos von Digikam oder bei http://cvs.sourceforge.net/viewcvs.py/gtkmmviewer/gimageview/libexif/Attic/e... findet man ähnliches:
When there is a clear distinction between the photographer and editor copyrights, these are to be written in the order of photographer followed by editor copyright, separated by NULL (in this case, since the statement also ends with a NULL, there are two NULL codes) (see example 1).
Leider finde ich nirgends die Beispiele. Was bedeutet "eparated by NULL"? Ich habe experimentiert und schaffe immer nur "photographer" zu definieren, aber nie "editor"
Der foglende Text hilft auch nicht viel:
When only the photographer is given, it is terminated by one NULL code (see example 2). When only the editor copyright is given, the photographer copyright part consists of one space followed by a terminating NULL code, then the editor copyright is given (see example 3). When the field is left blank, it is treated as unknown.
Mit NULL ist ASCII-NUL '0x00', '\0' gemeint. Nur Photographer: "foo bar\0" Nur Editor: " \0foo bar\0" Beide: "foo bar\0bar baz\0" Das bekommst du z.B. mittels echo -e '\0'. Wenn du das in einem script häufiger brauchst ohne den gesamten String mit 'echo -e' ausgeben zu wollten kannst du folgendes machen: NUL="`echo -e '\0'`" ... exif .... "${PHOTOGRAPHER}${NUL}${EDITOR}${NUL}" Allerdings solltest du drauf achten, PHOTOGRAPHER nicht leer ist: PHOTOGRAPHER=$1 : "${PHOTOGRAPHER:= }" oder PHOTOGRAPHER="${1:= }" je nachdem, wie du PHOTOGRAPHER belegst ;) -dnh -- <logic mode="patent office"> Die Patente sind doch nicht trivial! Bei keinem dieser Patente wurde bei der Recherche ein früheres Patent mit etwas ähnlichem gefunden, also kann es nicht trivial sein und neu sein muss es auch. </logic> -- C. Faerber
Am Samstag, 16. Oktober 2004 01:22 schrieb David Haller:
Mit NULL ist ASCII-NUL '0x00', '\0' gemeint.
Nur Photographer: "foo bar\0" Nur Editor: " \0foo bar\0" Beide: "foo bar\0bar baz\0"
Das bekommst du z.B. mittels echo -e '\0'. Wenn du das in einem script häufiger brauchst ohne den gesamten String mit 'echo -e' ausgeben zu wollten kannst du folgendes machen:
NUL="`echo -e '\0'`"
...
exif .... "${PHOTOGRAPHER}${NUL}${EDITOR}${NUL}"
Allerdings solltest du drauf achten, PHOTOGRAPHER nicht leer ist:
PHOTOGRAPHER=$1
: "${PHOTOGRAPHER:= }"
oder
PHOTOGRAPHER="${1:= }"
je nachdem, wie du PHOTOGRAPHER belegst ;)
Ich will keinen Editor, nach "Photographer)" soll also _nichts_ stehen. Ich zitiere mal den Scriptteil: if [ -z "$EXIFCOPYRIGHT" -o "$EXIFCOPYRIGHT" = \ "(C)CaplioR1User(Photographer)-[None](Editor)" ]; then NUL="`echo -e '\0'`" COPYRIGHTSTATEMENT="(C) "`echo "$EXIFDAY" | cut -c1-4`" by \ ""$COPYRIGHTOWNER" "$MYEXIF" --ifd=0 --tag=0x8298 \ --set-value="${COPYRIGHTSTATEMENT}${NUL}" "$TEMPNEWNAME" \ 2>&1>/dev/null mv "$TEMPNEWNAMEEXIFMODIFIED" "$TEMPNEWNAME" 2>/dev/null fi Obiges ergibt mit exif -m Copyright (C) 2004 by Al Bogner (Photographer) - [None] (Editor) und ich möchte: Copyright (C) 2004 by Al Bogner (Photographer) Schafft übrigens wer in "0x9286 User Comment" etwas reinzuschreiben? Mit exif von SuSE 9.1 gab es "not implemented", mit exif-0.6.9 wird nichts reingeschrieben, Fehlermeldung gibt es aber auch keine. Al Al
Hallo, Am Sat, 16 Oct 2004, Al Bogner schrieb:
Am Samstag, 16. Oktober 2004 01:22 schrieb David Haller: [..]
exif .... "${PHOTOGRAPHER}${NUL}${EDITOR}${NUL}"
Ich will keinen Editor, nach "Photographer)" soll also _nichts_ stehen.
Probiere mal: exif .... "${PHOTOGRAPHER}${NUL} ${NUL}" -dnh --
Nimm Alzheimer. >Warum? Welche Vorteile gibt's denn da? 1.) Du kannst Dir die Ostereier selber verstecken. 2.) Du Lernst jeden Tag neue Leute kennen. 3.) ...und Du kannst Dir die Ostereier selber verstecken. [Herbert Steinboeck und Florian Gross in suse-talk]
Am Samstag, 16. Oktober 2004 20:03 schrieb David Haller:
Hallo,
Am Sat, 16 Oct 2004, Al Bogner schrieb:
Am Samstag, 16. Oktober 2004 01:22 schrieb David Haller:
[..]
exif .... "${PHOTOGRAPHER}${NUL}${EDITOR}${NUL}"
Ich will keinen Editor, nach "Photographer)" soll also _nichts_ stehen.
Probiere mal: exif .... "${PHOTOGRAPHER}${NUL} ${NUL}"
- [None] (Editor) bleibt. Auch wenn ich das Leerzeichen zwischen "NUL" entferne, ändert sich nichts. Al
participants (3)
-
Al Bogner
-
David Haller
-
Patrick Nagel