recently notest different platforms have started to complain that some platforms are detecting that people who use Generative Fill as An object remotely tools is marked as AI created image
when I was investigating the EXIF data I noticed this part of the data that Adobe Photoshop created could be causing the problem
Normal files with no Generative Fill will only have copyright info inside the Baseline Tags tag 0x8298
For example
0x8298 Copyright : © 2024 John Lam, all rights reserved
but exif data will include this much information if Generative Fill is use
0x8298 Copyright : © 2024 John Lam, all rights reserved
- JUMD Type : (c2pa)-0011-0010-800000aa00389b71
- JUMD Label : c2pa
- Actions Action : c2pa.edited
- Actions Software Agent : Adobe Firefly
- Actions Digital Source Type : http://cv.iptc.org/newscodes/digitalsourcetype/compositeWithTrainedAlgorithmicMedia
- Exclusions Start : 80
- Exclusions Length : 13442
- Name : jumbf manifest
- Alg : sha256
- Hash : (Binary data 32 bytes, use -b option to extract)
- Pad : (Binary data 9 bytes, use -b option to extract)
- Title : Generated Image
- Format : image/jpeg
- Instance ID : xmp:iid:97af7709-0aaf-4a8d-8737-9a93866be161
- Claim generator : Adobe Photoshop/25.10.0 adobe_c2pa/0.9.3 c2pa-rs/0.31.0
- Claim Generator Info Name : Adobe Photoshop
- Claim Generator Info Version : 25.10.0
- Claim Generator Info Com Adobe Build: 20240602.m.2640 211b761 win
- Signature : self#jumbf=c2pa.signature
- Assertions Url : self#jumbf=c2pa.assertions/c2pa.actions, self#jumbf=c2pa.assertions/c2pa.hash.data
- Assertions Hash : (Binary data 32 bytes, use -b option to extract), (Binary data 32 bytes, use -b option to extract)
- Item 0 : (Binary data 3266 bytes, use -b option to extract)
- Item 1 Sig Tst Tst Tokens Val : (Binary data 3639 bytes, use -b option to extract)
- Item 1R Vals Ocsp Vals : (Binary data 2264 bytes, use -b option to extract)
- Item 1 Pad : (Binary data 2759 bytes, use -b option to extract)
- Item 2 : null
- Item 3 : (Binary data 256 bytes, use -b option to extract)
is there any way I can just delete the data inside 0x8298 below the copyright line?
Can you provide a sample image?
Hi John,
I'm guessing that a command like this may do what you want:
exiftool -copyright= -jumbf:all= FILE
- PHil
Thanks both on quick respornd
to Stargeek
here is the Sample you asked for on Onedrive
Adobe ai Metadate sample (https://1drv.ms/u/s!AtbUBoMZmimKgdRX-EFUZ4ky8-SMPQ?e=ax88iQ)
to Phil
tested your suggestion, The code kind of works but it also deleted the first copyright line too
If I am using this as a solution
maybe it needs to create some code to export that line and re-import the basic copyright information.
below is what show up on my end
PS C:\Program No Install Files\exiftool> .\exiftool -H "P:\Photo\2024\2024-05_Lisbon, Portugal\2024-05-21_00000365\Pano 02\test\2024-05-21_211131_DxO-LRPano-PS01_Small-For exiftools clean up.jpg"
- ExifTool Version Number : 12.86
- File Name : 2024-05-21_211131_DxO-LRPano-PS01_Small-For exiftools clean up.jpg
- Directory : P:/Photo/2024/2024-05_Lisbon, Portugal/2024-05-21_00000365/Pano 02/test
- File Size : 277 kB
- File Modification Date/Time : 2024:06:13 14:17:13+01:00
- File Access Date/Time : 2024:06:13 17:15:01+01:00
- File Creation Date/Time : 2024:06:13 17:15:00+01:00
- File Permissions : -rw-rw-rw-
- File Type : JPEG
- File Type Extension : jpg
- MIME Type : image/jpeg
- Exif Byte Order : Big-endian (Motorola, MM)
0x8298 Copyright : © 2024 John Lam, all rights reserved
- JUMD Type : (c2pa)-0011-0010-800000aa00389b71
- JUMD Label : c2pa
- Actions Action : c2pa.edited
- Actions Software Agent : Adobe Firefly
- Actions Digital Source Type : http://cv.iptc.org/newscodes/digitalsourcetype/compositeWithTrainedAlgorithmicMedia
- Exclusions Start : 80
- Exclusions Length : 13442
- Name : jumbf manifest
- Alg : sha256
- Hash : (Binary data 32 bytes, use -b option to extract)
- Pad : (Binary data 9 bytes, use -b option to extract)
- Title : Generated Image
- Format : image/jpeg
- Instance ID : xmp:iid:97af7709-0aaf-4a8d-8737-9a93866be161
- Claim generator : Adobe Photoshop/25.10.0 adobe_c2pa/0.9.3 c2pa-rs/0.31.0
- Claim Generator Info Name : Adobe Photoshop
- Claim Generator Info Version : 25.10.0
- Claim Generator Info Com Adobe Build: 20240602.m.2640 211b761 win
- Signature : self#jumbf=c2pa.signature
- Assertions Url : self#jumbf=c2pa.assertions/c2pa.actions, self#jumbf=c2pa.assertions/c2pa.hash.data
- Assertions Hash : (Binary data 32 bytes, use -b option to extract), (Binary data 32 bytes, use -b option to extract)
- Item 0 : (Binary data 3266 bytes, use -b option to extract)
- Item 1 Sig Tst Tst Tokens Val : (Binary data 3639 bytes, use -b option to extract)
- Item 1R Vals Ocsp Vals : (Binary data 2264 bytes, use -b option to extract)
- Item 1 Pad : (Binary data 2759 bytes, use -b option to extract)
- Item 2 : null
- Item 3 : (Binary data 256 bytes, use -b option to extract)
0x0000 Photoshop Quality : 10
0x0001 Photoshop Format : Progressive
0x0002 Progressive Scans : 3 Scans
0x0425 IPTC Digest : 00000000000000000000000000000000
0x0004 Profile CMM Type : Linotronic
0x0008 Profile Version : 2.1.0
0x000c Profile Class : Display Device Profile
0x0010 Color Space Data : RGB
0x0014 Profile Connection Space : XYZ
0x0018 Profile Date Time : 1998:02:09 06:49:00
0x0024 Profile File Signature : acsp
0x0028 Primary Platform : Microsoft Corporation
0x002c CMM Flags : Not Embedded, Independent
0x0030 Device Manufacturer : Hewlett-Packard
0x0034 Device Model : sRGB
0x0038 Device Attributes : Reflective, Glossy, Positive, Color
0x0040 Rendering Intent : Perceptual
0x0044 Connection Space Illuminant : 0.9642 1 0.82491
0x0050 Profile Creator : Hewlett-Packard
0x0054 Profile ID : 0
- Profile Copyright : Copyright (c) 1998 Hewlett-Packard Company
- Profile Description : sRGB IEC61966-2.1
- Media White Point : 0.95045 1 1.08905
- Media Black Point : 0 0 0
- Red Matrix Column : 0.43607 0.22249 0.01392
- Green Matrix Column : 0.38515 0.71687 0.09708
- Blue Matrix Column : 0.14307 0.06061 0.7141
- Device Mfg Desc : IEC http://www.iec.ch
- Device Model Desc : IEC 61966-2.1 Default RGB colour space - sRGB
- Viewing Cond Desc : Reference Viewing Condition in IEC61966-2.1
0x0008 Viewing Cond Illuminant : 19.6445 20.3718 16.8089
0x0014 Viewing Cond Surround : 3.92889 4.07439 3.36179
0x0020 Viewing Cond Illuminant Type : D50
- Luminance : 76.03647 80 87.12462
0x0008 Measurement Observer : CIE 1931
0x000c Measurement Backing : 0 0 0
0x0018 Measurement Geometry : Unknown
0x001c Measurement Flare : 0.999%
0x0020 Measurement Illuminant : D65
- Technology : Cathode Ray Tube Display
- Red Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract)
- Green Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract)
- Blue Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract)
0x0000 DCT Encode Version : 100
0x0001 APP14 Flags 0 : [14]
0x0002 APP14 Flags 1 : (none)
0x0003 Color Transform : YCbCr
- Image Width : 1079
- Image Height : 268
- Encoding Process : Progressive DCT, Huffman coding
- Bits Per Sample : 8
- Color Components : 3
- Y Cb Cr Sub Sampling : YCbCr4:4:4 (1 1)
- Image Size : 1079x268
- Megapixels : 0.289
PS C:\Program No Install Files\exiftool> .\exiftool -copyright= -jumbf:all= "P:\Photo\2024\2024-05_Lisbon, Portugal\2024-05-21_00000365\Pano 02\test\2024-05-21_211131_DxO-LRPano-PS01_Small-For exiftools clean up.jpg"
1 image files updated
PS C:\Program No Install Files\exiftool> .\exiftool -H "P:\Photo\2024\2024-05_Lisbon, Portugal\2024-05-21_00000365\Pano 02\test\2024-05-21_211131_DxO-LRPano-PS01_Small-For exiftools clean up.jpg"
- ExifTool Version Number : 12.86
- File Name : 2024-05-21_211131_DxO-LRPano-PS01_Small-For exiftools clean up.jpg
- Directory : P:/Photo/2024/2024-05_Lisbon, Portugal/2024-05-21_00000365/Pano 02/test
- File Size : 264 kB
- File Modification Date/Time : 2024:06:13 17:16:42+01:00
- File Access Date/Time : 2024:06:13 17:16:43+01:00
- File Creation Date/Time : 2024:06:13 17:15:00+01:00
- File Permissions : -rw-rw-rw-
- File Type : JPEG
- File Type Extension : jpg
- MIME Type : image/jpeg
0x0000 Photoshop Quality : 10
0x0001 Photoshop Format : Progressive
0x0002 Progressive Scans : 3 Scans
0x0425 IPTC Digest : 00000000000000000000000000000000
0x0004 Profile CMM Type : Linotronic
0x0008 Profile Version : 2.1.0
0x000c Profile Class : Display Device Profile
0x0010 Color Space Data : RGB
0x0014 Profile Connection Space : XYZ
0x0018 Profile Date Time : 1998:02:09 06:49:00
0x0024 Profile File Signature : acsp
0x0028 Primary Platform : Microsoft Corporation
0x002c CMM Flags : Not Embedded, Independent
0x0030 Device Manufacturer : Hewlett-Packard
0x0034 Device Model : sRGB
0x0038 Device Attributes : Reflective, Glossy, Positive, Color
0x0040 Rendering Intent : Perceptual
0x0044 Connection Space Illuminant : 0.9642 1 0.82491
0x0050 Profile Creator : Hewlett-Packard
0x0054 Profile ID : 0
- Profile Copyright : Copyright (c) 1998 Hewlett-Packard Company
- Profile Description : sRGB IEC61966-2.1
- Media White Point : 0.95045 1 1.08905
- Media Black Point : 0 0 0
- Red Matrix Column : 0.43607 0.22249 0.01392
- Green Matrix Column : 0.38515 0.71687 0.09708
- Blue Matrix Column : 0.14307 0.06061 0.7141
- Device Mfg Desc : IEC http://www.iec.ch
- Device Model Desc : IEC 61966-2.1 Default RGB colour space - sRGB
- Viewing Cond Desc : Reference Viewing Condition in IEC61966-2.1
0x0008 Viewing Cond Illuminant : 19.6445 20.3718 16.8089
0x0014 Viewing Cond Surround : 3.92889 4.07439 3.36179
0x0020 Viewing Cond Illuminant Type : D50
- Luminance : 76.03647 80 87.12462
0x0008 Measurement Observer : CIE 1931
0x000c Measurement Backing : 0 0 0
0x0018 Measurement Geometry : Unknown
0x001c Measurement Flare : 0.999%
0x0020 Measurement Illuminant : D65
- Technology : Cathode Ray Tube Display
- Red Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract)
- Green Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract)
- Blue Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract)
0x0000 DCT Encode Version : 100
0x0001 APP14 Flags 0 : [14]
0x0002 APP14 Flags 1 : (none)
0x0003 Color Transform : YCbCr
- Image Width : 1079
- Image Height : 268
- Encoding Process : Progressive DCT, Huffman coding
- Bits Per Sample : 8
- Color Components : 3
- Y Cb Cr Sub Sampling : YCbCr4:4:4 (1 1)
- Image Size : 1079x268
- Megapixels : 0.289
Sorry. I thought you wanted to delete the copyright too. Just remove -copyright= from the command if you don't.
- Phil
Quote from: JohnLam on June 13, 2024, 12:33:18 PMhere is the Sample you asked for on Onedrive
Thanks. I thought that Phil might need it, but I also really wanted to look at the structure of it myself.
Edit: Ah, I see now you were using the
-H (
-hex) option (https://exiftool.org/exiftool_pod.html#H--hex), which I have never seen anyone use before. I was trying to figure out how all that other data was part of the
Copyright tag.
Using the command in FAQ #3 (https://exiftool.org/faq.html#Q3) would have shown that the data was part of the JUMBF group, not the EXIF group and would have led to Phil's command to remove it.
C:\>exiftool -G1 -a -s -e --file:all --ICC_Profile:all "Y:\!temp\!AI Metadata sample\2024-05-21_211131_DxO-LRPano-PS01_Small_With AIeditMetadata.jpg"
[ExifTool] ExifToolVersion : 12.87
[IFD0] Copyright : © 2024 John Lam, all rights reserved
[JUMBF] JUMDType : (c2pa)-0011-0010-800000aa00389b71
[JUMBF] JUMDLabel : c2pa
[JUMBF] JUMDType : (c2ma)-0011-0010-800000aa00389b71
[JUMBF] JUMDLabel : adobe:urn:uuid:b356f31c-2bc0-4891-a934-f6c30148975a
[JUMBF] JUMDType : (c2as)-0011-0010-800000aa00389b71
[JUMBF] JUMDLabel : c2pa.assertions
[JUMBF] JUMDType : (cbor)-0011-0010-800000aa00389b71
[JUMBF] JUMDLabel : c2pa.actions
[JUMBF] JUMDType : (cbor)-0011-0010-800000aa00389b71
[JUMBF] JUMDLabel : c2pa.hash.data
[JUMBF] JUMDType : (c2cl)-0011-0010-800000aa00389b71
[JUMBF] JUMDLabel : c2pa.claim
[JUMBF] JUMDType : (c2cs)-0011-0010-800000aa00389b71
[JUMBF] JUMDLabel : c2pa.signature
[CBOR] ActionsAction : c2pa.edited
[CBOR] ActionsSoftwareAgent : Adobe Firefly
[CBOR] ActionsDigitalSourceType : http://cv.iptc.org/newscodes/digitalsourcetype/compositeWithTrainedAlgorithmicMedia
[CBOR] ExclusionsStart : 80
[CBOR] ExclusionsLength : 13442
[CBOR] Name : jumbf manifest
[CBOR] Alg : sha256
[CBOR] Hash : (Binary data 32 bytes, use -b option to extract)
[CBOR] Pad : (Binary data 9 bytes, use -b option to extract)
[CBOR] Title : Generated Image
[CBOR] Format : image/jpeg
[CBOR] InstanceID : xmp:iid:97af7709-0aaf-4a8d-8737-9a93866be161
[CBOR] Claim_generator : Adobe Photoshop/25.10.0 adobe_c2pa/0.9.3 c2pa-rs/0.31.0
[CBOR] Claim_Generator_InfoName : Adobe Photoshop
[CBOR] Claim_Generator_InfoVersion : 25.10.0
[CBOR] Claim_Generator_InfoComAdobeBuild: 20240602.m.2640 211b761 win
[CBOR] Signature : self#jumbf=c2pa.signature
[CBOR] AssertionsUrl : self#jumbf=c2pa.assertions/c2pa.actions, self#jumbf=c2pa.assertions/c2pa.hash.data
[CBOR] AssertionsHash : (Binary data 32 bytes, use -b option to extract), (Binary data 32 bytes, use -b option to extract)
[CBOR] Alg : sha256
[CBOR] Item0 : (Binary data 3266 bytes, use -b option to extract)
[CBOR] Item1SigTstTstTokensVal : (Binary data 3639 bytes, use -b option to extract)
[CBOR] Item1RValsOcspVals : (Binary data 2264 bytes, use -b option to extract)
[CBOR] Item1Pad : (Binary data 2759 bytes, use -b option to extract)
[CBOR] Item2 : null
[CBOR] Item3 : (Binary data 256 bytes, use -b option to extract)
[Photoshop] PhotoshopQuality : 10
[Photoshop] PhotoshopFormat : Progressive
[Photoshop] ProgressiveScans : 3 Scans
[Photoshop] IPTCDigest : 00000000000000000000000000000000
[Adobe] DCTEncodeVersion : 100
[Adobe] APP14Flags0 : [14]
[Adobe] APP14Flags1 : (none)
[Adobe] ColorTransform : YCbCr
thanks, both :)
confirm that deleting the full set of JUMBF data with the below command works
ExifTool -jumbf:all= {File path}
Ran into this problem too - I ported exiftool code to javascript to remove c2pa / AI tags from images in the browser, so I don't have to run CLI every time.
Site is unmadewithai.com (http://unmadewithai.com) :)
Quote from: canada_fresh on August 12, 2024, 11:30:17 AMRan into this problem too - I ported exiftool code to javascript to remove c2pa / AI tags from images in the browser, so I don't have to run CLI every time.
Site is unmadewithai.com (http://unmadewithai.com/) :)
I took the same approach with my web site which extracts metadata (including shutter count and face detection data) from Fujfilm raw files - the other sites that do anything similar upload files and run them against exiftool.
I'm interested in running metadata extracts in web browsers and on iPhones/iPads but the logic has to be ported to something other than Perl to run in either environment.
https://www.solentsystems.com/
Quote from: greybeard on August 12, 2024, 01:21:11 PMQuote from: canada_fresh on August 12, 2024, 11:30:17 AMRan into this problem too - I ported exiftool code to javascript to remove c2pa / AI tags from images in the browser, so I don't have to run CLI every time.
Site is unmadewithai.com (http://unmadewithai.com/) :)
I took the same approach with my web site which extracts metadata (including shutter count and face detection data) from Fujfilm raw files - the other sites that do anything similar upload files and run them against exiftool.
I'm interested in running metadata extracts in web browsers and on iPhones/iPads but the logic has to be ported to something other than Perl to run in either environment.
https://www.solentsystems.com/
Send me a message if you want some pointers about porting the code to Javascript - took a bit of persistence to find the right places to look.
Quote from: canada_fresh on August 12, 2024, 04:01:19 PMSend me a message if you want some pointers about porting the code to Javascript - took a bit of persistence to find the right places to look.
I'm impressed you were able to do this.
- Phil
Quote from: Phil Harvey on August 12, 2024, 08:43:12 PMI'm impressed you were able to do this.
- Phil
Thanks Phil - coming from you that especially means a lot! My code's not the prettiest (yet?) and fortunately I only needed to port the code that handles JUMBF sections. Exiftool has really concise code, it's great. Also, your granular documentation of the file formats really helped a lot - I stared at a hex editor for an infinitely shorter time than I would've had to without it ;D
Quote from: canada_fresh on August 12, 2024, 04:01:19 PMSend me a message if you want some pointers about porting the code to Javascript - took a bit of persistence to find the right places to look.
Thanks - I did consider code porting as it would have made it easier to extend the web site to other camera makes but decided to go back to first principles, rearchitect from scratch and parse the binary code and only support files from Fujifilm cameras