• Resolved mburdett555

    (@mburdett555)


    So i’m uploading a handful of images via the WordPress media library, but some get .webp files generated and others dont.

    What I mean is, file1.jpg gets uploaded, I can immediately go to the address bar and put file1.jpg.webp in the address bar and it’ll load fine.
    But some other images it wont happen. Even after manually optimising and reuploading , it wont generate the webp.

    What circumstances do I need in order to ensure a webp file is generated? Does it need to be actually loaded on the website?

    Certain images I only reference via CSS as background images but some load and some result in 404 as the webp hasnt been generated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    If EWWW IO won’t generate a WebP version of an image, it’s usually because the WebP encoder has created a larger image. The WebP format struggles to compress some types of images, so that’s one of the reasons EWWW IO uses conditional WebP delivery (by default) instead of forcing everything to be WebP.

    One other possibility is that EWWW IO is using an inferior WebP encoder. The default is to use the cwebp utility bundled with the plugin, but if your server doesn’t have exec() enabled, EWWW IO has to use one of the PHP libraries: GD or ImageMagick (imagick). GD is the worst option of the two, so if you don’t have the imagick extension, I’d see if you can enable that.

    We can verify which WebP encoder is being used by looking at the System Information from the EWWW IO support tab. You can post it here in a code bock, via pastebin.com, or send it via email at https://ewww.io/contact-us/

    Thread Starter mburdett555

    (@mburdett555)

    Thanks. Site health reports I am using
    Active editor EWWWIO_Imagick_Editor
    ImageMagick version number 1690

    Support log below. If it cant produce a webp of a certain image then thats fine, its just that I was hardcoding it into my css file as a background image for optimisation purposes.

    checking active plugins
    EIO_Base::content_url()
    upload_url: https://example.co.uk/wp-content/uploads/
    EIO_Base::__construct()
    plugin (resource) content_url: https://example.co.uk/wp-content/ewww/
    plugin (resource) content_dir: /var/www/html/wp-content/ewww/
    home url: https://example.co.uk/
    relative home url: //example.co.uk/
    home domain: example.co.uk
    site/upload url: https://example.co.uk
    site/upload domain: example.co.uk
    EIO_Picture_Webp::__construct()
    request uri is EWWW IO settings
    is_admin
    ewww_image_optimizer_admin_init()
    EIO_Base::content_url()
    upload_url: https://example.co.uk/wp-content/uploads/
    EIO_Base::__construct()
    plugin (resource) content_url: https://example.co.uk/wp-content/ewww/
    plugin (resource) content_dir: /var/www/html/wp-content/ewww/
    home url: https://example.co.uk/
    relative home url: //example.co.uk/
    home domain: example.co.uk
    site/upload url: https://example.co.uk
    site/upload domain: example.co.uk
    ewww_image_optimizer_cloud_init()
    ewww_image_optimizer_upgrade()
    ewww_image_optimizer_exec_init()
    ewww_image_optimizer_cron_setup()
    EWWWIO_Tracking::schedule_send()
    ewww_image_optimizer_tool_init()
    ewww_image_optimizer_install_tools()
    Checking/Installing tools in /var/www/html/wp-content/ewww/
    wp-content/ewww permissions: 0755
    ewww_image_optimizer_install_paths()
    CPU architecture: x86_64
    generated paths:
    /var/www/html/wp-content/plugins/ewww-image-optimizer/binaries/jpegtran-linux
    /var/www/html/wp-content/plugins/ewww-image-optimizer/binaries/optipng-linux
    /var/www/html/wp-content/plugins/ewww-image-optimizer/binaries/gifsicle-linux
    /var/www/html/wp-content/plugins/ewww-image-optimizer/binaries/pngquant-linux
    /var/www/html/wp-content/plugins/ewww-image-optimizer/binaries/cwebp-linux
    /var/www/html/wp-content/ewww/jpegtran
    /var/www/html/wp-content/ewww/optipng
    /var/www/html/wp-content/ewww/gifsicle
    /var/www/html/wp-content/ewww/pngquant
    /var/www/html/wp-content/ewww/cwebp
    ewww_image_optimizer_skip_tools()
    enabled: jpegtran
    enabled: optipng
    enabled: gifsicle
    enabled: webp
    Linux/UNIX style OS, checking permissions
    ewww_image_optimizer_check_permissions()
    permissions for /var/www/html/wp-content/ewww/jpegtran: 0755
    permissions ok
    ewww_image_optimizer_check_permissions()
    permissions for /var/www/html/wp-content/ewww/gifsicle: 0755
    permissions ok
    ewww_image_optimizer_check_permissions()
    permissions for /var/www/html/wp-content/ewww/optipng: 0755
    permissions ok
    ewww_image_optimizer_check_permissions()
    permissions for /var/www/html/wp-content/ewww/cwebp: 0755
    permissions ok
    ewww_image_optimizer_settings_script()
    ewww_image_optimizer_bulk_script()
    ewww_image_optimizer_tool_script()
    ewww_image_optimizer_webp_script()
    ewww_image_optimizer_notice_utils()
    ewww_image_optimizer_exec_check()
    ewww_image_optimizer_skip_tools()
    enabled: jpegtran
    enabled: optipng
    enabled: gifsicle
    enabled: webp
    ewww_image_optimizer_path_check()
    ewww_image_optimizer_find_nix_binary()
    found /var/www/html/wp-content/ewww/jpegtran, testing...
    ewww_image_optimizer_md5check()
    /var/www/html/wp-content/ewww/jpegtran: c0a44f6f16ddc78d8d027ffd3e09c512d637876833c5ffaaf5b1e7acd5ce3cda
    checksum verified, binary is intact
    ewww_image_optimizer_mimetype()
    testing mimetype: /var/www/html/wp-content/ewww/jpegtran
    7f454c46
    ewwwio type: application/x-executable
    ewww_image_optimizer_tool_found()
    testing case: j at /var/www/html/wp-content/ewww/jpegtran
    /var/www/html/wp-content/ewww/jpegtran: Independent JPEG Group's JPEGTRAN, version 9d 12-Jan-2020
    optimizer found
    defining EWWW_IMAGE_OPTIMIZER_JPEGTRAN
    ewww_image_optimizer_find_nix_binary()
    found /var/www/html/wp-content/ewww/optipng, testing...
    ewww_image_optimizer_md5check()
    /var/www/html/wp-content/ewww/optipng: 4404076a4f9119d4dfbb7acb00eb65345e804186a019c7136d8f8e87fb0cb997
    checksum verified, binary is intact
    ewww_image_optimizer_mimetype()
    testing mimetype: /var/www/html/wp-content/ewww/optipng
    7f454c46
    ewwwio type: application/x-executable
    ewww_image_optimizer_tool_found()
    testing case: o at /var/www/html/wp-content/ewww/optipng
    /var/www/html/wp-content/ewww/optipng: OptiPNG version 0.7.7
    optimizer found
    defining EWWW_IMAGE_OPTIMIZER_OPTIPNG
    ewww_image_optimizer_find_nix_binary()
    found /var/www/html/wp-content/ewww/gifsicle, testing...
    ewww_image_optimizer_md5check()
    /var/www/html/wp-content/ewww/gifsicle: 566f058b2043c4f3c8c049b0507bfa78dcb33dac52b132cade5f67bbb62d91e4
    checksum verified, binary is intact
    ewww_image_optimizer_mimetype()
    testing mimetype: /var/www/html/wp-content/ewww/gifsicle
    7f454c46
    ewwwio type: application/x-executable
    ewww_image_optimizer_tool_found()
    testing case: g at /var/www/html/wp-content/ewww/gifsicle
    /var/www/html/wp-content/ewww/gifsicle: LCDF Gifsicle 1.91
    optimizer found
    defining EWWW_IMAGE_OPTIMIZER_GIFSICLE
    ewww_image_optimizer_find_nix_binary()
    found /var/www/html/wp-content/ewww/cwebp, testing...
    ewww_image_optimizer_md5check()
    /var/www/html/wp-content/ewww/cwebp: 5fec3397c56b74b8a8ac8c9bac99dc11d40f9528a6c05e4108f1cd65d5a0a4fc
    checksum verified, binary is intact
    ewww_image_optimizer_mimetype()
    testing mimetype: /var/www/html/wp-content/ewww/cwebp
    7f454c46
    ewwwio type: application/x-executable
    ewww_image_optimizer_tool_found()
    testing case: w at /var/www/html/wp-content/ewww/cwebp
    /var/www/html/wp-content/ewww/cwebp: 1.2.0
    optimizer found
    defining EWWW_IMAGE_OPTIMIZER_CWEBP
    using: /var/www/html/wp-content/ewww/jpegtran
    using: /var/www/html/wp-content/ewww/optipng
    using: /var/www/html/wp-content/ewww/gifsicle
    using: /var/www/html/wp-content/ewww/cwebp
    defining EWWW_IMAGE_OPTIMIZER_PNGOUT
    defining EWWW_IMAGE_OPTIMIZER_PNGQUANT
    defining EWWW_IMAGE_OPTIMIZER_SVGCLEANER
    ewww_image_optimizer_options()
    ewww_image_optimizer_savings()
    querying savings for single site
    table name is wp_ewwwio_images
    savings query took 0.013947010040283 seconds
    total original size: 17370144
    total current(opt) size: 15805123
    savings found: 1565021
    www-data
    EWWW IO version: 660.0
    WP version: 6.0
    PHP version: 70421
    libxml version: 20910
    core plugin
    ABSPATH: /var/www/html/
    WP_CONTENT_DIR: /var/www/html/wp-content
    EWWWIO_CONTENT_DIR: /var/www/html/wp-content/ewww/
    home url (Site URL): https://example.co.uk
    site url (WordPress URL): https://example.co.uk
    wp_upload_dir (baseurl): https://example.co.uk/wp-content/uploads
    wp_upload_dir (basedir): /var/www/html/wp-content/uploads
    content_width:
    registered stream wrappers: https,ftps,compress.zlib,compress.bzip2,php,file,glob,data,http,ftp,phar,zip
    not external cache
    ewww_image_optimizer_gd_support()
    GD found, supports:
    GD Version: bundled (2.1.0 compatible)
    FreeType Support: 1
    FreeType Linkage: with freetype
    GIF Read Support: 1
    GIF Create Support: 1
    JPEG Support: 1
    PNG Support: 1
    WBMP Support: 1
    XPM Support: 1
    XBM Support: 1
    WebP Support: 1
    BMP Support: 1
    TGA Read Support: 1
    JIS-mapped Japanese Font Support:
    ewww_image_optimizer_gmagick_support()
    ewww_image_optimizer_imagick_support()
    3FR,3G2,3GP,AAI,AI,ART,ARW,AVI,AVS,BGR,BGRA,BGRO,BIE,BMP,BMP2,BMP3,BRF,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,G3,G4,GIF,GIF87,GRADIENT,GRAY,GRAYA,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,K25,KDC,LABEL,M2V,M4V,MAC,MAGICK,MAP,MASK,MAT,MATTE,MEF,MIFF,MKV,MNG,MONO,MOV,MP4,MPC,MPEG,MPG,MRW,MSL,MTV,MVG,NEF,NRW,NULL,ORF,OTB,OTF,PAL,PALM,PAM,PATTERN,PBM,PCD,PCDS,PCL,PCT,PCX,PDB,PDF,PDFA,PEF,PES,PFA,PFB,PFM,PGM,PGX,PICON,PICT,PIX,PJPEG,PLASMA,PNG,PNG00,PNG24,PNG32,PNG48,PNG64,PNG8,PNM,PPM,PREVIEW,PS,PS2,PS3,PSB,PSD,PTIF,PWP,RADIAL-GRADIENT,RAF,RAS,RAW,RGB,RGBA,RGBO,RGF,RLA,RLE,RMF,RW2,SCR,SCT,SFW,SGI,SHTML,SIX,SIXEL,SPARSE-COLOR,SR2,SRF,STEGANO,SUN,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,YCbCr,YCbCrA,YUV
    ewww_image_optimizer_find_nix_binary()
    ewww_image_optimizer_tool_found()
    testing case: n at /usr/bin/nice
    /usr/bin/nice: 0
    nice found
    454 images have been optimized
    automatic compression enabled
    remove metadata: on
    jpg level: 10
    png level: 10
    gif level: 10
    pdf level: 0
    svg level: 0
    bulk delay:
    backup mode: off
    cloudinary upload: off
    ExactDN enabled: off
    ExactDN all the things: on
    ExactDN lossy: 0
    ExactDN resize existing: off
    ExactDN attachment queries: on
    Easy IO exclusions:
    
    add missing dimensions: off
    lazy load: off
    ewwwio_other_lazy_detected()
    Autoptimize lazy detected
    LL autoscale: on
    LQIP: off
    S(VG)IIP: off
    external CSS background (all things):
    LL exclusions:
    
    optipng level: 2
    pngout disabled: yes
    pngout level: 2
    svgcleaner disabled: yes
    ewww_image_optimizer_jpg_quality()
    configured quality: 82
    ewww_image_optimizer_jpg_quality()
    effective quality: 82
    ewww_image_optimizer_webp_quality()
    effective WebP quality: 75
    parallel optimization: off
    background optimization: on
    scheduled optimization: off
    include media library: off
    include originals: off
    folders to optimize:
    
    folders to ignore:
    
    skip images smaller than: bytes
    skip PNG images larger than: bytes
    exclude originals from lossy: off
    exclude originals from metadata removal: off
    use system binaries: no
    resize detection: off
    max media dimensions: 1920 x 1920
    max other dimensions: x
    resize existing images: on
    resize existing (non-media) images: off
    ewww_image_optimizer_get_image_sizes()
    sizes: thumbnail
    medium
    medium_large
    large
    1536x1536
    2048x2048
    Array
    (
    [thumbnail] => Array
    (
    [width] => 150
    [height] => 150
    [crop] => 1
    )
    [medium] => Array
    (
    [width] => 300
    [height] => 300
    [crop] =>
    )
    [medium_large] => Array
    (
    [width] => 768
    [height] => 9999
    [crop] =>
    )
    [large] => Array
    (
    [width] => 1024
    [height] => 1024
    [crop] =>
    )
    [1536x1536] => Array
    (
    [width] => 1536
    [height] => 1536
    [crop] =>
    )
    [2048x2048] => Array
    (
    [width] => 2048
    [height] => 2048
    [crop] =>
    )
    [pdf-full] => Array
    (
    [width] => 99999
    [height] => 99999
    [crop] =>
    )
    )
    
    disabled sizes:
    thumbnail: optimization=+ creation=+
    medium: optimization=+ creation=+
    medium_large: optimization=+ creation=+
    large: optimization=+ creation=+
    1536x1536: optimization=+ creation=+
    2048x2048: optimization=+ creation=+
    pdf-full: optimization=+ creation=+
    delete originals: off
    jpg2png: off
    png2jpg: off
    gif2png: off
    png2jpg fill:
    ewww_image_optimizer_jpg_background()
    webp conversion: on
    js webp rewriting: off
    picture webp rewriting: on
    WebP Rewrite exclusions:
    
    webp paths:
    
    forced webp: off
    forced gif2webp: on
    enable help beacon: no
    origin (SERVER_ADDR): 178.62.62.245
    found Cloudflare host via HTTP_CF_IPCOUNTRY
    max_execution_time: 360
    ewww_image_optimizer_stl_check()
    disable_functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
    detected memory limit is: 268435456
    
    • This reply was modified 2 years, 8 months ago by mburdett555.
    Plugin Support adamewww

    (@adamewww)

    OK, so it’s probable then that the file size is just not smaller than the original. If you want, you can verify this by finding the specific file in your media library (in list mode), checking the box next to it and then selecting “Bulk Optimizer” from the drop down at the top. In the Bulk Optimize window, select the option on the right for “Force Re-optimize” and “WebP Only”, then run the optimization. It will try to generate a WebP for that image and, if it doesn’t, it should say why.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Some images webp version not being created’ is closed to new replies.