• Resolved nikolaenya

    (@nikolaenya)


    Hi! please help me. Dont show image format WebP =(

    1. Does your server meet the technical requirements described in the FAQ? YES
    2. Do you use CDN? NO
    3. Do you use other plugins to optimize images? NO
    4. Check if in /wp-content/uploads-webpc/ directory are all files that should be converted. YES
    5. URL of your website. https://lashmix.ru
    6. Configuration of your server

    enabled
    GD headers Version 2.2.5
    GD library Version 2.2.5
    FreeType Support enabled
    FreeType Linkage with freetype
    FreeType Version 2.8.1
    GIF Read Support enabled
    GIF Create Support enabled
    JPEG Support enabled
    libJPEG Version 8
    PNG Support enabled
    libPNG Version 1.6.34
    WBMP Support enabled
    XPM Support enabled
    libXpm Version 30411
    XBM Support enabled
    WebP Support enabled
    Directive Local Value Master Value
    gd.jpeg_ignore_warning 1 1
    imagick
    imagick module enabled
    imagick module version 3.4.4
    imagick classes Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel
    Imagick compiled with ImageMagick version ImageMagick 6.9.7-4 Q16 x86_64 2019-08-13 http://www.imagemagick.org
    Imagick using ImageMagick library version ImageMagick 6.9.7-4 Q16 x86_64 2019-08-13 http://www.imagemagick.org
    ImageMagick copyright © 1999-2017 ImageMagick Studio LLC
    ImageMagick release date 2019-08-13
    ImageMagick number of supported formats: 235
    ImageMagick supported formats 3FR, A, AAI, AI, ART, ARW, AVI, AVS, B, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, C, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DNG, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, FAX, FILE, FITS, FRACTAL, FTP, FTS, G, G3, G4, GIF, GIF87, GRADIENT, GRAY, GROUP4, H, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, JBG, JBIG, JNG, JNX, JPE, JPEG, JPG, JPS, JSON, K, K25, KDC, LABEL, M, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, O, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, R, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCREENSHOT, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBP, WMV, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, Y, YCbCr, YCbCrA, YUV
    Directive Local Value Master Value
    imagick.locale_fix 0 0
    imagick.progress_monitor 0 0
    imagick.skip_version_check 0 0
    core
    PHP Version 7.3.12

    7. Content of your .htaccess file
    # BEGIN WordPress
    # Строки между BEGIN WordPress и END WordPress были созданы автоматически.
    # Они могут быть изменены только фильтрами WordPress.
    # Все изменения между этими отметками будут перезаписаны.

    # BEGIN WebP Converter
    <IfModule mod_mime.c>
    AddType image/webp .webp
    </IfModule>
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_ACCEPT} image/webp
    RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpg.webp -f
    RewriteRule wp-content/uploads/(.+)\.jpg$ wp-content/uploads-webpc/$1.jpg.webp [T=image/webp]
    RewriteCond %{HTTP_ACCEPT} image/webp
    RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpeg.webp -f
    RewriteRule wp-content/uploads/(.+)\.jpeg$ wp-content/uploads-webpc/$1.jpeg.webp [T=image/webp]
    RewriteCond %{HTTP_ACCEPT} image/webp
    RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.png.webp -f
    RewriteRule wp-content/uploads/(.+)\.png$ wp-content/uploads-webpc/$1.png.webp [T=image/webp]
    </IfModule>
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/webp “access plus 1 year”
    </IfModule>
    # END WebP Converter

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    8. What plugin version are you using? 1.1.2

    Configuration for Nginx DONE

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hi @nikolaenya,

    Thank you for your message. I will try to help you.

    Could you test something for me?

    Please create two types of image files – one with a red background and the other with a green one (so that we can see the difference). Please upload them to the following paths (create two new directories):
    – red /wp-content/directory-red/example.png2 (change the extension to .png2 – I know it is invalid)
    – duplicated red /wp-content/directory-red/example.png
    – green /wp-content/directory-green/example.png2 (change the extension to .png2 – I know it is invalid)
    – duplicated green /wp-content/directory-green/example.png

    Create a file please in the path /wp-content/.htaccess:

    <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteCond %{HTTP_ACCEPT} image/webp
      RewriteCond %{DOCUMENT_ROOT}/wp-content/directory-green/$1 -f
      RewriteRule directory-red/(.+)$ directory-green/$1 [T=image/webp]
    </IfModule>

    The .htaccess file in the WP installation directory should be empty (clean it temporarily). The .htaccess file in the /wp-content/ directory should contains only the rules listed above.

    Go to the following file URLs (add a prefix with your domain):
    /wp-content/directory-red/000-example.png
    /wp-content/directory-red/000-example.png2

    Test it on a Chrome browser. Tell me please, what color do you see on both URLs?

    Thread Starter nikolaenya

    (@nikolaenya)

    – /wp-content/directory-red/example.png red
    – /wp-content/directory-red/example.png2 green

    • This reply was modified 4 years, 1 month ago by nikolaenya.
    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Thank you very much. This confirms my guess. Redirection also does not work for the extensions .jpg, .jpeg and .gif. But it works for .jpg2, .jpeg2 and .gif2.

    Do you use any tool that affects these file extensions? You are able to contact with the administrator of your server in this case? I will be very grateful!

    Ahmad

    (@muzaffarab)

    Gd compression is enabled but still the site is not serving webp images at all.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @muzaffarab, If you have a technical issue, please add your own thread. Read carefully before FAQ.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Welcome back @nikolaenya. I see that the WebP files on your site are already working. In that case, I am closing the thread and good luck.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Dont work’ is closed to new replies.