LaGen, Bulk conversion of images in to next-gen formats

20 Nov

LaGen, Bulk conversion of images in to next-gen formats

We are creating a tool for converting images of your websites to new gen image formats like JPEG 2000, JPEG XR, and WebP. All you have to di, enter your website URL to the tool, and the tool will download images and convert them to the format you requested.

In the next version, we will have a feature, that will upload those images to a server you add for the website.

Then in order to server those images from your websites,

We have to update .htaccess with

<IfModule mod_rewrite.c>
  RewriteEngine On

  RewriteCond %{HTTP_ACCEPT} image/webp
  RewriteCond %{DOCUMENT_ROOT}/$1.webp -f
  RewriteRule (.+)\.(jpe?g|png)$ $1.webp [T=image/webp,E=REQUEST_image]
</IfModule>

<IfModule mod_headers.c>
  Header append Vary Accept env=REQUEST_image
</IfModule>

<IfModule mod_mime.c>
  AddType image/webp .webp
</IfModule>


Or you can edit your html files with some content as shown below.
<picture>
  <source srcset="image.webp" type="image/webp">
  <img src="image.jpg" alt="">
</picture>

Leave a Reply

Your email address will not be published. Required fields are marked *