Title: WebP compression
Last modified: August 16, 2022

---

# WebP compression

 *  Resolved [NaturalEnquirer](https://wordpress.org/support/users/naturalenquirer/)
 * (@naturalenquirer)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/webp-compression-2/)
 * In image settings, I’ve checked Create WebP version of image. Your help for Create
   WEbP version of image says “Creates WebP image format and serves it whenever 
   possible.”
 * I use Elementor Pro and see that optimizing JPEGs as WebP does not work for their
   thumbs (and a few other items) which still are served as jpegs so I tried uploading
   WebP files for original images which works ok with Elementor thumbs. But now 
   if I run your image compression on the uploaded WebP files, I get errors. I’m
   assuming this is because the images are already WebP format?
 * … 3 selected image(s) could not be compressed. Please see the logs for more information,
   you may try again later. Log says:
 * Task with ID 626 and type (smush) failed with error code invalid_file_type – …./.
   webp – cannot be optimized, it has an **invalid file type**
 * I was hoping that when I select a jpg file, it would serve my WebP image, but
   it doesn’t. I guess I can just use WebP images but hate to not have a jpeg fallback.
 * I do use Cloudflare free version if that is an issue.
 * Any solution?

Viewing 1 replies (of 1 total)

 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/webp-compression-2/#post-15922475)
 * [@naturalenquirer](https://wordpress.org/support/users/naturalenquirer/) Thanks
   for reporting the issue, I’ll share the same with our development team the error
   you reported about invalid file type for WebP images
 * Task with ID 626 and type (smush) failed with error code invalid_file_type – …./.
   webp – cannot be optimized, it has an invalid file type
 * We’ll hopefully get it fixed in next release.

Viewing 1 replies (of 1 total)

The topic ‘WebP compression’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

## Tags

 * [webp](https://wordpress.org/support/topic-tag/webp/)

 * 1 reply
 * 3 participants
 * Last reply from: [Harshad](https://wordpress.org/support/users/bornforphp/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/webp-compression-2/#post-15922475)
 * Status: resolved