Copy link to clipboard
Copied
If I use removal tool and export a photo then try to add tags using properties. I get an error message'' Arithmetic result surpassed 32 Bits'' it never happens with pics that I don't use removal tool in Light Room Classic.
The evidence indicates you're tripping over a bug in File Explorer. Other programs can view and add tags and star ratings to the problem file -- it's just File Explorer that has a problem.
You can work around the File Explorer bug by unchecking the option Catalog Settings > Metadata > Include Develop Settings In Metadata Inside JPEG, TIFF, PNG, And PSD Files.
DETAILS
Other programs can modify the exported files' metadata without problem: Photoshop, Mac Preview, Geosetter, the Exiftool utility.
...Copy link to clipboard
Copied
I forgot to mention opening in Photoshop and exporting it solves the issue, I then can add tags.
Copy link to clipboard
Copied
Removal tool?
Ok, a different post brought up this syntax confusion (Also about removal, but a different problem). So the removal tool is a tool in PS, in LrC this would be the Content Aware Remove, or even perhaps Spot Removal or Heal tool . So, are you applying the removal in PS or in LrC?
Copy link to clipboard
Copied
I meant the Heal tool.
Copy link to clipboard
Copied
To test my understanding, you've applied the Healing Tool to a photo in LR, exported it to a JPEG, and then in Windows File Explorer, you open the Properties window and try to add to the Tags property. You get the following error message from File Explorer (Google translation):
"1 interrupted action
An unexpected error prevents the use of properties on the file. If this error persists, you can use the error code to search for help with this problem.
Error Ox 80070216: Arithmetic result exceeded 32 bits.
DSC1399
Item Type: IrfanView JPG File
Size: 1.52 MB
1 interrupted action
An unexpected error prevents the use of properties on the file. If this error persists, you can use the error code to search for help with this problem.
Error Ox 80070216: Arithmetic result exceeded 32 bits.
X
DSC1399
Item Type: IrfanView JPG File
Size: 1.52 MB
Try again | Skip over | Cancel"
This could conceivably be a bug with LR exporting a non-standards-conforming JPEG. Or more likely, it's a bug in Windows File Explorer. LR is generally excellent about conforming to the JPEG standards, though there have been a few obscure bugs reported in the forum over the years.
If you attach the exported JPEG to your reply here, we can put it under the microscope to see if it's standards-conforming.
Copy link to clipboard
Copied
Also, please post a full-resolution screenshot (not a phone pic) of the Properties window showing the exact text you're trying to enter into the Tags field.
Copy link to clipboard
Copied
It does not matter what I write, same issue if I change title, any edit whatsoever and this error message appears.
Copy link to clipboard
Copied
yes. It happens with any edit, title, tags, lens... And only if using mask in Lightroom or Lightroom Classic.
Copy link to clipboard
Copied
I forgot to mention another workaround besides using opening in Photoshop to save it is to use Geosetter, there I can add tags, but hte file is also fixed, so I can add tags in Windows Explorer too.
Copy link to clipboard
Copied
Attach the exported JPEG to your reply here, we can put it under the microscope to see if it's standards-conforming.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
The evidence indicates you're tripping over a bug in File Explorer. Other programs can view and add tags and star ratings to the problem file -- it's just File Explorer that has a problem.
You can work around the File Explorer bug by unchecking the option Catalog Settings > Metadata > Include Develop Settings In Metadata Inside JPEG, TIFF, PNG, And PSD Files.
DETAILS
Other programs can modify the exported files' metadata without problem: Photoshop, Mac Preview, Geosetter, the Exiftool utility.
By default, LR exports all the develop settings in the XMP section of a JPEG. This includes the "dabs" (points) of brush strokes used in the healing tool, which can be relatively voluminous. The sample file you posted has one stroke with 106 dabs, and a second stroke with 1330 dabs.
When I copy those develop settings to a photo in the catalog and export it as a JPEG, I see the same symptoms as you when I try to add tag or a star rating in File Explorer's Properties panel, getting the error "Arithmetic results exceeds 32 bits". But if I use tweezers to remove 405 dabs from the brush strokes and re-export the JPEG, File Explorer works properly. If I remove 404 dabs and export, the bug still occurs.
The size of the JPEG APP1 segment that stores that problem JPEG's XMP metadata is 64,710 bytes, pretty close to the maximum of 65,502. When the total amount of XMP metadata exceeds the maximum, the modifying program must add a second segment, which is a little tricky. It appears that File Explorer is getting confused trying to add the second segment to contain the newly added tag and star rating.
If I add 5,000 dabs in a healing brush stroke to a photo, the exported JPEG already contains multiple segments, and File Explorer can add tags and star ratings without problem.
Copy link to clipboard
Copied
Thank you so much, it worked.