contentauth / c2pa-js

JavaScript SDK for displaying and validating C2PA data
https://opensource.contentauthenticity.org
MIT License
74 stars 40 forks source link

image/webp in list of valid mime types yet "Invalid mime type found on asset" error received #138

Closed jrglasgow closed 9 months ago

jrglasgow commented 9 months ago

Is there a list of the accepted mime types where the information will be displayed?

I am using c2patool to add manifests to WebP images on a test website but the JS SDK doesn't appear to be ble to read the manifest data from the WebP images; image

jrglasgow commented 9 months ago

ok, I was able to find the list of valid mime types... in Validator.VALID_MIME_TYPES which lists image/webp yet I am getting the "Invalid mime type found on asset" error.

jrglasgow commented 9 months ago

NVM, I see that the problem is from the Drupal module which is using an outdated version ( 0.14.4 ) version of the library before image/webp was added.