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
Manager -
satrow
AskWoody MVPMay 15, 2023 at 2:07 pm #2559476Movie test
Video PlayerMedia error: Format(s) not supported or source(s) not found
Download File: https://www.askwoody.com/wp-content/uploads/2023/05/Schlossbergbahn.webm?_=1 -
Susan Bradley
Manager
-
-
Susan Bradley
Manager -
Susan Bradley
Manager -
Susan 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
-
Moving fwd, Win 11 Pro,, which is best? Lenovo refurb
by
Deo
1 hour, 50 minutes ago -
DBOS Advanced Network Analysis
by
Kathy Stevens
7 hours, 37 minutes ago -
Microsoft Edge Launching Automatically?
by
healeyinpa
1 hour, 27 minutes ago -
Google Chrome to block admin-level browser launches for better security
by
Alex5723
10 hours, 17 minutes ago -
iPhone SE2 Stolen Device Protection
by
Rick Corbett
2 hours, 33 minutes ago -
Some advice for managing my wireless internet gateway
by
LHiggins
41 minutes ago -
NO POWER IN KEYBOARD OR MOUSE
by
HE48AEEXX77WEN4Edbtm
4 hours, 29 minutes ago -
A CVE-MITRE-CISA-CNA Extravaganza
by
Nibbled To Death By Ducks
19 hours, 46 minutes ago -
Sometimes I wonder about these bots
by
Susan Bradley
16 hours, 4 minutes ago -
Does windows update component store “self heal”?
by
Mike Cross
6 hours, 6 minutes ago -
Windows 11 Insider Preview build 27858 released to Canary
by
joep517
1 day, 9 hours ago -
Pwn2Own Berlin 2025: Day One Results
by
Alex5723
1 day, 9 hours ago -
Windows 10 might repeatedly display the BitLocker recovery screen at startup
by
Susan Bradley
6 hours, 22 minutes ago -
Windows 11 Insider Preview Build 22631.5409 (23H2) released to Release Preview
by
joep517
1 day, 12 hours ago -
Windows 10 Build 19045.5912 (22H2) to Release Preview Channel
by
joep517
1 day, 12 hours ago -
Kevin Beaumont on Microsoft Recall
by
Susan Bradley
1 day, 1 hour ago -
The Surface Laptop Studio 2 is no longer being manufactured
by
Alex5723
1 day, 20 hours ago -
0Patch, where to begin
by
cassel23
1 day, 14 hours ago -
CFPB Quietly Kills Rule to Shield Americans From Data Brokers
by
Alex5723
2 days, 10 hours ago -
89 million Steam account details just got leaked,
by
Alex5723
1 day, 21 hours ago -
KB5058405: Linux – Windows dual boot SBAT bug, resolved with May 2025 update
by
Alex5723
2 days, 18 hours ago -
A Validation (were one needed) of Prudent Patching
by
Nibbled To Death By Ducks
2 days, 9 hours ago -
Master Patch Listing for May 13, 2025
by
Susan Bradley
1 day, 20 hours ago -
Installer program can’t read my registry
by
Peobody
13 hours, 39 minutes ago -
How to keep Outlook (new) in off position for Windows 11
by
EspressoWillie
2 days, 7 hours ago -
Intel : CVE-2024-45332, CVE-2024-43420, CVE-2025-20623
by
Alex5723
2 days, 14 hours ago -
False error message from eMClient
by
WSSebastian42
3 days, 5 hours ago -
Awoke to a rebooted Mac (crashed?)
by
rebop2020
3 days, 14 hours ago -
Office 2021 Perpetual for Mac
by
rebop2020
3 days, 16 hours ago -
AutoSave is for Microsoft, not for you
by
Will Fastie
13 hours, 44 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.