[WordPress] 外掛分享: Smart Auto Upload Images – Import External Images

首頁 › 外掛目錄 › Smart Auto Upload Images – Import External Images
WordPress 外掛 Smart Auto Upload Images – Import External Images 的封面圖片
5,000+
安裝啟用
★★★★☆
4.3/5 分(6 則評價)
35 天前
最後更新
100%
問題解決
WordPress 6.2+ PHP 8.0+ v1.3.0 上架:2025-08-02

內容簡介

總結:這個外掛在儲存文章時,會掃描內容中的外部圖片網址,自動下載圖片、上傳到 WordPress 媒體庫,並將原本的網址替換為新的在您伺服器上托管的網址。

問題與答案:
1. 這個 WordPress 外掛在什麼情況下會自動執行下載和上傳外部圖片的功能?
- 答:在儲存文章時,這個外掛會自動掃描內容中的外部圖片網址,並將圖片下載並上傳到 WordPress 媒體庫中。

2. 這個外掛提供了哪些功能?
- 答:這個外掛可以自動檢測文章中的外部圖片、替換原始圖片網址、將導入的圖片加入到 WordPress 媒體庫、從自動上傳功能中排除特定自訂文章類型、指定要排除的圖片導入域、定義上傳圖片的自訂基本 URL、設置上傳圖片的自訂檔名格式、設置導入圖片的自訂 alt 文本格式、定義上傳圖片的最大寬度和高度。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.3.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Smart Auto Upload Images – Import External Images」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Smart Auto Upload Images imports external images from your post content into the WordPress Media Library when you save or update a post. It replaces the original image URLs with local URLs, helping you keep a copy of the images your content depends on.
Automatic image imports

Detects external image URLs in img tags, including src and srcset.
Imports supported images into the Media Library and updates matching URLs in post content.
Works with the Classic Editor, image markup in block content, and custom post types.
Supports external featured image imports from the post editor or REST API.

Settings for your workflow

Customize imported filenames and image alt text with pattern variables.
Set maximum image width and height.
Exclude specific post types or external domains.
Set a custom base URL for imported image links.
Reuse an existing image when the generated filename and downloaded file contents match.

Import history and recovery — new in 1.3.0
Open Settings → Smart Auto Upload Images → History to review recent successful post-content imports. Each entry shows the post, import time, image count, and original and imported URLs.
Select Restore original URLs to replace imported URLs that are still present in that post. Recovery preserves other post edits and keeps imported files in the Media Library.

History starts with imports made after updating to 1.3.0; older imports are not added retroactively.
The plugin stores up to 500 import events per site and displays the latest 50 that you can edit.
Recovery applies to recorded URL replacements in post content. It does not restore alt text or featured images, or act as a full post backup.
If different original URLs share one imported image URL, recovery is blocked to avoid restoring the wrong source.
Recovered external URLs may be imported again when the post is saved normally. Exclude their domain or post type if you want them to remain external.
Administrators can access history and must have permission to edit a post before recovering it.

The Settings and History tabs have separate URLs, so you can bookmark a tab and use browser Back and Forward.
Filename and alt text patterns
Use variables such as:

%filename% — original filename without its extension.
%image_alt% and %image_title% — original image attributes.
%post_title% and %post_name% — post title and slug.
%year%, %month%, %day%, and %today_date% — current UTC date values.
%post_date% — post date.
%timestamp% and %random% — timestamp or generated identifier.

For example, use %post_name%-%filename% for filenames or %image_alt% - %post_title% for alt text. The settings sidebar lists available variables.
Exclude external domains
In Settings → Smart Auto Upload Images → Settings, open Exclusions and enter one hostname or URL per line, such as cdn.example.com or https://cdn.example.com. Hostnames match without case sensitivity; add subdomains separately when needed.
Compatibility and limits
Images must be publicly accessible and pass WordPress URL and file validation. Importing many or large images can increase post save time and consume disk space. Maximum dimensions control resizing, not download size.
Page builders are supported when they store image markup in post content. Images stored only in custom fields, CSS backgrounds, or other separate builder data are not guaranteed to be imported. There is no dedicated bulk import screen; existing content is processed when its posts are saved.
Only import images you have permission to use. The plugin contacts the image hosts referenced in your content to download files.

延伸相關外掛

文章
Filter
Mastodon