Answers.Body: <blockquote>
  <p>ImagickException: data encoding scheme is not supported `/var/www/html/storage/runtime/temp/P0LY_Test60a2e191a91de2.16978634.webp' @ error/webp.c/ReadWEBPImage/338 in /var/www/html/vendor/pixelandtonic/imagine/src/Imagick/Imagine.php:69</p>
  </blockquote>
  <p>Based on that error, it definitely seems like an Imagick bug or Imagick configuration issue.</p>
  <p><a href="https://github.com/ImageMagick/ImageMagick/issues/22" rel="nofollow noreferrer">https://github.com/ImageMagick/ImageMagick/issues/22</a></p>
  <p><a href="https://github.com/gographics/imagick/issues/181" rel="nofollow noreferrer">https://github.com/gographics/imagick/issues/181</a></p>
  <p>I don't understand most of that (sounds like you might have a webp image that is using some extended features that Imagick doesn't know about), but hopefully it points you in the right direction.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-20T07:51:05.230Z
Answers.Text: Thanks Brad, I'll look through these and report back if I discover the issue!
Answers.UserDisplayName: patrick.altair
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-19T00:06:20.753Z
Answers.LastActivityDate: 2021-05-19T00:06:20.753Z
Answers.UserDisplayName: Brad Bell
Answers.Body: <p>To explicitly outputting a webp image:</p>
  <pre><code>&lt;source type=&quot;image/webp&quot; srcset=&quot;{{ asset.getUrl({
      transform: 'myNamedTransform',
      format: 'webp',
  }) }}&quot;&gt;
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-11T21:41:01.943Z
Answers.Text: Hi Priti, I appreciate this but my problem is occurring before this when I'm trying to upload the file through craft, not outputting it on the frontend. I'll add a screengrab for context.
Answers.UserDisplayName: patrick.altair
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-11T21:38:58.250Z
Answers.LastActivityDate: 2021-05-11T21:38:58.250Z
Answers.UserDisplayName: Priti Rathod
Body: <p>I've created an asset volume to which I can successfully upload jpgs, pngs, static webps etc. But when I try to upload an animated webp I get the alert:</p>
  <pre><code>Upload failed. The error message was: “The file “example.webp” does not appear to be an image.”
  </code></pre>
  <p>The file is an image and I've tried various different animated webps. It seems to just be them specifically. Weirdly, if I copy and paste the same animated webp into a redactor field it displays there and animates and saves fine. Does craft not supported animated webps as a file type or do I maybe need to change something in my config?</p>
  <p><a href="https://i.sstatic.net/qpikR.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/qpikR.png" alt="screen grab of error message “The file “example.webp” does not appear to be an image.”" /></a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-05-12T21:26:05.773Z
Comments.Text: Go to Utilities->Php Info in the control panel and search for "imagick" and "gd" and see if `webp` is listed in either of their supported formats.
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-05-13T21:20:03.530Z
Comments.Text: @BradBell "imagick" was not there but "gd" was and it has "WebP Support: Enabled". I installed imagick just to see if that would work. Its now the default and  has the php info  "ImageMagick supported formats: WEBP" but unfortunately still getting the alert message: "The file “/var/www/html/storage/runtime/temp/p0ly-test-03609d97028efc87.82756094.webp” does not appear to be an image."
Comments.UserDisplayName: patrick.altair
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-05-16T21:20:55.943Z
Comments.Text: Are there any errors being logged in Craft's `storage/logs` folder when you upload? Maybe memory_limit or max_execution_time related?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-05-17T21:39:29.637Z
Comments.Text: I get two errors logged, neither seem to mention memory_limit or max_execution_time. One is a craft\controllers\AssetsController::actionUpload error saying the file does not appear to be an image. The second is a  craft\errors\ImageException error in the logs. It reads: 
  ImagickException: data encoding scheme is not supported `/var/www/html/storage/runtime/temp/P0LY_Test60a2e191a91de2.16978634.webp' @ error/webp.c/ReadWEBPImage/338 in /var/www/html/vendor/pixelandtonic/imagine/src/Imagick/Imagine.php:69
Comments.UserDisplayName: patrick.altair
Tags: <assets><volumes>
Title: How to upload animated webp files?
ThreadText: # How to upload animated webp files?
  
  (Asked by: username_0 on 2021-05-11)
  
  I've created an asset volume to which I can successfully upload jpgs, pngs, static webps etc. But when I try to upload an animated webp I get the alert:
  
  ```
  Upload failed. The error message was: “The file “example.webp” does not appear to be an image.”
  
  ```
  
  The file is an image and I've tried various different animated webps. It seems to just be them specifically. Weirdly, if I copy and paste the same animated webp into a redactor field it displays there and animates and saves fine. Does craft not supported animated webps as a file type or do I maybe need to change something in my config?
  
  [![screen grab of error message “The file “example.webp” does not appear to be an image.”](https://i.sstatic.net/qpikR.png)](https://i.sstatic.net/qpikR.png)
  
  **Tags:** assets, volumes
  
  > **Comments:**
  > **username_1**: Go to Utilities->Php Info in the control panel and search for "imagick" and "gd" and see if `webp` is listed in either of their supported formats.  
  > **username_0**: @username_1 "imagick" was not there but "gd" was and it has "WebP Support: Enabled". I installed imagick just to see if that would work. Its now the default and  has the php info  "ImageMagick supported formats: WEBP" but unfortunately still getting the alert message: "The file “/var/www/html/storage/runtime/temp/p0ly-test-03609d97028efc87.82756094.webp” does not appear to be an image."  
  > **username_1**: Are there any errors being logged in Craft's `storage/logs` folder when you upload? Maybe memory_limit or max_execution_time related?  
  > **username_0**: I get two errors logged, neither seem to mention memory_limit or max_execution_time. One is a craft\controllers\AssetsController::actionUpload error saying the file does not appear to be an image. The second is a  craft\errors\ImageException error in the logs. It reads:  ImagickException: data encoding scheme is not supported `/var/www/html/storage/runtime/temp/P0LY_Test60a2e191a91de2.16978634.webp' @ error/webp.c/ReadWEBPImage/338 in /var/www/html/vendor/pixelandtonic/imagine/src/Imagick/Imagine.php:69  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2021-05-19. Score: 1
  
  > ImagickException: data encoding scheme is not supported `/var/www/html/storage/runtime/temp/P0LY\_Test60a2e191a91de2.16978634.webp' @ error/webp.c/ReadWEBPImage/338 in /var/www/html/vendor/pixelandtonic/imagine/src/Imagick/Imagine.php:69
  
  Based on that error, it definitely seems like an Imagick bug or Imagick configuration issue.
  
  <https://github.com/ImageMagick/ImageMagick/issues/22>
  
  <https://github.com/gographics/imagick/issues/181>
  
  I don't understand most of that (sounds like you might have a webp image that is using some extended features that Imagick doesn't know about), but hopefully it points you in the right direction.
  
  > **Comments:**
  > **username_0**: Thanks username_1, I'll look through these and report back if I discover the issue!  
  
  ---
  
  ### Answer by username_2 on 2021-05-11. Score: 0
  
  To explicitly outputting a webp image:
  
  ```
  <source type="image/webp" srcset="{{ asset.getUrl({
      transform: 'myNamedTransform',
      format: 'webp',
  }) }}">
  
  ```
  
  > **Comments:**
  > **username_0**: Hi username_2, I appreciate this but my problem is occurring before this when I'm trying to upload the file through craft, not outputting it on the frontend. I'll add a screengrab for context.  
  
  ---
  
  