Skip to content

This Wordpress plugin allows you to upload next-gen image formats (.avif, .webp, .svg) to the media library

License

Notifications You must be signed in to change notification settings

UncaughtTypeError/upload-next-gen-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Upload for Next-Generation Formats

Upload .webp, .avif, and .svg image formats. A plugin that allows you to support next generation image formats on your Wordpress site.

Description

Use Image Upload for Next-Generation Formats to upload .avif, .webp, or .svg images to your media library.

Just install and activate it.

Head over to your media library and start uploading your next gen images. 🙌 :party_popper:

Installation

Download from Wordpress

  1. Go to the Plugins -> Add New screen and search for Image Upload for Next-Generation Formats.
  2. Click Install Now.
  3. Click Activate, OR Go to the Plugins -> Installed Plugins screen, find Image Upload for Next-Generation Formats and click the Activate link.

Upload

  1. Download the latest archive and unzip.
  2. Go to the Plugins -> Add New screen, and click the Upload Plugin button.
  3. Upload zipped archive directly.
  4. Go to the Plugins -> Installed Plugins screen, find Image Upload for Next-Generation Formats and click the Activate link.

Manual

  1. Download the latest archive and unzip.
  2. Upload/copy the folder to the /wp-content/plugins/ directory.
  3. Go to the Plugins -> Installed Plugins screen, find Image Upload for Next-Generation Formats and click the Activate link.

Frequently Asked Questions

How can I convert images to .avif or .webp?

Use Squoosh. It is an online application that allows you to quickly upload and covert images in your browser.

What browsers are compatible with .avif, .webp, .svg?

How do I support older browsers?

Give them a fallback.

Use the <picture> element to do this, see The Picture element

Example:

<picture>
    <source srcset="/wp-content/uploads/img.avif" type="image/avif">
    <source srcset="/wp-content/uploads/img.webp" type="image/webp">
    <img src="/wp-content/uploads/img.jpg" alt="The fallback image">
</picture>

The browser will try the images above in the order you place them. If .avif is not supported, the browser will check the next <source>, which is .webp. If no images in any or the <source> elements can be loaded or supported the browser will default to the <img> element and load whatever image is specified. The fallback image format specified in the last <img> element should be a cross-browser supported format, e.g. .png, .jpg, .gif.

Changelog

1.0

  • Initial release

About

This Wordpress plugin allows you to upload next-gen image formats (.avif, .webp, .svg) to the media library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages