Skip to content

Commit 78892c1

Browse files
committed
Updated metadata for content credentials
1 parent df983d0 commit 78892c1

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

src/content/partials/images/metadata.mdx

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,48 +3,56 @@
33
---
44
import { Tabs, TabItem } from "~/components"
55

6-
Controls amount of invisible metadata (EXIF data) that should be preserved. Color profiles and EXIF rotation are applied to the image even if the metadata is discarded. Note that if the Polish feature is enabled, all metadata may have been removed already and this option will have no effect.
6+
Controls amount of invisible metadata (EXIF data) that should be preserved.
7+
8+
Color profiles and EXIF rotation are applied to the image even if the metadata is discarded. Content Credentials (C2PA metadata) may be preserved if the [setting is enabled](/images/transform-images/preserve-content-credentials).
9+
10+
Available options are `copyright`, `keep`, and `none`. The default for all JPEG images is `copyright`. WebP and PNG output formats will always discard EXIF metadata.
711

812
:::note
9-
Even when choosing to keep EXIF metadata, Cloudflare will modify JFIF data (potentially invalidating it) to avoid the known incompatibility between the two standards. For more details, refer to [JFIF Compatibility](https://en.wikipedia.org/wiki/JPEG_File_Interchange_Format#Compatibility).
13+
- If Polish is enabled, then all metadata may already be removed and this option will have no effect.
14+
- Even when choosing to keep EXIF metadata, Cloudflare will modify JFIF data (potentially invalidating it) to avoid the known incompatibility between the two standards. For more details, refer to [JFIF Compatibility](https://en.wikipedia.org/wiki/JPEG_File_Interchange_Format#Compatibility).
1015
:::
1116

1217
Options include:
1318

14-
* `keep`\
15-
Preserves most of EXIF metadata, including GPS location if present.
19+
* `copyright`\
20+
Discards all EXIF metadata except copyright tag.
21+
If C2PA metadata preservation is enabled, then this option will preserve all Content Credentials.
22+
1623

1724
<Tabs>
1825
<TabItem label="URL format">
1926
```js
20-
metadata=keep
27+
metadata=copyright
2128
```
2229
</TabItem>
2330
<TabItem label="Workers">
2431
```js
25-
cf: {image: {metadata: "keep"}}
32+
cf: {image: {metadata: "copyright"}}
2633
```
2734
</TabItem>
2835
</Tabs>
2936

30-
* `copyright`\
31-
Discard all metadata except EXIF copyright tag. This is the default behavior for JPEG images.
37+
* `keep`\
38+
Preserves most of EXIF metadata, including GPS location if present.
39+
If C2PA metadata preservation is enabled, then this option will preserve all Content Credentials.
3240

3341
<Tabs>
3442
<TabItem label="URL format">
3543
```js
36-
metadata=copyright
44+
metadata=keep
3745
```
3846
</TabItem>
3947
<TabItem label="Workers">
4048
```js
41-
cf: {image: {metadata: "copyright"}}
49+
cf: {image: {metadata: "keep"}}
4250
```
4351
</TabItem>
4452
</Tabs>
4553

4654
* `none`\
47-
Discard all invisible EXIF metadata. Currently, WebP and PNG output formats always discard metadata.
55+
Discards all invisible EXIF and C2PA metadata. If the output format is WebP or PNG, then all metadata will be discarded.
4856

4957
<Tabs>
5058
<TabItem label="URL format">

0 commit comments

Comments
 (0)