Bỏ qua để đến nội dung
Image optimization Account-wide defaults for how image uploads are resized and re-encoded in the browser before they reach your WordPress sites, plus the per-site server-side optimizer.

Image optimization

Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn.

Image optimization (/settings/images, under Advanced > Site defaults) sets the account-wide default for image uploads made through MZPanel’s media uploader on your WordPress sites. Images are resized and re-encoded in your browser before upload, so files are typically 5 to 10 times smaller and upload faster. Each site can override the default, and the heavier server-side optimizer is configured per site. Available on every plan.

This applies to WordPress media. Other site types and Docker apps don’t use it.

  1. Open Advanced > Site defaults > Image optimization.
  2. Turn on Optimize in the browser and choose:
    • Format: convert uploads to a modern format (Auto (WebP)) or keep the original.
    • Max dimension: scale large images down to fit this width and height.
    • Quality: higher keeps more detail, lower makes smaller files.
  3. Optionally set the defaults for Also optimize on the server: which extra formats to generate (WebP, AVIF) alongside the original, and whether to regenerate WordPress thumbnail sizes after optimizing.

Changes save automatically (“Changes save automatically” confirms it). The settings are stored with your account preferences.

Server-side optimization (WebP and AVIF for every size, the whole media library, and new uploads automatically) is switched on per site from the Optimize button on the site’s Media page, which opens a drawer with an Optimize tab (scan, bulk run, originals) and a Settings tab. It runs on the box through the agent.

The account default is a dashboard preference and has no API operation. The per-site optimizer is a set of jobs you can run with jobs_schema and jobs_create on the site’s server (every plan, MCP or REST):

Job kindWhat it does
wp.images-settingsRead or change a site’s server-side optimization settings
wp.images-scanCount what can be optimized in the media library
wp.images-optimizeOptimize the library (or a batch)
wp.images-stopStop a running optimization
wp.images-restoreRestore originals (the whole library, or one path)
wp.images-purge-originalsDelete kept originals older than olderThan days to free disk (cannot be undone)

Call jobs_schema first for each kind’s fields.