-
Notifications
You must be signed in to change notification settings - Fork 7
Add page on c2pa approved watermarks and fingerprints #192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 10 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
a964d56
Render soft bing alg list into table view
crandmck d874ce0
Initial impl of displaying c2pa sba algo list.
crandmck d9d326d
Add dynamic fetch of soft binding alg list from c2pa github repo
crandmck 19990bd
Add alg list to fetch-readmes, move in sidebar
crandmck 437313d
Rewording
crandmck 03a6858
Wording
crandmck 13e07b9
Clarify wording
crandmck 169e6cb
minor edits
crandmck 0ca84c1
Remove static/sb-alg-list.json from PR and add to .gitignore. The fet…
crandmck dfa6bf7
Comments from John Collomosse
crandmck 634ed13
Removed file that shouldn't have been commited in the first place
crandmck 6196d79
Comments from LR
crandmck File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,19 @@ | ||||||
--- | ||||||
id: sb-algs | ||||||
title: Watermarking and fingerprinting algorithms | ||||||
hide_table_of_contents: true | ||||||
--- | ||||||
|
||||||
[_Durable Content Credentials_](https://contentauthenticity.org/blog/durable-content-credentials) is a concept that helps content provenance to persist across content platforms by also using one or both: | ||||||
|
||||||
- **Undetectable watermarks**, actively inserted into the content | ||||||
- **Content fingerprinting**, passively computed from the content. | ||||||
|
||||||
Platforms might remove C2PA metadata if they don't yet support the standard or if they use automated process to, for example, provide multiple resolutions of an image which they then serve over the Web. By storing a copy of the metadata in an online database, you can use a watermark or a fingerprint to find it again. | ||||||
|
Platforms might remove C2PA metadata if they don't yet support the standard or if they use automated process to, for example, provide multiple resolutions of an image which they then serve over the Web. By storing a copy of the metadata in an online database, you can use a watermark or a fingerprint to find it again. | |
Platforms might remove C2PA Manifests if they are using software that does not yet support the standard. By storing a copy of the C2PA Manifest in an online database, you can use a watermark or a fingerprint to find it again. |
crandmck marked this conversation as resolved.
Show resolved
Hide resolved
crandmck marked this conversation as resolved.
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
import React, { useState, useEffect } from 'react'; | ||
|
||
// Define the fields to display and their custom headers | ||
const DISPLAY_FIELDS = { | ||
alg: 'Algorithm Name', | ||
decodedMediaTypes: 'Media Types', | ||
'entryMetadata.informationalUrl': 'URL', | ||
'entryMetadata.contact': 'Contact', | ||
}; | ||
|
||
// Helper function to safely extract nested values and flatten arrays | ||
const getNestedValue = (obj, path) => { | ||
const value = path | ||
.split('.') | ||
.reduce( | ||
(acc, key) => (acc && acc[key] !== undefined ? acc[key] : 'N/A'), | ||
obj, | ||
); | ||
return Array.isArray(value) ? value.join(', ') : value; // Flatten arrays into a comma-separated string | ||
}; | ||
|
||
// Function to extract and filter only the required fields | ||
const extractAndFilterObject = (obj) => { | ||
let result = {}; | ||
for (const key in DISPLAY_FIELDS) { | ||
result[key] = getNestedValue(obj, key); | ||
} | ||
return result; | ||
}; | ||
|
||
// Helper function to capitalize each word in a string | ||
const capitalizeWords = (str) => { | ||
return str | ||
.split(' ') | ||
.map((word) => word.charAt(0).toUpperCase() + word.slice(1)) | ||
.join(' '); | ||
}; | ||
|
||
const JSONToTable = () => { | ||
const [jsonData, setJsonData] = useState(null); | ||
const [error, setError] = useState(null); | ||
|
||
useEffect(() => { | ||
fetch('/sb-alg-list.json') | ||
.then((response) => { | ||
if (!response.ok) { | ||
throw new Error('Failed to fetch the JSON file'); | ||
} | ||
return response.json(); | ||
}) | ||
.then((data) => { | ||
setJsonData(data); | ||
setError(null); | ||
}) | ||
.catch((err) => { | ||
setError(err.message); | ||
setJsonData(null); | ||
}); | ||
}, []); | ||
|
||
// Function to group data by the 'type' field | ||
const groupDataByType = (data) => { | ||
return data.reduce((acc, item) => { | ||
const type = getNestedValue(item, 'type'); | ||
if (!acc[type]) acc[type] = []; | ||
acc[type].push(item); | ||
return acc; | ||
}, {}); | ||
}; | ||
|
||
const generateTableHeaders = () => { | ||
return Object.keys(DISPLAY_FIELDS).map((key) => ( | ||
<th key={key}>{DISPLAY_FIELDS[key]}</th> | ||
)); | ||
}; | ||
|
||
const generateTableRows = (data) => { | ||
return data.map((item, rowIndex) => { | ||
const filteredData = extractAndFilterObject(item); | ||
const url = filteredData['entryMetadata.informationalUrl']; | ||
const description = getNestedValue(item, 'entryMetadata.description'); | ||
|
||
return ( | ||
<tr key={rowIndex}> | ||
{Object.keys(DISPLAY_FIELDS).map((key, index) => ( | ||
<td key={index}> | ||
{key === 'entryMetadata.informationalUrl' ? ( | ||
url !== 'N/A' && description !== 'N/A' ? ( | ||
<a href={url} target="_blank" rel="noopener noreferrer"> | ||
{description} | ||
</a> | ||
) : ( | ||
'N/A' | ||
) | ||
) : ( | ||
filteredData[key] | ||
)} | ||
</td> | ||
))} | ||
</tr> | ||
); | ||
}); | ||
}; | ||
|
||
if (error) return <p style={{ color: 'red' }}>{error}</p>; | ||
|
||
if (!jsonData || !Array.isArray(jsonData)) { | ||
return <p>No data found in the JSON. Expected an array of objects.</p>; | ||
} | ||
|
||
const groupedData = groupDataByType(jsonData); | ||
|
||
return ( | ||
<div> | ||
{Object.entries(groupedData).map(([type, data]) => ( | ||
<div key={type} style={{ marginBottom: '30px' }}> | ||
<h2>{capitalizeWords(type)} algorithms</h2> | ||
<table style={{ borderCollapse: 'collapse' }}> | ||
<thead> | ||
<tr>{generateTableHeaders()}</tr> | ||
</thead> | ||
<tbody>{generateTableRows(data)}</tbody> | ||
</table> | ||
</div> | ||
))} | ||
</div> | ||
); | ||
}; | ||
|
||
export default JSONToTable; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,158 @@ | ||
[ | ||
crandmck marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
{ | ||
"identifier": 1, | ||
"alg": "com.digimarc.validate.1", | ||
"type": "watermark", | ||
"decodedMediaTypes": ["audio", "video", "text", "image"], | ||
"entryMetadata": { | ||
"description": "Digimarc Validate Digital Watermarking algorithm", | ||
"dateEntered": "2024-05-17T17:00:00.000Z", | ||
"contact": "[email protected]", | ||
"informationalUrl": "https://www.digimarc.com/products/digital-content-authentication" | ||
} | ||
}, | ||
{ | ||
"identifier": 2, | ||
"alg": "org.atsc.a336", | ||
"type": "watermark", | ||
"decodedMediaTypes": ["audio", "video", "image"], | ||
"entryMetadata": { | ||
"description": "ATSC watermarking (A/334, A/335, A/336)", | ||
"dateEntered": "2024-05-17T15:43:00.000Z", | ||
"contact": "[email protected]", | ||
"informationalUrl": "https://www.atsc.org/atsc-documents/a3362017-content-recovery-redistribution-scenarios/" | ||
} | ||
}, | ||
{ | ||
"identifier": 3, | ||
"alg": "io.iscc.v0", | ||
"type": "fingerprint", | ||
"decodedMediaTypes": ["text", "image", "audio", "video", "application"], | ||
"entryMetadata": { | ||
"description": "ISO 24138 - International Standard Content Code (ISCC) V0 algorithm", | ||
"dateEntered": "2024-05-17T16:00:00Z", | ||
"contact": "[email protected]", | ||
"informationalUrl": "https://www.iso.org/standard/77899.html" | ||
} | ||
}, | ||
{ | ||
"identifier": 4, | ||
"alg": "com.adobe.trustmark.Q", | ||
"type": "watermark", | ||
"decodedMediaTypes": ["image"], | ||
"entryMetadata": { | ||
"description": "Adobe Trustmark variant Q", | ||
"dateEntered": "2024-05-17T17:00:00.000Z", | ||
"contact": "[email protected]", | ||
"informationalUrl": "https://github.com/adobe/trustmark/" | ||
} | ||
}, | ||
{ | ||
"identifier": 5, | ||
"alg": "com.adobe.trustmark.C", | ||
"type": "watermark", | ||
"decodedMediaTypes": ["image"], | ||
"entryMetadata": { | ||
"description": "Adobe Trustmark variant C", | ||
"dateEntered": "2024-05-17T17:00:00.000Z", | ||
"contact": "[email protected]", | ||
"informationalUrl": "https://github.com/adobe/trustmark/" | ||
} | ||
}, | ||
{ | ||
"identifier": 6, | ||
"alg": "com.adobe.icn.dense", | ||
"type": "fingerprint", | ||
"decodedMediaTypes": ["image"], | ||
"entryMetadata": { | ||
"description": "Adobe Image Comparator Network Dense Fingerprint", | ||
"dateEntered": "2024-05-17T17:00:00.000Z", | ||
"contact": "[email protected]", | ||
"informationalUrl": "https://openaccess.thecvf.com/content/CVPR2021W/WMF/html/Black_Deep_Image_Comparator_Learning_To_Visualize_Editorial_Change_CVPRW_2021_paper.html" | ||
} | ||
}, | ||
{ | ||
"identifier": 7, | ||
"alg": "ai.steg.api", | ||
"type": "watermark", | ||
"decodedMediaTypes": ["image", "video", "application"], | ||
"entryMetadata": { | ||
"description": "Steg.AI invisible watermarking", | ||
"dateEntered": "2024-05-20T10:50:00.000Z", | ||
"contact": "[email protected]", | ||
"informationalUrl": "https://openaccess.thecvf.com/content_CVPR_2019/papers/Wengrowski_Light_Field_Messaging_With_Deep_Photographic_Steganography_CVPR_2019_paper.pdf" | ||
} | ||
}, | ||
{ | ||
"identifier": 8, | ||
"alg": "ai.trufo.gen1.image", | ||
"type": "watermark", | ||
"decodedMediaTypes": ["image"], | ||
"entryMetadata": { | ||
"description": "Trufo image watermark.", | ||
"dateEntered": "2024-08-14T15:00:00.000Z", | ||
"contact": "[email protected]", | ||
"informationalUrl": "https://trufo.ai/publications/" | ||
} | ||
}, | ||
{ | ||
"identifier": 9, | ||
"alg": "ai.trufo.gen1.image-lite", | ||
"type": "watermark", | ||
"decodedMediaTypes": ["image"], | ||
"entryMetadata": { | ||
"description": "Trufo image watermark (lite version).", | ||
"dateEntered": "2024-08-14T15:00:00.000Z", | ||
"contact": "[email protected]", | ||
"informationalUrl": "https://trufo.ai/publications/" | ||
} | ||
}, | ||
{ | ||
"identifier": 10, | ||
"alg": "app.overlai.watermark.1", | ||
"type": "watermark", | ||
"decodedMediaTypes": ["image"], | ||
"entryMetadata": { | ||
"description": "Overlai Watermark version 1", | ||
"dateEntered": "2024-08-14T16:00:00.000Z", | ||
"contact": "[email protected]", | ||
"informationalUrl": "https://overlai.app/watermark" | ||
} | ||
}, | ||
{ | ||
"identifier": 11, | ||
"alg": "tv.kinetiq.watercast.48.1", | ||
"type": "watermark", | ||
"decodedMediaTypes": ["video"], | ||
"entryMetadata": { | ||
"description": "Teletrax Watermarking algorithm", | ||
"dateEntered": "2024-10-16T17:00:00.000Z", | ||
"contact": "[email protected]", | ||
"informationalUrl": "https://kinetiq.tv/broadcasting-syndication/" | ||
} | ||
}, | ||
{ | ||
"identifier": 12, | ||
"alg": "castLabs.watermark.1", | ||
"type": "watermark", | ||
"decodedMediaTypes": ["video"], | ||
"entryMetadata": { | ||
"description": "castLabs Single Frame Forensic Watermarking", | ||
"dateEntered": "2024-11-13T12:00:00.000Z", | ||
"contact": "[email protected]", | ||
"informationalUrl": "https://castlabs.com/image-watermarking/" | ||
} | ||
}, | ||
{ | ||
"identifier": 13, | ||
"alg": "com.adobe.trustmark.P", | ||
"type": "watermark", | ||
"decodedMediaTypes": ["image"], | ||
"entryMetadata": { | ||
"description": "Adobe Trustmark variant P", | ||
"dateEntered": "2025-02-05T17:00:00.000Z", | ||
"contact": "[email protected]", | ||
"informationalUrl": "https://github.com/adobe/trustmark/" | ||
} | ||
} | ||
] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.