Table of contents
- Overview
- Why Entagged code disappears
- How to preserve code on Mac
- How to preserve code on Windows
- FAQ
- The takeaway
Overview
This article is relevant for you if you edit or convert your Sony JPG or RAW files before uploading - for example, exporting from Lightroom, converting RAW files, or editing in other software.
In that case, the code that Entagged sends to your camera can get lost during editing. Without that code, GotPhoto can no longer match the affected photos automatically.
To prevent this, we offer a script that copies the code to a metadata field that survives editing. See below for why the code disappears and how to fix it on Mac or Windows.
[Optional] The script can also rename your files to include the saved code.
Why Entagged code disappears
On Sony cameras, the code that Entagged sends to the camera is stored in a non-standard EXIF field called "ImageID" (EXIF tag 0x2043). GotPhoto automatically detects this field in JPG files uploaded directly from the camera.
Many editing tools don’t retain non-standard metadata fields like "ImageID." Lightroom exports and RAW converters are the most common cause – they strip this field during export or conversion, which is why it matters if you shoot in RAW.
The script we provide copies the value from "ImageID" into the "UserComment" field, which survives editing and is visible in Lightroom’s metadata view as well as other tools.
How to preserve code on Mac
Before making any changes or importing photos into editing software, back up your images. Changes made by the script are irreversible.
- Install ExifTool:
- Download the latest "MacOS Package" from ExifTool.org.
- Open the .dmg file by double-clicking it.
- Run the installer by double-clicking the .pkg file. If you get a warning about an unidentified developer, Ctrl+click (or right-click) the file, select Open, then click Open again.
- Complete the installation. No app will open, but ExifTool will now be available to use.
- Download the Mac script: EntaggedCopyToUserCommentAndRename.zip
- Double-click to unpack the zip file.
- [Optional] Move EntaggedCopyrightToUserComment.app to your Applications folder.
- Run the script:
- Start the app by double-clicking it. If you get a warning about an unidentified developer, Ctrl+click (or right-click) the file, select Open, then click Open again.
- Follow the prompts to select the image folder.
- Verify the result:
- Open an edited image in Preview.
- Go to Inspector > Exif tab and check that the UserComment field contains the same code that was previously in ImageID. If a code appears there, it worked.
How to preserve code on Windows
Before making any changes or importing photos into editing software, back up your images. Changes made by the script are irreversible.
- Download the script: EntaggedCopyToUserCommentAndRename-Windows.zip
- Double-click to unpack the zip file. Inside, find the EntaggedCopyToUserCommentAndRename.cmd file – it includes detailed instructions.
- Run the script:
- Drag and drop your image file or folder onto the .cmd file.
- Open the .cmd file in Notepad to edit these options:
- [Optional] Enable or disable file renaming.
- [Optional] Generate a CSV file listing filenames and codes.
- Verify the result:
- Open an edited image with ExifTool or another metadata viewer.
- Check that the UserComment field contains the same code that was previously in ImageID.
FAQ
Does this work with cameras other than Sony?
No. The script is built specifically for the "ImageID" field, which only Sony cameras use.
Do I need to use Lightroom for this to apply to me?
No. The issue occurs with any software that strips the "ImageID" field during export or conversion – not just Lightroom.
Can I run the script on photos I’ve already edited or exported?
Yes, as long as the files are still JPGs and the original "ImageID" field is still present. If it’s already been stripped, the script can’t recover it.
What do I do with the images after running the script?
Upload them to GotPhoto as usual. The system will now detect the code in the UserComment field.
The takeaway
Using this script, you can keep using Entagged with Sony cameras without losing codes when you edit or convert your photos. Once the script has run, upload your images to GotPhoto as usual.