I convert webp to png before attaching files.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Can you add webp as valid attachment file type?
Home » Forums » Frequently asked questions, feedback, suggestions » Suggestions about improving the Forum » Can you add webp as valid attachment file type?
- This topic has 22 replies, 4 voices, and was last updated 2 years ago.
Viewing 11 reply threadsAuthorReplies-
Susan Bradley
Manager -
Alex5723
AskWoody Plus
-
Just another Forum Poster
AskWoody LoungerApril 30, 2023 at 7:34 am #2555403I’ve found that a lot of times when you select “save as” for a webp image on a web page it actually gets saved as a jpg image because it’s not really a webp image but simply a jpg image that’s had it’s extension changed from .jpg to .webp.
Also, I attached a true webp image to my post and, if you look below at the Test-image-scaled.webp attachment, you’ll notice it doesn’t display as an actually viewable image but as a “link” to the attached file that you have to click on in order to see it.
On the other hand…
If you copy/paste the “image link” to a webp image from a web page directly into your post…
It displays as expected (FYI, this is the same image I saved and attached below.)
This means our forum software doesn’t support directly displaying attached webp files as actual images (most likely due to the “mime-type” the forum software assigns it) so, if you want your images to be visible “in your posts“, you’ll either have to copy/paste the actual “image link” from whatever web page it’s on into your post or, if it’s from your “local PC“, continue to convert them into an image format that our software can display.
BTW, the “metadata header‘ for the image you attached shows it’s a JFIF type image where it would be WEBPVP8 if it was a webp image.
For Susan,
If it’s possible to set the specific mime-type for attachments, changing .webp to image/webp might allow webp attachments to display as images here on Askwoody.
1 user thanked author for this post.
-
Alex5723
AskWoody PlusApril 30, 2023 at 1:53 pm #2555486Testing
The URL to the not-displayed webp is : https://www.askwoody.com/wp-content/uploads/2023/04/watchos-10-release-date.webp
-
Just another Forum Poster
AskWoody LoungerApril 30, 2023 at 3:54 pm #2555544Your webp isn’t appearing as an image because you “attached” it to your post and, since our Askwoody S/W isn’t assigning it an image mine-type, the “Askwoody link” you attempted to use to display it still treats it as a non-image. In order for a webp to actually appear as an image, it must be assigned an image mime-type.
That means for the copy/paste trick to work, it needs to be displayed as an image on whatever web site you copy the link from, like the webp image I pasted into my above post, so that Askwoody “knows” it’s an image and not just a link to a file.
I know it’s a complicated problem but, unless it’s possible for Susan to change the mime-type Askwoody assigns to webp images, the only solution to posting a webp located on your PC will be either upload it somewhere else on the web where it is displayed as an image and then copy/paste the link to it into your post or convert it into a format that Askwoody does treat as an image.
1 user thanked author for this post.
-
Alex5723
AskWoody PlusMay 1, 2023 at 2:17 am #2555659Your webp isn’t appearing as an image because you “attached” it to your post and, since our Askwoody S/W isn’t assigning it an image mine-type
I am asking to add webp as a image mine-type.
Just another Forum Poster
AskWoody LoungerMay 1, 2023 at 6:30 am #2555684Don’t know if you’ve noticed but, unlike a lot of other forum sites, there is no “insert an image” option in the Askwoody forum toolbar. That’s because it automatically recognizes whether a link you copy/paste into a post is an image or not (that whole mime-type thing again) but the catch is, the mime-type info comes from the server where the link is located and not whether the link ends in .jpg, .png, .gif, .bmp or webp.
However, it’s possible to force an image link to be displayed as an image by using the following bbcode tags.
Code:[img]link to some image[/img]
Note: this trick only works if the link actually is an image! If it’s not, it’ll appear like this.
Note: this is what the above img tags look like if entered without the special code tags to keep the S/W from using the bbcode.
So the webp image you attached above can be displayed as an image in a post here on Askwoody using those tags like this.
Until such time as Susan determines if it’s possible to change the mime-type being assigned to webp attachments to the proper image/webp, this workaround will allow you to display attached webp images in your posts.
Just FYI, because they’re stored online at a site where, even though they’re .gif images, they don’t get assigned an image mime-type, I use this same workaround to insert the special “animated smilies” I occasionally use in some of my posts like this one
or the
one I used in an above post.
BTW, is there some special reason you only attach your images without also using the insert into content option?
I ask because, unless a viewer is actually logged in, they can’t “see” attached images but, regardless of logged in status, everyone can “see” image attachments that have been inserted into the content.
1 user thanked author for this post.
-
Susan Bradley
Manager
Just another Forum Poster
AskWoody LoungerMay 15, 2023 at 12:03 pm #2559435Susan,
You’ll need to add the Allow webp file Upload plugin to WordPress so attached webp images get assigned the proper mime type.
-
Susan Bradley
Manager -
Just another Forum Poster
AskWoody LoungerMay 15, 2023 at 4:30 pm #2559538I downloaded the plugin and unzipped it.
Here’s the code:
Code:<?php /** * Plugin Name: Allow webp file upload * Plugin URI: https://wordtune.me * Description: Install an avtivate this Plugin enable uploading webp files * Author: WordTune * Author URI: https://wordtune.me * Version: 1.0 * License: GPL-2.0+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt **/ add_filter( 'upload_mimes', 'allowwebpupload', 1, 1 ); function allowwebpupload ( $mime_types ) { $mime_types['webp'] = 'image/webp'; return $mime_types; } ?>
It appears all it does is add the proper webp mime type (image/webp) to the allowed uploads list; which “seems” to be why they don’t display when attached to a post.
-
Susan Bradley
Manager
-
-
Susan Bradley
Managersatrow
AskWoody MVP-
Susan Bradley
Manager
Susan Bradley
ManagerSusan Bradley
ManagerSusan Bradley
Manager-
Susan Bradley
ManagerMay 15, 2023 at 5:13 pm #2559561
Just another Forum Poster
AskWoody LoungerMay 16, 2023 at 6:06 am #2559677There is something in the bbpress toolbox that may be blocking this.
They’re not actually being blocked, the forum is accepting .webp as a valid attachment.
The problem is they’re being treated as a file attachment instead of an image attachment.
According to what I found at How to Add Additional File Types to Be Uploaded in WordPress, if you look at Settings » File Upload Types it’ll display exactly what mime type has been assigned for the .webp extension.
If it’s not image/webp, it needs to be changed.
1 user thanked author for this post.
-
Susan Bradley
ManagerMay 16, 2023 at 10:56 am #2559734That’s what I have is that plug in. Trust me I have researched this and know the settings and they are there, the problem is that it’s too new. From Milan:
“WEBP is still not recognized as an image, and that is coming in the next plugin version (GD bbPress Toolbox Pro 7.1, in about 2 weeks). The problem was that WordPress gained full support for WEBP only recently with WP 6.1.”
Besides I thought we didn’t like following what Google does?
Susan Bradley Patch Lady/Prudent patcher
1 user thanked author for this post.
Just another Forum Poster
AskWoody LoungerMay 16, 2023 at 12:10 pm #2559759Besides I thought we didn’t like following what Google does?
Personally, I agree with that sentiment and that’s likely why it’s not really a common image format on most websites.
As for me, except for the animated .gifs I sometimes use in my posts, I always use the .png format when I attach images.
If I need to download a webp image from the web for some reason, I use ImageMagick to convert it into a 24 bit png .
Viewing 11 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
InfoStealer Malware Data Breach Exposed 184 Million Logins and Passwords
by
Alex5723
3 hours, 59 minutes ago -
How well does your browser block trackers?
by
n0ads
4 minutes ago -
You can’t handle me
by
Susan Bradley
37 minutes ago -
Chrome Can Now Change Your Weak Passwords for You
by
Alex5723
2 hours, 16 minutes ago -
Microsoft: Over 394,000 Windows PCs infected by Lumma malware, affects Chrome..
by
Alex5723
15 hours, 22 minutes ago -
Signal vs Microsoft’s Recall ; By Default, Signal Doesn’t Recall
by
Alex5723
2 hours, 55 minutes ago -
Internet Archive : This is where all of The Internet is stored
by
Alex5723
15 hours, 46 minutes ago -
iPhone 7 Plus and the iPhone 8 on Vantage list
by
Alex5723
15 hours, 51 minutes ago -
Lumma malware takedown
by
EyesOnWindows
4 hours, 6 minutes ago -
“kill switches” found in Chinese made power inverters
by
Alex5723
1 day ago -
Windows 11 – InControl vs pausing Windows updates
by
Kathy Stevens
1 day ago -
Meet Gemini in Chrome
by
Alex5723
1 day, 4 hours ago -
DuckDuckGo’s Duck.ai added GPT-4o mini
by
Alex5723
1 day, 4 hours ago -
Trump signs Take It Down Act
by
Alex5723
1 day, 12 hours ago -
Do you have a maintenance window?
by
Susan Bradley
1 hour, 21 minutes ago -
Freshly discovered bug in OpenPGP.js undermines whole point of encrypted comms
by
Nibbled To Death By Ducks
14 hours, 58 minutes ago -
Cox Communications and Charter Communications to merge
by
not so anon
1 day, 16 hours ago -
Help with WD usb driver on Windows 11
by
Tex265
27 minutes ago -
hibernate activation
by
e_belmont
2 days, 1 hour ago -
Red Hat Enterprise Linux 10 with AI assistant
by
Alex5723
2 days, 4 hours ago -
Windows 11 Insider Preview build 26200.5603 released to DEV
by
joep517
2 days, 7 hours ago -
Windows 11 Insider Preview build 26120.4151 (24H2) released to BETA
by
joep517
2 days, 7 hours ago -
Fixing Windows 24H2 failed KB5058411 install
by
Alex5723
1 day, 3 hours ago -
Out of band for Windows 10
by
Susan Bradley
2 days, 12 hours ago -
Giving UniGetUi a test run.
by
RetiredGeek
2 days, 19 hours ago -
Windows 11 Insider Preview Build 26100.4188 (24H2) released to Release Preview
by
joep517
3 days, 3 hours ago -
Microsoft is now putting quantum encryption in Windows builds
by
Alex5723
22 hours, 59 minutes ago -
Auto Time Zone Adjustment
by
wadeer
3 days, 7 hours ago -
To download Win 11 Pro 23H2 ISO.
by
Eddieloh
3 days, 5 hours ago -
Manage your browsing experience with Edge
by
Mary Branscombe
5 hours, 15 minutes ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.