0

https://www.drupal.org/project/imagewebp lets you upload a regular jpg/png which converts it into webp, but how to upload already a file that is in webp?

Adding it as one of allowed extensions in the field setting does not work.

update As an alternative this can be solved with https://www.drupal.org/project/file_entity, but this is for the file field and not image field.

The question is about image field. Because in production site that already has image field in use with many images and pages active, it needs .webp extension support added to already existing image field.

6
  • Upgrade to Drupal 9.5 or 10. WebP is supported there.
    – cilefen
    Mar 13, 2023 at 15:30
  • I'm afraid this is not a right answer. Question is about Drupal 7 which is still officially maintained at least until Nov 1st 2023. Upgrading to solve all problems is not an answer, especially spending weeks or months upgrading entire platform just to have one file extension support. Thank you. Mar 13, 2023 at 16:43
  • Support the efforts to complete drupal.org/project/drupal/issues/3179554 if you are unable to update to Drupal 9 or 10.
    – cilefen
    Mar 13, 2023 at 17:02
  • @cilefen the patch in the link works, can you please post this as the answer to solve and close the question? Mar 13, 2023 at 17:26
  • officially maintained at least until Nov 1st 2023 yes but doesn't mean it gets new features. Your best bet is to upgrade or try the patche(s) in the link cilefen added.
    – Kevin
    Mar 13, 2023 at 17:27

1 Answer 1

2

Drupal Core 7 does not yet support WebP but there are reportedly working patches on this in-progress issue: https://www.drupal.org/project/drupal/issues/3179554.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.