Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: how to edit with commandline the comment and tag property details of file in dolphin

  1. #1

    Default how to edit with commandline the comment and tag property details of file in dolphin

    using dolphin Version 19.08.2 and plasma 5.17.0
    rightclicking on a file and choosing >properties>details tab I have many informations on the file like here:
    https://susepaste.org/10649006
    how can I edit the comment and tag field using commandline?
    which kind of information ere these? are comment and tag field viewable only in dolphin? only in kde? only in linux? or everywhere in linux mac windows oses?
    manythanka :-)

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,255

    Default Re: how to edit with commandline the comment and tag property details of file in dolphin

    Sorry when I interpreted this wrong, but my idea of what you ask is: How do I edit the Comment field in a JPEG file.

    Look at the progam jhead. I do not know if it is installed by default. It is in the OSS repo, thus using YaST > Software Management or (as root):
    Code:
    zypper in jhead
    will install it. And then of course
    Code:
    man jhead
    Henk van Velden

  3. #3

    Default Re: how to edit with commandline the comment and tag property details of file in dolphin

    it seems some misunderstanding is present :-)
    first I modified the comment field with jhead in "comment jhead"
    Code:
    pla@pla4-TW:/dati/a-FOTO-x-amici/2017-08-12ago(pizzata a casa di cugina consuelo velletri)/orig> jhead -cl "comment  jhead" prova.jpeg 
    Modified: prova.jpeg
    pla@pla4-TW:/dati/a-FOTO-x-amici/2017-08-12ago(pizzata a casa di cugina consuelo velletri)/orig>
    and nothing was shown in dolphin>properties>details
    then I modified the comment using dolphin>properties>detail tab in "dolphin comment" but nothing appear on jhead
    Code:
    pla@pla4-TW:/dati/a-FOTO-x-amici/2017-08-12ago(pizzata a casa di cugina consuelo velletri)/orig> jhead prova.jpeg 
    File name    : prova.jpeg
    File size    : 542921 bytes
    File date    : 2019:10:21 14:13:36
    Camera make  : SAMSUNG
    Camera model : GT-I9195
    Date/Time    : 2017:08:12 18:08:05
    Resolution   : 3264 x 1836
    Orientation  : rotate 90
    Flash used   : No
    Focal length :  3.7mm
    Exposure time: 0.059 s  (1/17)
    Aperture     : f/2.6
    ISO equiv.   : 125
    Whitebalance : Auto
    Metering Mode: average
    Exposure     : aperture priority (semi-auto)
    GPS Latitude : ? ?
    GPS Longitude: ? ?
    JPEG Quality : 80
    Comment      : comment  jhead
    
    pla@pla4-TW:/dati/a-FOTO-x-amici/2017-08-12ago(pizzata a casa di cugina consuelo velletri)/orig>
    then I modified again the comment using jhead and the comment in dolphin>properties>details disappeared

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,255

    Default Re: how to edit with commandline the comment and tag property details of file in dolphin

    Well, the use of high level GUI tools hides a lot. The result can be a lot of misunderstanding by the tool users.

    All the items in that Dolphin property list below comment are typical JPEG items (either JPEG specific, or belonging to the EXIF).
    No we know there can be a "comment" item in the JPEG header (which you proved), but I have no idea if that is the same Comment show by Dolphin, or if Dolhin gets it from another place.

    So the ultimate question is if you want to change the comment in the JPEG header, or if you want to change the comment shown in Dolphin (which maybe the same, or derived from it originaly and stored elsewhere, or something completely different, who knows what GUI tools all do do to obfuscate reality).
    Henk van Velden

  5. #5
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,255

    Default Re: how to edit with commandline the comment and tag property details of file in dolphin

    I am a bit guessing here because I never looked into those details that Dolphin offers.

    Because I see that Comment item shown with all types of files (even plain text files), I get the idea it is something Dolphin stores somewhere. The same with the items Tags and Ratings. They are not things that are stored in a plain text file itself, thus they only exist in Dolphins own imaginary.
    I do not know whwre these is stored, nor if you can edit them easy from the command line.
    Henk van Velden

  6. #6
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,378
    Blog Entries
    2

    Default Re: how to edit with commandline the comment and tag property details of file in dolphin

    I would recommend first determining if the values you see are EXIF (I think likely)
    Install and run exiftools and point it to your file. You should then have your answer, if it displays the same info as in Dolphin or not.

    If you don't see the same information, then of course it's likely that the values are stored in your file system (BTFRS? Something else?), in which case you'll need to do some research into what tools might provide access to that metadata... I don't know how accessible those values might be without special tools, could require knowledge of the file system at a low level.

    Otherwise, if those values are EXIF, then there are a number of known tools that can edit directly.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  7. #7
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,983
    Blog Entries
    14

    Default Re: how to edit with commandline the comment and tag property details of file in dolphin

    Nothing to do with filesystems or such. It's baloo, the file indexer that adds configured tags. As some kind of proof: you will see the same tags f.e. in file dialogs.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  8. #8

    Default Re: how to edit with commandline the comment and tag property details of file in dolphin

    Quote Originally Posted by hcvv View Post
    I am a bit guessing here because I never looked into those details that Dolphin offers.

    Because I see that Comment item shown with all types of files (even plain text files), I get the idea it is something Dolphin stores somewhere. The same with the items Tags and Ratings. They are not things that are stored in a plain text file itself, thus they only exist in Dolphins own imaginary.
    I do not know whwre these is stored, nor if you can edit them easy from the command line.
    It is the same comment tha appear in the field description in the file opened in gwenview, so it seems that it is more KDE applications viewed by

    Quote Originally Posted by hcvv View Post
    So the ultimate question is if you want to change the comment in the JPEG header, or if you want to change the comment shown in Dolphin (which maybe the same, or derived from it originaly and stored elsewhere, or something completely different, who knows what GUI tools all do do to obfuscate reality).
    I would like to have my pictures with a comment readable everywhere, it seems that the one in dolphin is useful only in linux filesystem and dolphin (I tried to copy files in a pen drive probably with ntfs filesystem and the field >properties>details>comments is not editable)
    the comment in jhead is visible mostly everywhere, so I think to adopt both

  9. #9
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,255

    Default Re: how to edit with commandline the comment and tag property details of file in dolphin

    Oh yes, the comment you can manipulate with jhead (and other JPEG and image editing tools) is part of the file and travels with it everywhere. The comment you see in Dolphin is, as Knurpht explains, part of de KDE environment (maybe it is a desktop.org standard and thus works in more desktops then KDE alone) and as such will not travel with the file.

    The problem here is that the mere English term "Comment" does fit both. Adding to this the other typical JPEG values like size and the EXIF values from the camera makes it more difficult to see what the meanng of Comment is here.
    Henk van Velden

  10. #10
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,983
    Blog Entries
    14

    Default Re: how to edit with commandline the comment and tag property details of file in dolphin

    Pier, you're looking for EXIF tags. Use Digikam f.e. to add / change those. Or, if mass changes are required, use a script that calls the ImageMagick tools.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •