Zee_Dee
Forum Replies Created
-
Excellent Plugin.
That’s exactly what I need.
How to do it?- This reply was modified 5 years, 11 months ago by Zee_Dee.
Yes, it can, after installation and activation plugin first time it converts all my images which were in *.png and *.jpg format into *.webp into the same directory as original images.
And now all my new added images plugin automatically move to the following directory:
public_html/wp-content/uploads-webpc/uploads/home/xxxxxx/public_html/t.tefida.com/2020/06I need that plugin adds converter images to the same directory as the original files with images.
First and the main reason why to do it is the path of images.
—-=Example:=—-
When I add images to the published materials I wrote the next line:
https://tefida.com/t.tefida.com/2020/06/Cyberpunk2077435x435-1.jpg
but when I write https://tefida.com/t.tefida.com/2020/06/Cyberpunk2077435x435-1.jpg.webp it does not works cause image has different path as exactly
public_html/wp-content/uploads-webpc/uploads/home/xxxxxx/public_html/t.tefida.com/2020/06And I cannot use it.
My steps to solve this problem: go to Cpanel and manually move images from the mentioned directory above to the directory with original images. And after that, I can use following path:
https://tefida.com/t.tefida.com/2020/06/Cyberpunk2077435x435-1.jpg.webpHow to make that converter *.webp images save to the same directory with uploaded *.jpg and *.png images?
Regards
MichaelActually don’t, I move all my new converted images to t.tefida.com over Cpanel by manually.
Plugin used the following path for newerly converted images by default:
public_html/wp-content/uploads-webpc/uploads/home/xxxxxx/public_html/t.tefida.com/2020/06I need that newerly converted images were into:
/public_html/t.tefida.com/2020/06Sure, I’ve changed it by myself, and now all my images upload to the t.tefida.com folder, and to this message I attach the screenshot of server configuration.
Regards
Michael- This reply was modified 5 years, 11 months ago by Zee_Dee.
Hello, how to change the path that Webp Plugin used by default to adding converted webp images?
By default Plugin used following path:
public_html/wp-content/uploads-webpc/uploads/home/xxxxxx/public_html/t.tefida.com/2020/06I need the following:
public_html/t.tefida.com/2020/06Regards
MichaelI found an answer but I need your assistance.
Here is the following filter which I should add to end of functions.php page.
Directory path with converted WebP files (relative to the root directory): add_filter('webpc_uploads_webp', function($path) { return 'wp-content/uploads-webpc'; });And I should change the path to:
add_filter('webpc_uploads_webp', function($path) { return 'public_html/t.tefida.com/'; });Am I correct?
Regards
Michael