To validate these files, check out the Content Credentials Verify tool.
- Sample file with C2PA metadata
- Scaled file with original metadata (generated by WordPress with
imagickand mu-plugin below)
To validate these files, check out the Content Credentials Verify tool.
imagick and mu-plugin below)| <?php | |
| /** | |
| * Prevents stripping of metadata from images. | |
| * | |
| * See: https://developer.wordpress.org/reference/hooks/image_strip_meta/ | |
| */ | |
| /* | |
| * This filter only applies when resizing using the Imagick editor since GD always strips profiles by default. | |
| */ | |
| add_filter( 'image_strip_meta', '__return_false' ); |