Title: Modern Image Formats
Author: WordPress Performance Team
Published: <strong>6 Tháng 4, 2023</strong>
Last modified: 9 Tháng 1, 2026

---

Tìm kiếm plugin

![](https://ps.w.org/webp-uploads/assets/banner-772x250.png?rev=3098226)

![](https://ps.w.org/webp-uploads/assets/icon.svg?rev=3098226)

# Modern Image Formats

 Bởi [WordPress Performance Team](https://profiles.wordpress.org/performanceteam/)

[Tải về](https://downloads.wordpress.org/plugin/webp-uploads.2.6.1.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/webp-uploads/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/webp-uploads/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/webp-uploads/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/webp-uploads/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/webp-uploads/)

## Mô tả

This plugin adds WebP and AVIF support for media uploads within the WordPress application.
By default, AVIF images will be generated if supported on the hosting server, otherwise
WebP will be used as the output format. When both formats are available, the output
format can be selected under `Settings > Media`. Modern images will be generated
only for new uploads, pre-existing images will only converted to a modern format
if images are regenerated. Images can be regenerated with a plugin like [Regenerate Thumbnails](https://wordpress.org/plugins/regenerate-thumbnails/)
or via WP-CLI with the `wp media regenerate` [command](https://developer.wordpress.org/cli/commands/media/regenerate/).

By default, only modern image format sub-sizes will be generated for JPEG or PNG
uploads – only the original uploaded file will still exist as a JPEG/PNG image, 
generated image sizes will be WebP or AVIF files. To change this behavior, there
is a checkbox in `Settings > Media` “Output fallback images” that – when checked–
will result in the plugin generating both the original format as well as WebP or
AVIF images for every sub-size (noting again that this will only affect newly uploaded
images, i.e. after making said change).

_Plugin này trước đây được gọi là Tải lên WebP._

## Cài đặt

#### Cài đặt từ trong WordPress

 1. Hãy truy cập **Plugin > Thêm mới**.
 2. Tìm kiếm **Modern Image Formats**.
 3. Cài đặt và kích hoạt plugin **Modern Image Formats**.

#### Cài đặt thủ công

 1. Tải lên toàn bộ thư mục `webp-uploads` vào thư mục `/wp-content/plugins/`.
 2. Truy cập **Plugin**.
 3. Kích hoạt plugin **Modern Image Formats**.

#### After activation

 1. Visit the **Settings > Media** admin screen.
 2. Use the controls in the **Modern Image Formats** section to configure modern image
    formats.

## Hỏi đáp

### Tôi có thể gửi phản hồi về plugin của mình ở đâu?

Phản hồi được khuyến khích và đánh giá cao, đặc biệt là vì plugin này có thể chứa
các tính năng cốt lõi của WordPress trong tương lai. Nếu bạn có đề xuất hoặc yêu
cầu về các tính năng mới, bạn có thể [gửi chúng dưới dạng một sự cố trong kho lưu trữ GitHub của Nhóm Hiệu suất WordPress](https://github.com/WordPress/performance/issues/new/choose).
Nếu bạn cần trợ giúp về khắc phục sự cố hoặc có câu hỏi về plugin, vui lòng [tạo một chủ đề mới trên diễn đàn hỗ trợ của chúng tôi](https://wordpress.org/support/plugin/webp-uploads/#new-topic-0).

### Tôi có thể báo cáo lỗi bảo mật ở đâu?

Nhóm Hiệu suất và cộng đồng WordPress rất coi trọng các lỗi bảo mật. Chúng tôi đánh
giá cao nỗ lực của bạn trong việc tiết lộ một cách có trách nhiệm những phát hiện
của mình và sẽ nỗ lực hết sức để ghi nhận những đóng góp của bạn.

Để báo cáo sự cố bảo mật, vui lòng truy cập chương trình [WordPress HackerOne](https://hackerone.com/wordpress).

### Làm cách nào tôi có thể đóng góp cho plugin?

Luôn chào đón sự đóng góp! Tìm hiểu thêm về cách tham gia vào [Cẩm nang Nhóm Hiệu suất Cốt lõi](https://make.wordpress.org/performance/handbook/get-involved/).

### Tôi đã kích hoạt plugin Modern Image Formats, nhưng hình ảnh WebP không phải lúc nào cũng được tạo khi tôi tải lên hình ảnh JPEG. Tại sao?

Có hai lý do chính khiến hình ảnh WebP có thể không được tạo:

 1. Plugin Modern Image Formats đã xác định rằng phiên bản WebP của hình ảnh JPEG được
    tải lên sẽ có kích thước tệp lớn hơn hình ảnh JPEG gốc, vì vậy nó không tạo phiên
    bản WebP.
 2. Hình ảnh JPEG không được tải lên [Thư viện Phương tiện](https://wordpress.com/support/media/).
    Tại thời điểm này, phiên bản WebP chỉ được tạo cho hình ảnh cho Thư viện Phương
    tiện. Phiên bản WebP không được tạo cho hình ảnh JPEG được thêm vào trang web của
    bạn theo các cách khác, chẳng hạn như trong tệp mẫu hoặc [Trình tùy chỉnh](https://wordpress.com/support/customizer/).

### Với plugin Modern Image Formats được kích hoạt, plugin có tạo phiên bản JPEG và WebP của mọi hình ảnh tôi tải lên không?

Theo mặc định, plugin Modern Image Formats sẽ chỉ tạo phiên bản WebP của hình ảnh
bạn tải lên. Nếu bạn muốn tạo cả hai phiên bản WebP **và** JPEG, bạn có thể điều
hướng đến **Cài đặt > Media** và bật tùy chọn **Tạo tệp JPEG ngoài WebP**.

## Đánh giá

![](https://secure.gravatar.com/avatar/80e914c33cfcb58bb025742ce294e1d12f214079d7e14ac31b35e24477c06eda?
s=60&d=retro&r=g)

### 󠀁[Funktioniert wie beschrieben – Heimvorteil weil von WordPress entwickelt](https://wordpress.org/support/topic/funktioniert-wie-beschrieben-heimvorteil-weil-von-wordpress-entwickelt/)󠁿

 [lacoste89](https://profiles.wordpress.org/lacoste89/) 22 Tháng 3, 2026

Ich nutze dieses Plugin auf allen neuen Webseiten, damit Bilder automatisch nach
AVIF konvertiert werden. Es funktionierte bisher immer ohne Probleme, deshalb kann
ich es uneingeschränkt empfehlen. Ich hoffe es wird bald auch direkt in den WordPress
Core übernommen.

![](https://secure.gravatar.com/avatar/92b7d005d1ba6b94b4e69814a40933f600fdcdcb097f2e1b5e4ae23d53535ee0?
s=60&d=retro&r=g)

### 󠀁[Doesn’t work, support not helpful](https://wordpress.org/support/topic/doesnt-work-support-not-helpful/)󠁿

 [primerpizza](https://profiles.wordpress.org/primerpizza/) 15 Tháng 12, 2025 2 
trả lời

Been trying to get this thing to work but it just wont serve the generated images.
Support stopped replying.

![](https://secure.gravatar.com/avatar/59b7515a7f9777abdad9c4840dac6840c596b9cf94a60bfef5222a5afaef8e6e?
s=60&d=retro&r=g)

### 󠀁[compression?](https://wordpress.org/support/topic/compression-6/)󠁿

 [pdjp](https://profiles.wordpress.org/pdjp/) 9 Tháng 12, 2025 5 trả lời

Good plugin, but no option to set the WebP compression value. What compression is
used here?

![](https://secure.gravatar.com/avatar/8ac685e8921cd7f33441b7099600fbe6cc87013ca810162ae2415a8a686bf8bb?
s=60&d=retro&r=g)

### 󠀁[causes an Irreversible damage to your Media library NEEDS and Explicit warning](https://wordpress.org/support/topic/causes-an-irreversible-damage-to-your-media-library-needs-and-explicit-warning/)󠁿

 [faospark](https://profiles.wordpress.org/faospark/) 15 Tháng 10, 2025

Its been years since I had a terrible experience in this eco system UP UNTIL this
one. The plugin needs to warn users that once youve regenerated post thumbnails 
and complete entire process is complete even if you deactivate the plugin wordpress
will would force you to use tha Avif or webp version of your images. in which a 
lot of cases will break site. And one would think you can reverse nope that is not
case. I had to result to using a back up data base to restore content. I have about
10K images that includes is variable sizes and variable formats on 2 websites . 
I Have ZERO plans to figure out which is a jpg and png on those let alone re attach
them. There is no official wordpress to manually restore them. This plugin needs
to be further improved.

![](https://secure.gravatar.com/avatar/222ae0c7209b2c1624b3560bd96c1d68900cdfcfd41495610c5da40ab7447079?
s=60&d=retro&r=g)

### 󠀁[Good one](https://wordpress.org/support/topic/good-one-623/)󠁿

 [nmask](https://profiles.wordpress.org/nmask/) 2 Tháng 9, 2025

Nice light plugin, does what is says.

![](https://secure.gravatar.com/avatar/488fa9427cd9420d96a8a423f6186e0ab7c14865020ae2432ec789472b70f38f?
s=60&d=retro&r=g)

### 󠀁[So far so good!](https://wordpress.org/support/topic/so-far-so-good-1276/)󠁿

 [Masoud Golchin](https://profiles.wordpress.org/masoudin/) 8 Tháng 8, 2025

Thanks for developing this plugin!It’s my #1 plugin for image optimization!

 [ Đọc tất cả 22 đánh giá ](https://wordpress.org/support/plugin/webp-uploads/reviews/)

## Người đóng góp & Lập trình viên

“Modern Image Formats” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

 *   [ WordPress Performance Team ](https://profiles.wordpress.org/performanceteam/)
 *   [ WordPress.org ](https://profiles.wordpress.org/wordpressdotorg/)

“Modern Image Formats” đã được dịch qua 15 ngôn ngữ. Cảm ơn [những người tham gia dịch](https://translate.wordpress.org/projects/wp-plugins/webp-uploads/contributors)
vì đóng góp của họ.

[Dịch “Modern Image Formats” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/webp-uploads)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/webp-uploads/), check out
[SVN repository](https://plugins.svn.wordpress.org/webp-uploads/), hoặc theo dõi
[nhật ký phát triển](https://plugins.trac.wordpress.org/log/webp-uploads/) qua [RSS](https://plugins.trac.wordpress.org/log/webp-uploads/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 2.6.1

**Sửa lỗi**

 * Add a simple PHP version check around a deprecated function. ([2285](https://github.com/WordPress/performance/pull/2285))
 * Fix missing `PICTURE` element support for post thumbnail and add missing Modern
   Image Formats support for Widget block. ([2179](https://github.com/WordPress/performance/pull/2179))

#### 2.6.0

**Sửa lỗi**

 * Use modern image formats in background images for Cover blocks and Group blocks.(
   [2121](https://github.com/WordPress/performance/pull/2121))
 * Fixes palette-based PNG uploads failing original full-size AVIF/WebP conversion
   under GD. ([2024](https://github.com/WordPress/performance/pull/2024))

#### 2.5.1

**Sửa lỗi**

 * Fix Modern Image Format not cropping image if crop is an array. ([1887](https://github.com/WordPress/performance/pull/1887))
 * Fix incorrect image size selection in `PICTURE` element. ([1885](https://github.com/WordPress/performance/pull/1885))

#### 2.5.0

**Cải tiến**

 * Switch to `wp_content_img_tag` filter for improved image handling. ([1772](https://github.com/WordPress/performance/pull/1772))

#### 2.4.0

**Cải tiến**

 * Automatically opt into 1536×1536 and 2048×2048 sizes when generating fallback
   images. ([1679](https://github.com/WordPress/performance/pull/1679))
 * Convert WebP to AVIF on upload. ([1724](https://github.com/WordPress/performance/pull/1724))
 * Enable end user opt-in to generate all sizes in fallback format. ([1689](https://github.com/WordPress/performance/pull/1689))

#### 2.3.0

**Cải tiến**

 * Introduce `webp_uploads_get_file_mime_type` helper function. ([1642](https://github.com/WordPress/performance/pull/1642))
 * Rename `webp_uploads_get_file_mime_type` to `webp_uploads_get_attachment_file_mime_type`
   to clarify scope. ([1662](https://github.com/WordPress/performance/pull/1662))

**Sửa lỗi**

 * Fix bug that would prevent uploaded images from being converted to the intended
   output format when having fallback formats enabled. ([1635](https://github.com/WordPress/performance/pull/1635))

#### 2.2.0

**Cải tiến**

 * Convert uploaded PNG files to AVIF or WebP. ([1421](https://github.com/WordPress/performance/pull/1421))

**Sửa lỗi**

 * Account for responsive images being disabled when generating a PICTURE element.(
   [1449](https://github.com/WordPress/performance/pull/1449))

#### 2.1.0

**Cải tiến**

 * Improve disabling checkbox for Picture Element on Media settings screen. ([1470](https://github.com/WordPress/performance/pull/1470))

**Sửa lỗi**

 * Add missing full size image in PICTURE > SOURCE srcset. ([1437](https://github.com/WordPress/performance/pull/1437))
 * Correct the fallback image in PICTURE element. ([1408](https://github.com/WordPress/performance/pull/1408))
 * Don’t wrap PICTURE element if JPEG fallback is not available. ([1450](https://github.com/WordPress/performance/pull/1450))
 * Fix setting sizes attribute on PICTURE > SOURCE elements. ([1354](https://github.com/WordPress/performance/pull/1354))
 * Remove string type hint from webp_uploads_sanitize_image_format() to prevent 
   possible fatal error. ([1410](https://github.com/WordPress/performance/pull/1410))

**Tài liệu**

 * Explain how to regenerate images in the Modern Image Formats readme. ([1348](https://github.com/WordPress/performance/pull/1348))

#### 2.0.2

**Cải tiến**

 * I18N: Thêm ngữ cảnh vào tiêu đề phần Modern Image Formats. ([1287](https://github.com/WordPress/performance/pull/1287))

**Sửa lỗi**

 * Cải thiện khả năng tương thích của các phần tử hình ảnh tạo kiểu. ([1307](https://github.com/WordPress/performance/pull/1307))

#### 2.0.1

**Sửa lỗi**

 * Khắc phục lỗi nghiêm trọng khi một lệnh gọi lại bộ lọc the_content khác trả về
   null thay vì chuỗi. ([1283](https://github.com/WordPress/performance/pull/1283))

#### 2.0.0

**Tính năng**

 * Thêm hỗ trợ phần tử `picture`. ([73](https://github.com/WordPress/performance/pull/73))
 * Thêm hỗ trợ định dạng hình ảnh AVIF. Thêm cài đặt cho định dạng hình ảnh đầu 
   ra để chọn giữa WebP và AVIF. ([1176](https://github.com/WordPress/performance/pull/1176))

**Cải tiến**

 * Cải thiện Cài đặt->Điều khiển phương tiện cho Modern Image Formats. ([1273](https://github.com/WordPress/performance/pull/1273))
 * Xóa tập lệnh dự phòng lỗi thời vì phần tử hình ảnh đã được hỗ trợ. ([1269](https://github.com/WordPress/performance/pull/1269))

#### 1.1.1

**Cải tiến**

 * Thêm liên kết Cài đặt trong webp-uploads. ([1146](https://github.com/WordPress/performance/pull/1146))
 * Cải thiện chất lượng mã tổng thể với các kiểm tra phân tích tĩnh nghiêm ngặt 
   hơn. ([775](https://github.com/WordPress/performance/issues/775))
 * Nâng yêu cầu PHP tối thiểu lên 7.2. ([1130](https://github.com/WordPress/performance/pull/1130))

**Tài liệu**

 * Đã cập nhật tài liệu nội tuyến. ([1160](https://github.com/WordPress/performance/pull/1160))

#### 1.1.0

 * Thêm liên kết đến cài đặt WebP vào bảng plugin. ([1036](https://github.com/WordPress/performance/pull/1036))
 * Đổi tên plugin thành “Modern Image Formats”. ([1101](https://github.com/WordPress/performance/pull/1101))
 * Sử dụng tên ngắn của plugin cho thẻ trình tạo. ([1103](https://github.com/WordPress/performance/pull/1103))
 * Xóa tùy chọn khi gỡ cài đặt plugin Modern Image Formats. ([1116](https://github.com/WordPress/performance/pull/1116))
 * Nâng phiên bản WP tối thiểu bắt buộc lên 6.4. ([1062](https://github.com/WordPress/performance/pull/1062))
 * Cập nhật phiên bản WordPress đã thử nghiệm lên 6.5. ([1027](https://github.com/WordPress/performance/pull/1027))

#### 1.0.5

 * Loại trừ thư mục “.wordpress-org” khi triển khai plugin độc lập. ([866](https://github.com/WordPress/performance/pull/866))

#### 1.0.4

 * Nâng phiên bản PHP tối thiểu bắt buộc lên 7.0 và phiên bản WP tối thiểu bắt buộc
   lên 6.3. ([851](https://github.com/WordPress/performance/pull/851))

#### 1.0.3

 * Thêm tài sản plugin độc lập. ([815](https://github.com/WordPress/performance/pull/815))

#### 1.0.2

 * Khắc phục xử lý WebP khi chỉnh sửa hình ảnh dựa trên thay đổi WordPress 6.3. (
   [796](https://github.com/WordPress/performance/pull/796))

#### 1.0.1

 * Nâng phiên bản đã thử nghiệm lên 6.3. ([772](https://github.com/WordPress/performance/pull/772))

#### 1.0.0

 * Phát hành lần đầu plugin Modern Image Formats dưới dạng plugin độc lập. ([664](https://github.com/WordPress/performance/pull/664))

## Plugin cộng đồng

Plugin này được phát triển và hỗ trợ bởi một cộng đồng. [Đóng góp cho plugin này](https://github.com/WordPress/performance)

## Meta

 *  Phiên bản **2.6.1**
 *  Cập nhật lần cuối **3 tháng trước**
 *  Số lượt cài đặt **100.000+**
 *  Phiên bản WordPress ** 6.6 hoặc cao hơn **
 *  Đã kiểm tra lên đến **6.9.4**
 *  Phiên bản PHP ** 7.2 hoặc cao hơn **
 *  Ngôn ngữ
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/webp-uploads/), [Dutch](https://nl.wordpress.org/plugins/webp-uploads/),
   [Dutch (Belgium)](https://nl-be.wordpress.org/plugins/webp-uploads/), [English (US)](https://wordpress.org/plugins/webp-uploads/),
   [German](https://de.wordpress.org/plugins/webp-uploads/), [Japanese](https://ja.wordpress.org/plugins/webp-uploads/),
   [Korean](https://ko.wordpress.org/plugins/webp-uploads/), [Norwegian (Bokmål)](https://nb.wordpress.org/plugins/webp-uploads/),
   [Persian](https://fa.wordpress.org/plugins/webp-uploads/), [Portuguese (Brazil)](https://br.wordpress.org/plugins/webp-uploads/),
   [Portuguese (Portugal)](https://pt.wordpress.org/plugins/webp-uploads/), [Spanish (Chile)](https://cl.wordpress.org/plugins/webp-uploads/),
   [Spanish (Spain)](https://es.wordpress.org/plugins/webp-uploads/), [Swedish](https://sv.wordpress.org/plugins/webp-uploads/),
   [Turkish](https://tr.wordpress.org/plugins/webp-uploads/), và [Vietnamese](https://vi.wordpress.org/plugins/webp-uploads/).
 *  [Dịch sang ngôn ngữ của bạn](https://translate.wordpress.org/projects/wp-plugins/webp-uploads)
 * Thẻ
 * [AVIF](https://vi.wordpress.org/plugins/tags/avif/)[images](https://vi.wordpress.org/plugins/tags/images/)
   [performance](https://vi.wordpress.org/plugins/tags/performance/)[webp](https://vi.wordpress.org/plugins/tags/webp/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/webp-uploads/advanced/)

## Đánh giá

 3.3 trên 5 sao.

 *  [  12 5-star reviews     ](https://wordpress.org/support/plugin/webp-uploads/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/webp-uploads/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/webp-uploads/reviews/?filter=3)
 *  [  1 2-star review     ](https://wordpress.org/support/plugin/webp-uploads/reviews/?filter=2)
 *  [  9 1-star reviews     ](https://wordpress.org/support/plugin/webp-uploads/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/webp-uploads/reviews/#new-post)

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/webp-uploads/reviews/)

## Những người đóng góp

 *   [ WordPress Performance Team ](https://profiles.wordpress.org/performanceteam/)
 *   [ WordPress.org ](https://profiles.wordpress.org/wordpressdotorg/)

## Hỗ trợ

Các lỗi đã xử lý trong vòng hai tháng gần đây:

     2 trên 4

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/webp-uploads/)