• Resolved snippet24

    (@snippet24)


    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.
Viewing 15 replies - 1 through 15 (of 26 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hi @snippet24,

    Thank you for your message.

    Tell me please, why would such a shortocode be created?

    Thread Starter snippet24

    (@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 ]")); ?>

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    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.

    Thread Starter snippet24

    (@snippet24)

    You are completely right I apologize, question then: how should webp images be used along with envira gallery plugin/for envira galleries?

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    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.zip

    I will be very grateful for all suggestions.

    Thread Starter snippet24

    (@snippet24)

    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 πŸ˜‰

    Thread Starter snippet24

    (@snippet24)

    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.
    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    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.

    Thread Starter snippet24

    (@snippet24)

    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?

    • This reply was modified 3 years, 10 months ago by snippet24.
    • This reply was modified 3 years, 10 months ago by snippet24.
    Thread Starter snippet24

    (@snippet24)

    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.
    Thread Starter snippet24

    (@snippet24)

    Okey here at least (local installation) is working great!!! πŸ™‚
    Tomorrow may do some more tests but seems to be working just fine.
    Regards

    • This reply was modified 3 years, 10 months ago by snippet24.
    • This reply was modified 3 years, 10 months ago by snippet24.
    • This reply was modified 3 years, 10 months ago by snippet24.
    • This reply was modified 3 years, 10 months ago by snippet24.
    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Thank 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?

    Thread Starter snippet24

    (@snippet24)

    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=sharing

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    I understand that everything works now? Do you have any other ideas?

    Thread Starter snippet24

    (@snippet24)

    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.
Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘Can be used for shortcodes?’ is closed to new replies.