Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • AWatters 33 posts 174 karma points
    May 27, 2022 @ 12:02
    AWatters
    0

    Webp not working

    Version 7.7.4 Trying to get WebP working. I have installed the WebP package of ImageProcessor. I installed the C++ Redistributable Package and the varous steps here: https://piotrbach.com/enable-webp-image-format-in-umbraco-cms/#1-install-imageprocessor-s-webp-plugin

    I have helper code from another site where the WebP images do work which generates picture, source, img tags. However it doesn't work. I get the following:

    <picture><source sizes="(max-width: 360px) 360px,800px" srcset="/media/1854/lx3003.jpg?mode=crop&amp;width=360&amp;format=webp&amp;quality=80 360w,/media/1854/lx3003.jpg?mode=crop&amp;width=720&amp;format=webp&amp;quality=80 720w,/media/1854/lx3003.jpg?mode=crop&amp;width=800&amp;height=600&amp;format=webp&amp;quality=80 800w,/media/1854/lx3003.jpg?mode=crop&amp;width=1600&amp;height=1200&amp;format=webp&amp;quality=80 1600w" type="image/webp">
        <img height="600" loading="lazy" sizes="(max-width: 360px) 360px,800px" src="/media/1854/lx3003.jpg?mode=pad&amp;width=800&amp;height=600" srcset="/media/1854/lx3003.jpg?mode=crop&amp;quality=80&amp;width=360 360w,/media/1854/lx3003.jpg?mode=crop&amp;quality=80&amp;width=720 720w,/media/1854/lx3003.jpg?mode=crop&amp;quality=80&amp;width=800&amp;height=600 800w,/media/1854/lx3003.jpg?mode=crop&amp;quality=80&amp;width=1600&amp;height=1200 1600w" width="800"></picture>
    

    It says type="image/webp" but Network still has them as jpg. Mime type is set up in web.config. What else am I missing? Thanks

  • AWatters 33 posts 174 karma points
    May 27, 2022 @ 16:33
    AWatters
    0

    Ok - turns out the new ImageProcessor.Plugins.WebP.dll and .xml weren't in bin folder and I never spotted it. Stupid stupid stupid

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies