|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
WebP is an image format developed and first released by Google in 2010. It supports encoding images in both lossless and lossy formats, making it a versatile format for any type of visual media, and a great alternative format to both PNG or JPEG. WebP’s visual quality is often comparable to more ubiquitous formats. This Custom Tag allows you to embed them within your posts in UBB.threads. Example at VNC Web Services. CustomTags.txt <?php
$export_tags = array (
0 =>
array (
'tag' => 'webp',
'descrip' => 'Embed WebP Image',
'prompt' => 'Image URL; eg: https://www.example.com/images/image.webp',
'regex' => '([a-zA-Z0-9-_.&:/]+)',
'markup' => '<img src="\\\\1" style="max-width:100%;">',
),
);
?>
|
|
|
|
Joined: Jan 2000
Posts: 254 Likes: 4
Beta Tester
|
Beta Tester
Joined: Jan 2000
Posts: 254 Likes: 4 |
I knew you could do it Giz. Works perfect. I have one question Why does the name show as [new]Embed WebP Image?
Is there a way to get rid of new?
There is no such thing as stupid questions. Just stupid answers.
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
Because it is a newly imported tag, rename it.
|
|
|
|
Joined: Jan 2000
Posts: 254 Likes: 4
Beta Tester
|
Beta Tester
Joined: Jan 2000
Posts: 254 Likes: 4 |
That is what I did but was confused where the new came from it was not in the import script.
There is no such thing as stupid questions. Just stupid answers.
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
It's just appended through the import process.
|
|
|
|
Joined: Jul 2001
Posts: 1,157 Likes: 82
coffee and code
|
coffee and code
Joined: Jul 2001
Posts: 1,157 Likes: 82 |
Safari failed to open the image but in chrome I noticed the good looking car image. That is an Apple issue. Safari only provides partial support for the WebP image format, and is limited to macOS 11 Big Sur and later. https://caniuse.com/webp
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
Simplifying Isaac's post, Safari doesn't support it; there's nothing wrong with the code.
|
1 member likes this:
isaac |
|
|
|
Joined: Aug 2014
Posts: 14 Likes: 2
Newbie
|
Newbie
Joined: Aug 2014
Posts: 14 Likes: 2 |
Thanks for the info I only posted feedback and now I know. My old Imac use Safari version 11.1.2 (11605.3.8.1). Am using Chrome a lot more nowadays.
Cheers
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 21,079
Joined: March 2000
|
|
Forums63
Topics37,575
Posts293,927
Members13,822
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|