New image file type support - webp
Posted: Fri May 01, 2020 1:58 am
Google developed a new image file type a few years ago that is particularly suited to websites. It takes the best from PNG, JPG and GIF and rolled them into one which enables transpatency, compression and animation. However, the CMSimple_HX editors don't recognise this file type and therefore one needs to insert any such image by hard-coding into the page.
I wanted to insert a graphic with drop shadow around an irregular shape, so only a PNG file was possible. PNG is lossless so the file was over 220k in size (400x413 @ 72), while possible it was not efficient for the web and not uploadable to the image folder without changing the settings. I was able to convert this file to WEBP and the new size was 49k with some compression. I uploaded using FTP but it isn't displayed in the image selection list.
All the popular browsers support this image format so maybe it is time to support it with CMSimple_XH.
Thanks, Kurt
I wanted to insert a graphic with drop shadow around an irregular shape, so only a PNG file was possible. PNG is lossless so the file was over 220k in size (400x413 @ 72), while possible it was not efficient for the web and not uploadable to the image folder without changing the settings. I was able to convert this file to WEBP and the new size was 49k with some compression. I uploaded using FTP but it isn't displayed in the image selection list.
All the popular browsers support this image format so maybe it is time to support it with CMSimple_XH.
Thanks, Kurt