Can be used for shortcodes?
-
I guess most likely not, but just in case..
Something like:
echo get_webpmedia_html(do_shortcode( get_field('shortcode_image_gallery_envira') ); ?>
- This topic was modified 3 years, 10 months ago by snippet24.
-
In this case it would be to use Webp images in “Envira galleries”, or also I in the past used it to add lazysizes for images inside a shortcode for a bootstrap carousel, with the following lines:
<?php echo get_lazysizes_html(do_shortcode("[twabc-carousel ]")); ?>
There is no need. WebP format images are loaded when the browser attempts to load the original image. The plugin does not change the URLs to images, so shortocode does not make sense.
Please read the plugin description and FAQ to find out exactly how it works.
You are completely right I apologize, question then: how should webp images be used along with envira gallery plugin/for envira galleries?
The plugin supports images from the media library. However, it will soon support other images, e.g. those generated by other plugins.
If you want, you can test the beta version:
https://gbiorczyk.pl/webp-converter-for-media-v1.2.8.zipI will be very grateful for all suggestions.
Understood.
If you want, you can test the beta version:
Sure, may take me a while to download the latest backup and install it locally but I should test it today π
Okey It throws an error when trying to install: “The folder already exists”
“The installation of the plugin has failed”
Will try completely removing and then installing it.
Edit: after completely removing it, it gets installed- This reply was modified 3 years, 10 months ago by snippet24.
You cannot install the plugin a second time once you have the old one installed. Delete the old one and install the new one or disable the older version, then delete the files via FTP and upload the new files. And finally turn on the plugin.
Possible improvements so far:
1. Add cancel button to current regeneration/conversion.
2. Also include in the log the skipped & successful conversions and perhaps add the saved weight per image.
3. The checkbox on the left of the “Force convert all images again” doesn’t toggle upon click, though clicking on the text toggles the state of it.You cannot install the plugin a second time once you have the old one installed.
That does mean when deleting the old installation, that images need to be converted again or settings are lost? How will it work on automatic upgrades?
Also not sure how to interpret the following but I’m posting in case it is useful oj I have so far included the “uploads” and “theme” conversion, I have yet to try the “plugins” folder, I’m testing it next
https://drive.google.com/file/d/1MrwJbYYc8IMVpbQ1KS5gR32FvwJF2s5a/view?usp=sharing- This reply was modified 3 years, 10 months ago by snippet24.
Okey here at least (local installation) is working great!!! π
Tomorrow may do some more tests but seems to be working just fine.
RegardsThank you for your ideas and tests. I am very happy that the plugin works. Let me address your ideas:
1. I think this is not very useful. If you want to stop the operation, you simply close the browser window.
2. I don’t want to add incriminating stuff to the plugin because each additional operation is slowing down, and I care about performance and simplicity.
3. You are right, I have already corrected it.
4. The problem with loading these files is because it is loaded by a JS file, not strictly by the browser. Does everything work without this plugin?Thank you for your ideas and tests.
Thank you!!
About 1. Yes, but some plugins can cause problems when doing that, hence I did reload it but only because it was on a test installation, perhaps is better to be obvious?
2. I donβt want to add incriminating stuff to the plugin because each additional operation is slowing down, and I care about performance and simplicity.
Understood.
Does everything work without this plugin?
Without Autoptimize plugin active? If yes I get this
https://drive.google.com/file/d/1ccpvh1M-whZAgmJMdjgBwEyD9TNkueOv/view?usp=sharing
and since it reports in the transferred column “cached” I deleted the cache/cookies and after that the result is this
https://drive.google.com/file/d/1PVoxu_gxFNuUdCD-9DLk9QEXgFJ-onZU/view?usp=sharingI understand that everything works now? Do you have any other ideas?
I would say almost yes, for some reason is not working on all images on this following page, which are set from whithin the WYSIWYG WordPress Editor:
https://drive.google.com/file/d/190ZCKzpFgBTFWWIxjoOED1kR1H3ow6dI/view?usp=sharing
Edit: I realize maybe that wasn’t the best way to insert them (this was my first website)- This reply was modified 3 years, 10 months ago by snippet24.
- The topic ‘Can be used for shortcodes?’ is closed to new replies.