MyBBHacks.com Plugins for MyBB

Full Version: New image format support .webp
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Can you add support for uploading .webp format? MyBB's default img bbcode can handle that format as you can see below.
[Image: 3boats.webp]

It can reduse disk space and bw usage insanly
Looks like it might be possible can you share/upload some examples images.
accually https://www.mybbhacks.com/ezgallery.php?...view&id=22 its possible on here but it says
Code:
Please correct the following errors before continuing:

Not a valid picture file.
on my site

------edit------
it converted webp to bmp in here
Hmm I can't see it. Please attach as an attachment and I will do testing.
i could not attached it becouse its not a valid attachment format by default to mybb. but you can find a webp image on google search
https://ampproject-b5f4c.firebaseapp.com...tains.webp
any news?
Still looking into it.
Downside seems only chrome supports it. Firefox doesn't do anything.
Yes currently firefox does not support it. But modern browsers eventually will add support. we are talking about google's lol. also currently chrome got 60% percent of market according to w3

https://developers.google.com/speed/webp...pport_webp
accualy since i changed my php vers. to 7.2 webp format is now available to use, but ezgallery converts webp file to bmp file when uploaded. how can i disable converting procces?
In the files look for

$extensions = array(
1 => 'gif',
2 => 'jpeg',
3 => 'png',
5 => 'psd',
6 => 'bmp',
7 => 'tiff',
8 => 'tiff',
9 => 'jpeg',
14 => 'iff',
);

Change to


$extensions = array(
1 => 'gif',
2 => 'jpeg',
3 => 'png',
5 => 'psd',
6 => 'bmp',
7 => 'tiff',
8 => 'tiff',
9 => 'jpeg',
14 => 'iff',
18 => 'webp',
);
Pages: 1 2