• Resolved universalmovies

    (@universalmovies)


    Hello,
    I installed your plugin yesterday, I performed automatic image regeneration, and checked the htaccess file. All right.

    But I ask you two questions:

    Are the new images uploaded in jpeg or png automatically converted, or do I always have to do it each time? And if I always have to resort to complete regeneration? (I have many photos, it was very long).

    The second concerns conversion. Why are the images still in jpg on the browser?

    Website: https://www.universalmovies.it

    Thanks

    Frenck

    The page I need help with: [log in to see the link]

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

    (@mateuszgbiorczyk)

    Hi @universalmovies,

    Thank you for your message.

    The plugin automatically compresses images uploaded to WordPress. So you don’t have to regenerate everyone every time.

    Send me the contents of your .htaccess file. Your server meets all the server requirements described in the FAQ?

    Thread Starter universalmovies

    (@universalmovies)

    Hi
    This is my htaccess section Webp:

    # BEGIN WEBPWpFastestCache
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_ACCEPT} image/webp
    RewriteCond %{REQUEST_URI} \.(jpe?g|png)
    RewriteCond %{DOCUMENT_ROOT}/$1.webp -f [or]
    RewriteCond /web/htdocs/www.universalmovies.it/home/$1.webp -f
    RewriteRule ^(.*) “/$1.webp” [L]
    </IfModule>
    <IfModule mod_headers.c>
    Header append Vary Accept env=REDIRECT_accept
    </IfModule>
    AddType image/webp .webp
    # END WEBPWpFastestCache

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hi,

    This is not a code from my plugin.

    Thread Starter universalmovies

    (@universalmovies)

    Ah…

    was the only rule that spoke of webp files

    Checking better then there is no rule regarding your plugin … weird.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Remove other optimization plugins and go to Settings -> Permalinks -> Save Changes.

    Please do not connect several plugins that do the same.

    Thread Starter universalmovies

    (@universalmovies)

    Among the installed plugins of the same kind I only have Smush. Optimize images without converting them.

    I have no other plugins that perform conversion and optimization.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Something has added to your .htaccess file that is not from my plugin.

    Delete this and add the following code:

    # 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}/$1/uploads-webpc/$2.jpg.webp -f
      RewriteRule (.+)/uploads/(.+)\.jpg$ $1/uploads-webpc/$2.jpg.webp [T=image/webp]
      RewriteCond %{HTTP_ACCEPT} image/webp
      RewriteCond %{DOCUMENT_ROOT}/$1/uploads-webpc/$2.jpeg.webp -f
      RewriteRule (.+)/uploads/(.+)\.jpeg$ $1/uploads-webpc/$2.jpeg.webp [T=image/webp]
      RewriteCond %{HTTP_ACCEPT} image/webp
      RewriteCond %{DOCUMENT_ROOT}/$1/uploads-webpc/$2.png.webp -f
      RewriteRule (.+)/uploads/(.+)\.png$ $1/uploads-webpc/$2.png.webp [T=image/webp]
    </IfModule>
    <IfModule mod_expires.c>
      ExpiresActive On
      ExpiresByType image/webp "access plus 1 year"
    </IfModule>
    # END WebP Converter
    Thread Starter universalmovies

    (@universalmovies)

    Then I replaced your code with the one I had pasted to you on the WebP.

    On your side, can you tell if my images are read by the browser in webp files?

    By the way, do you advise me to disable Smush?

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    In Chrome Dev Tools, all images are loaded as WebP.

    I can’t advise you anything. It would be unobjective.

    All I advise you is not to use several plugins for one thing. Choose one.

    Thread Starter universalmovies

    (@universalmovies)

    I see. But does your plugin, in addition to converting images to webp, also optimize them?

    I use Smash just for this, but if your plugin does, I delete the other one, also because in the free version it doesn’t allow many movements.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Converting images to WebP format is the same as optimization because WebP format means reducing the weight of files by 80% relative to JPEG and PNG.

    Thread Starter universalmovies

    (@universalmovies)

    I understand this, but I still don’t see the desired result. I’ll explain with a screenshot:

    Right now I uploaded a new jpeg image, as you told me your plugin automatically optimizes and converts the image into webp, reducing the weight by 80% … so how come I still see it in jpeg, and with the same weight what was on the desktop?

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Where do you see him?

    Thread Starter universalmovies

    (@universalmovies)

    I had sent the screen via e-mail … but it does not allow me to return from there.

    No attachments can be submitted on the WordPress form.

    However, I confirm that the uploaded image has not been converted to webp (it is still jpeg) and has also maintained the same weight.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Can you create a test environment with a copy of the page where I could test it?

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘Conversion to Webp’ is closed to new replies.