ihorsl
Forum Replies Created
-
Forum: Plugins
In reply to: [Opti MozJpeg Guetzli WebP] Some unanswered questions ;)Hi. Thank you for your questions and proposals. I work now on new engine of the plugin, which will not modify urls and will work for non WordPress websites too. The release will be in April. So, please, check updates.
Forum: Plugins
In reply to: [Opti MozJpeg Guetzli WebP] WebP images not showing (in Dev Console)Hi. The client should not see the webp url. But the content should be webp
https://ihorsl.com/wp-content/uploads/2017/11/wpmjgu_brief_man_7-16804807.jpgImages are severed without redirect.
Forum: Plugins
In reply to: [Opti MozJpeg Guetzli WebP] WebP images not showing (in Dev Console)I encountered only these situations when webp duplicates were not severed:
– site was using CloudFlare (images stuck in cache)
– site was using both Apache and nginx. Apache for php and nginx for static files (images). In this case you will need to add url rewrite code to enginx config instead of .htaccessForum: Plugins
In reply to: [Opti MozJpeg Guetzli WebP] Deletes all posts and ImagesI have reviewed your log. Never seen such errors before. I guess the problem is you are using Windows server. I have never tried my plugin on Windows server. I am developing the plugin when I have some free time from my full time job. And it is always lack of free time. There were no donations to plugin.
Forum: Plugins
In reply to: [Opti MozJpeg Guetzli WebP] Deletes all posts and ImagesPlease, attach revert log. At least several attachments
During “WebP duplicates generation” you will get .webp image in addition to every image. For example 1.png + 1.png.webp
You won’t need any special fallback. You can simply delete .webp files.
The webp rewrite rule for .htaccess is :###
# BEGIN Opti MozJpeg Guetzli WebP
###
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_ACCEPT} image/webp
RewriteCond %{REQUEST_URI} .*(jpe?g|png|gif)$
RewriteCond %{REQUEST_FILENAME}\.webp -f
RewriteRule (.*) %{REQUEST_FILENAME}\.webp [T=image/webp,E=accept:1]
</IfModule>
<IfModule mod_headers.c>
Header append Vary Accept env=REDIRECT_accept
</IfModule>
AddType image/webp .webp
###
# END Opti MozJpeg Guetzli WebP
###Forum: Plugins
In reply to: [Opti MozJpeg Guetzli WebP] Deletes all posts and ImagesI guess this is because the plugin renames image files. And it’s not compatible with your site structure. I suggest now to do “Revert everything”. You will get all your images restored. And after do only “WebP duplicates generation”. And your image files won’t be renamed.
Forum: Plugins
In reply to: [Opti MozJpeg Guetzli WebP] Error: WPMJGUERROR: Optimization faild!Issue reporter’s mozjpeg was built without png support. That’s why this problem happened
Forum: Plugins
In reply to: [Opti MozJpeg Guetzli WebP] Can`t connect to ssh serverIn most cases people have private IP if they use router (wifi for example). If you are using wifi router, then simply turn it off and connect your computer directly to the internet with a wire. It is the simplest way.
More complicated way is to configure NAT in your router. You will need to connect to router admin page. It is described in router’s manual. Usually it is web interface. And set up NAT Port Forwarding
YourExternalIP:22 → YourInternalIp:22
Forum: Plugins
In reply to: [Opti MozJpeg Guetzli WebP] faild WPMJGUERROR: Can’t backup imageIt looks like there is a problem with plugin working directory. It should be /var/www/html/wp-content/uploads/opti-mozjpeg-guetzli-webp for your case. Change working directory in plugin settings.
Forum: Plugins
In reply to: [Opti MozJpeg Guetzli WebP] help and manualThank you for your message. There were some problems with my hosting, but now site is working again, so you can check the manual there.
I believe PhotoSwipe will work fine with my plugin, because webp duplicates are serving by Apache, and PhotoSwipe will not notice it, ant therefore there will be no conflict.
As you can see at this picture, webp duplicates are serving in the same urls, as the original images. Because Google Pagespeed really hates http redirects.
https://ihorsl.com/wp-content/uploads/2017/11/wpmjgu_brief_man_7-16804807.jpg
Forum: Plugins
In reply to: [Opti MozJpeg Guetzli WebP] fatal ErrorHi. Thank you for your message. There really was a mistake during last plugin update, file class_wpmjgu_string.php was not included ??
Now I fixed it, and released new plugin version
To resolve your problem delete folder opti-mozjpeg-guetzli-webp from wp-content/plugins/
And reinstall the plugin.
Please, write me if you will have any other problems with plugin. Here is my callback: https://ihorsl.com/en/wordpress-opti-mozjpeg-guetzli-webp/home/#contact
- This reply was modified 6 years, 11 months ago by ihorsl.
Forum: Plugins
In reply to: [Opti MozJpeg Guetzli WebP] Steps neededLaunch your Oracle Virtual Box. Go to (Main menu) -> Machine -> Add and choose the vbox file
Forum: Plugins
In reply to: [Opti MozJpeg Guetzli WebP] Standalone usageVersion 1.01 with wpmjgu_gd_resize_crop filter became stable
Forum: Plugins
In reply to: [Opti MozJpeg Guetzli WebP] Standalone usageYes, sure. Simply connect plugin to your VPS/cloud via ssh. And it will move images temporary to your server, run encoder, and fetch images back to your WordPress.
“ImageMagick Sharpen Resized Images” plugin in not compatible with Opti MozJpeg Guetzli WebP. This plugin is overwriting the final image. As the result, it will destroy optimization.
I have created beta version of the plugin. It is here https://ihorsl.com/redirect.php?t=wpmjgu-beta
I have added “wpmjgu_gd_resize_crop” filter.
apply_filters('wpmjgu_gd_resize_crop', $orig_gd, $dest_max_w, $dest_max_h, $crop, $with_alpha);
You can use this filter to create your own function for resizing and sharpen image, before it will be compressed and stored by Opti MozJpeg Guetzli WebP