WebP support in the gallery

  • Posts: 426
  • Thank you received: 19
5 months 2 weeks ago #361368

Hi can you please add WebP support in image gallery. I can upload this type of image, but I can't select already uploaded ones.

Please Log in or Create an account to join the conversation.

  • Posts: 426
  • Thank you received: 19
5 months 2 weeks ago #361369

I figured out how to do it in seconds, via the gallery helper. But it would be great if you add this format as well.

Please Log in or Create an account to join the conversation.

  • Posts: 82823
  • Thank you received: 13370
  • MODERATOR
5 months 2 weeks ago #361370

Hi,

Thank you for your feedback. We'll add this for the next version of HikaShop.
It's actually quite easy to add on your end if you don't want to wait.
Just change the line:

var $extensions = array('jpg', 'jpeg', 'png', 'gif', 'svg');
to:
var $extensions = array('jpg', 'jpeg', 'png', 'gif', 'svg', 'webp');
in the file administrator/components/com_hikashop/helpers/gallery.php

The following user(s) said Thank You: joomleb, neo191987

Please Log in or Create an account to join the conversation.

Time to create page: 0.065 seconds
Powered by Kunena Forum