Hint: Source images have Finder metadata but GraphicConverter output files not. You may suffer the Finder caching bug!
Posted: Tue Nov 08, 2022 11:04 pm
Foreword:
• Usually GraphicConverter keeps Mac filesystem metadata (timestamps, Finder tags, color, Spotlight comment) really well during conversions.
• Even with various "Remove metadata" functions in batch actions or file format options. Because these usually affect only the metadata in the respective image format's file headers. Not filesystem metadata. Although such options also are explicitly available in Convert & Modify.
• Now I experienced a conversion where my comments were in the intermediary folder but not in the final folder.
The reason:
• I had duplicated the original folder in Finder which held files with comments which correspond to IDs in an online design app different to the file name which I will use on my website. So worth keeping locally in Finder.
• In the intermediary folder I did some editing on the files with a 3rd party app (Snagit). They still all had their Mac metadata intact.
• In GraphicConverter I used the intermediary folder as the source for a conversion to my final folder. I thought I had found a bug in any of the batch or file format options (among it the ImageOptim option) which may remove the Mac metadata as an unintended/buggy side effect.
But a thorough inspection finally showed the reason to by a bug in Finder/macOS:
• GraphicConverter > Browser > Preview Panel > "Image" tab > General image data
• "Spotlight Comment" showed "" (null) although the corresponding file in Finder had a comment.
• This again was Finder's dreaded Spotlight Comment caching bug.
Workaround:
• In GC or in Finder trigger a metadata change on the files: Add a tag and remove it again.
• This triggers an enforced cache refresh.
• The Spotlight Comment then eventually is not only cached in Finder's memory but made available to 3rd party apps as well.
• In GraphicConverter the attribute "Spotlight Comment" finally showed its true value.
• Usually GraphicConverter keeps Mac filesystem metadata (timestamps, Finder tags, color, Spotlight comment) really well during conversions.
• Even with various "Remove metadata" functions in batch actions or file format options. Because these usually affect only the metadata in the respective image format's file headers. Not filesystem metadata. Although such options also are explicitly available in Convert & Modify.
• Now I experienced a conversion where my comments were in the intermediary folder but not in the final folder.
The reason:
• I had duplicated the original folder in Finder which held files with comments which correspond to IDs in an online design app different to the file name which I will use on my website. So worth keeping locally in Finder.
• In the intermediary folder I did some editing on the files with a 3rd party app (Snagit). They still all had their Mac metadata intact.
• In GraphicConverter I used the intermediary folder as the source for a conversion to my final folder. I thought I had found a bug in any of the batch or file format options (among it the ImageOptim option) which may remove the Mac metadata as an unintended/buggy side effect.
But a thorough inspection finally showed the reason to by a bug in Finder/macOS:
• GraphicConverter > Browser > Preview Panel > "Image" tab > General image data
• "Spotlight Comment" showed "" (null) although the corresponding file in Finder had a comment.
• This again was Finder's dreaded Spotlight Comment caching bug.
Workaround:
• In GC or in Finder trigger a metadata change on the files: Add a tag and remove it again.
• This triggers an enforced cache refresh.
• The Spotlight Comment then eventually is not only cached in Finder's memory but made available to 3rd party apps as well.
• In GraphicConverter the attribute "Spotlight Comment" finally showed its true value.