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
-
Best tools for upgrading a Windows 10 to an 11
by
Susan Bradley
1 hour, 42 minutes ago -
The end of Windows 10 is approaching, consider Linux and LibreOffice
by
Alex5723
2 hours, 42 minutes ago -
Extended Windows Built-in Disk Cleanup Utility
by
bbearren
3 hours, 52 minutes ago -
Win 11 24H2 June 2025 Update breaks WIFI
by
dportenlanger
14 hours, 49 minutes ago -
Update from WinPro 10 v. 1511 on T460p?
by
CatoRenasci
4 hours, 22 minutes ago -
System Restore and Updates Paused
by
veteran
17 hours, 20 minutes ago -
Windows 10/11 clock app
by
Kathy Stevens
4 hours, 26 minutes ago -
Turn off right-click draw
by
Charles Billow
20 hours, 34 minutes ago -
Introducing ChromeOS M137 to The Stable Channel
by
Alex5723
1 day ago -
Brian Wilson (The Beach Boys) R.I.P
by
Alex5723
2 hours ago -
Master patch listing for June 10, 2025
by
Susan Bradley
1 day, 1 hour ago -
Suggestions for New All in One Printer and a Photo Printer Windows 10
by
Win7and10
4 hours, 34 minutes ago -
Purchasing New Printer. Uninstall old Printer Software First?
by
Win7and10
1 day, 7 hours ago -
KB5060842 Issue (Minor)
by
AC641
1 day, 12 hours ago -
EchoLeak : Zero Click M365 Copilot leak sensitive information
by
Alex5723
1 day, 14 hours ago -
24H2 may not be offered June updates
by
Susan Bradley
7 hours, 25 minutes ago -
Acronis : Tracking Chaos RAT’s evolution (Windows, Linux)
by
Alex5723
2 days, 3 hours ago -
June 2025 updates are out
by
Susan Bradley
1 hour, 52 minutes ago -
Mozilla shutting Deep Fake Detector
by
Alex5723
2 days, 18 hours ago -
Windows-Maintenance-Tool (.bat)
by
Alex5723
2 days, 3 hours ago -
Windows 11 Insider Preview build 26200.5641 released to DEV
by
joep517
2 days, 20 hours ago -
Windows 11 Insider Preview build 26120.4250 (24H2) released to BETA
by
joep517
2 days, 20 hours ago -
Install Office 365 Outlook classic on new Win11 machine
by
WSrcull999
2 days, 20 hours ago -
win 10 to win 11 with cpu/mb replacement
by
aquatarkus
2 days, 12 hours ago -
re-install Windows Security
by
CWBillow
2 days, 23 hours ago -
WWDC 2025 Recap: All of Apple’s NEW Features in 10 Minutes!
by
Alex5723
3 days, 3 hours ago -
macOS Tahoe 26
by
Alex5723
2 days, 21 hours ago -
Migrating from win10 to win11, instructions coming?
by
astro46
12 hours, 32 minutes ago -
Device Eligibility for Apple 2026 Operating Systems due this Fall
by
PKCano
2 days, 12 hours ago -
Recommended watching : Mountainhead movie
by
Alex5723
2 days, 13 hours 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.