BUG REPORT: Resulting file from a -tagsfromfile command is hidden in OS X.

Started by theboyk, July 28, 2016, 10:16:21 AM

Previous topic - Next topic

theboyk

When I run any exiftool (v10.24) -tagsfromfile command in OS X (10.11.6), after the command is run, the resulting file is hidden in OS X (via Finder). It's visible via the command line, you just can't see it in Finder.

Right now, I just run mv filename.jpg filename_visibile.jpg, via the command line, to get the file to show in Finder.

k.

Phil Harvey

The only way I know to make a file invisible to the Finder is to start the name with a ".".

What is the output of this command for the file?:

exiftool -api mditemtags -G1 -file:all FILE

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

theboyk

Well, you can also show/hide files/folders in OS X using the chflags hidden /path/to/file-or-folder or chflags nohidden /path/to/file-or-folder commands, but that doesn't seem to be the issue here. Output from the requested command (run on the hidden file) as follows...

[System]        File Name                       : destination.JPG
[System]        Directory                       : .
[System]        File Size                       : 5.3 MB
[System]        File Modification Date/Time     : 2016:07:28 10:35:48-04:00
[System]        File Access Date/Time           : 2016:07:28 10:35:48-04:00
[System]        File Inode Change Date/Time     : 2016:07:28 10:35:48-04:00
[System]        File Permissions                : rw-r--r--
[System]        MD Item Acquisition Make        : Apple
[System]        MD Item Acquisition Model       : iPhone7,2 - 9.3.3
[System]        MD Item Altitude                : 88.26763990267639
[System]        MD Item Bits Per Sample         : 32
[System]        MD Item Color Space             : RGB
[System]        MD Item Content Creation Date   : 2016:07:28 10:35:48-04:00
[System]        MD Item Content Modification Date: 2016:07:28 10:35:48-04:00
[System]        MD Item Content Type            : public.jpeg
[System]        MD Item Content Type Tree       : public.jpeg, public.image, public.data, public.item, public.content
[System]        MD Item Creator                 : Snapseed 2.7.4239
[System]        MD Item Date Added              : 2016:07:28 10:35:48-04:00
[System]        MD Item Display Name            : destination.JPG
[System]        MD Item EXIF Version            : 2.2.1
[System]        MD Item FS Content Change Date  : 2016:07:28 10:35:48-04:00
[System]        MD Item FS Creation Date        : 2016:07:28 10:35:48-04:00
[System]        MD Item FS Creator Code         :
[System]        MD Item FS Finder Flags         : 0
[System]        MD Item FS Has Custom Icon      :
[System]        MD Item FS Invisible            : 0
[System]        MD Item FS Is Extension Hidden  : 0
[System]        MD Item FS Is Stationery        :
[System]        MD Item FS Label                : 0
[System]        MD Item FS Name                 : destination.JPG
[System]        MD Item FS Node Count           :
[System]        MD Item FS Owner Group ID       : 20
[System]        MD Item FS Owner User ID        : 502
[System]        MD Item FS Size                 : 5525165
[System]        MD Item FS Type Code            :
[System]        MD Item GPS Date Stamp          : 2016:07:27
[System]        MD Item Has Alpha Channel       : 0
[System]        MD Item Kind                    : Adobe Photoshop JPEG file
[System]        MD Item Latitude                : 43.634605
[System]        MD Item Logical Size            : 5525165
[System]        MD Item Longitude               : -79.39827
[System]        MD Item Orientation             : 0
[System]        MD Item Physical Size           : 5525504
[System]        MD Item Pixel Count             : 9052160
[System]        MD Item Pixel Height            : 1768
[System]        MD Item Pixel Width             : 5120
[System]        MD Item Profile Name            : sRGB IEC61966-2.1
[System]        MD Item Resolution Height DPI   : 72
[System]        MD Item Resolution Width DPI    : 72
[System]        MD Item Timestamp               : 17:52:51
[File]          File Type                       : JPEG
[File]          File Type Extension             : jpg
[File]          MIME Type                       : image/jpeg
[File]          Exif Byte Order                 : Big-endian (Motorola, MM)
[File]          Current IPTC Digest             : d41d8cd98f00b204e9800998ecf8427e
[File]          Image Width                     : 5120
[File]          Image Height                    : 1768
[File]          Encoding Process                : Baseline DCT, Huffman coding
[File]          Bits Per Sample                 : 8
[File]          Color Components                : 3
[File]          Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)

Phil Harvey

Interesting.  "chflags hidden" changes MDItemFSInvisible to 1, but this isn't the problem as you said because MDItemFSInvisible is 0 for your file.  Also, the file name doesn't start with a ".".  Presumably the ownership is correct, so this shouldn't be the problem.

The only other thing I can think of is that somehow the Finder view isn't being refreshed.

ExifTool isn't doing anything special when creating the new file, it should be equivalent to the standard C i/o library routines.  The only possibly tricky thing is that it renames both the original and temporary files immediately after closing them.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

theboyk

Yea, I think it's a weird refresh thing in Finder. I'll do some more testing later this afternoon on other machines and see if I can replicate or not?
k.