[WordPress] 外掛分享: MMWW

前言介紹

  • 這款 WordPress 外掛「MMWW」是 2012-12-03 上架。
  • 目前有 100 個安裝啟用數。
  • 上一次更新是 2025-03-13,距離現在已有 52 天。
  • 外掛最低要求 WordPress 3.0.1 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
  • 有 11 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

olliejones |

外掛標籤

id3 | mp3 | exif | images | metadata |

內容簡介

如果您製作了許多圖像、圖形、音頻剪輯或視頻剪輯,您可能會花費一些功夫將元數據(標題、版權、軌道名稱、日期等等)放入它們中。您可能還會將標記和評級(一到五星)放在您的媒體文件上。

JPEG圖像文件具有EXIF元數據。
MP3音頻剪輯具有ID3元數據。
PNG文件具有其自己的元數據。
Adobe正在推動一個名為XMP的互操作標準,用於保存元數據。

如果您使用像Acrobat、Adobe Bridge或Audacity這樣的製作工具,您可能會將此類元數據放入您的文件中。然後,您可能需要在將文件放入WordPress站點時重新輸入它。

現在,此「媒體元數據工作流程嚮導」外掛可以讓您免於這樣做。現在,您可以在上傳媒體時自動將元數據轉移到媒體庫中。

您可以選擇使用媒體文件中的創建日期作為WordPress中的「上傳」日期。因此,例如,您的照片可以按拍攝日期和時間的順序排序在媒體庫中,而您的pdf可以按掃描順序排列。

您可以指定模板,定義應使用哪些元數據項來創建每個WordPress附件文章的字段:標題、標題說明、替代文字和說明。

對於音頻文件,MMWW可以自動創建由Jetpack提供的shortcode。選擇Link To Media File,shortcode將為您生成。WordPress 3.6及更高版本具有集成的音頻播放器,因此您可能不需要此功能。設置頁面可讓您關閉此行為。

如果您與此插件一起使用[Media Tags] [https://wordpress.org/plugins/media-tags/]插件,您將能夠將元數據標籤作為分類處理。您還可以將元數據評級(一到五星)用作分類。

元數據模板

一旦安裝並激活了該插件,它將使用您上傳的媒體文件中的元數據填充站點附件的文本字段。

附件的文本字段

附件文本文件是標題、說明、標題說明和替代文字。附件的標題也用於創建slug。

描述是描述媒體項目的自由文字。
標題說明顯示在文章中照片下方。
替代文字嵌入在帖子中的IMG標記中。它有兩個用途:為使用屏幕閱讀器的人以文本形式描述圖像,因為他們無法看到圖像,並為搜索引擎描述圖像。

使用元數據模板

許多媒體編輯程序,例如Photoshop、Paint Shop Pro、Acrobat和Audacity,都有將元數據加載到媒體中的方法。這些通常可以在名為“屬性”,“圖像信息”或類似名稱的對話框中找到。

MMWW的設置頁面可讓您指定用於填充文本字段的模板。例如,您可以為智能手機的圖像文件設置描述模板,如下所示:

({description} )({shutter}--{fstop} )({latitude}/{longitude} )({created_time})

您將在描述中看到有關拍攝照片的詳細信息

您可以使用括號來分隔元數據模板字符串的可選部分。例如,並非所有媒體文件都包含{copyright}元數據。如果您將其放入元數據模板字符串中,則如果沒有{copyright}元數據,它將省略整個版權子句。注意,在結束括號之前,有一個尾隨的空格。

原文外掛簡介

If you create lots of images, graphics, audio clips, or video clips you probably go to some trouble to put metadata (titles, copyrights, track names, dates, and all that) into them. You may also put tags and ratings (one to five stars) on your media files.

JPEG image files have EXIF metadata.
MP3 audio clips have ID3 metadata.
PNG files have their own kind of metadata.
Adobe is pushing an interoperable standard called XMP to hold metadata as well.

If you use a production tool like Acrobat, Adobe Bridge or Audacity, you probably put this kind of metadata into your files. And then you probably rekey it when you put the files into your WordPress site.
This Media Metadata Workflow Wizard plugin will get you out of doing that. Now you can have that metadata transferred into the Media Library automatically when you upload your media.
You can choose to have the creation date in your media file used as the “Uploaded” date in WordPress. So, for example, your photos can be ordered in the media library in order of the date and time they were taken, and your pdfs in the order they were scanned.
You can specify templates defining what metadata items should be used to create each WordPress attachment post’s fields: title, caption, alt text, and description.
For audio files, MMWW can automatically create the shortcode provided by Jetpack. Choose Link To Media File and the shortcode will be generated for you. WordPress 3.6 and later has an integrated audio player, so you may not need this feature. The Settings page lets you turn this behavior off.
If you use the [Media Tags][https://wordpress.org/plugins/media-tags/] plugin together with this one, you’ll be able to handle metadata tags as a taxonomy. You can also use metadata ratings (one to five stars) as a taxonomy.
Metadata templates
Once the plugin is installed and activated, it will populate the text fields in your site’s attachment
posts using metadata from the media files you upload.
Text fields for attachments
The attachment text files are Title, Description, Caption and Alternate Text. The Title of the attachment is also used to create the slug.

The Description is free text describing the media item.
The Caption is displayed underneath photos in posts.
The Alternate Text is embedded in the IMG tag in the post. It serves two purposes: describing the image in textual form
for people who use screen readers because they cannot see the images, and for describing the image to search engines.

Using metadata templates
Many media editor programs, such as Photoshop, Paint Shop Pro, Acrobat and Audacity have ways of loading metadata into media. These usually can be found in a dialog box named “Properties,” “Image Information,” or something similar.
MMWW’s settings page lets you specify the templates to use for populating the text fields. For example, you can set the Description template for an image file from a smartphone to
({description} )({shutter}--{fstop} )({latitude}/{longitude} )({created_time})

and you’ll see some details about how, where, and when the photo was taken in your Description.
You can use parentheses to delimit optional parts of a metadata template string. For example, not all media files contain {copyright} metadata. If you put this into your metadata template string, it will omit the whole copyright clause if there’s no {copyright} metadata. Notice that there’s a trailing space before the closing parenthesis. This separates this clause (if it appears) from the next one.
(Copyright © {copyright} )

The parentheses denote the whole clause as optional, and omitted if the metadata mentioned in it is not available.
Similarly, you can create a URL that will display a map centered on the spot your photo was taken, but only if latitude and longitude are available in the photo’s metadata, like this:
(\(Map {title}\))

If you want literal parentheses or curly braces to appear in your metadata, use the backslash character to escape them in your template data.
JPEG image files
JPEG photo files have lots of possible metadata. Not every photograph has all these items of metadata, but most have some of them.
{title} Title of the file.
{filename} Filename of the file. e.g. "DSC_5007" (without .jpg)
{credit} Author.
{copyright} Copyright notice if any is included.
{description} Narrative description.
{tags} One or more keyword tags, separated by semicolons.
{rating} 0 - 5, set by various image browsers
{workflowlabel} A text string like "Discard" or "Keep," set by various image browsers
{camera} Camera model
{shutter} Shutter speed, such as 1/60
{shutter_speed} Raw shutter speed, such as 60
{fstop} Aperture, like f/5.6
{aperture} Raw aperture, like 5.60
{flash} Flash setting, such as "No Flash" or "Fired, Red-eye reduction"
{focal_length} Lens's focal length in mm.
{focal_length35} Lens's 35mm film focal length equivalent in mm.
{lightsource} Kind of light detected, such as "Daylight" or "Tungsten"
{meteringmode} Type of metering the camera used, such as "Spot," "Average," or "Unknown"
{sensingmethod} Type of image sensor, such as "One-chip color area sensor."
{exposuremode} Exposure mode, such as "Auto" or "Manual"
{exposureprogram} Exposure-setting program, such as "Aperture Priority" or "Normal Program."
{exposurebias} Selected exposure bias.
{brightness} A number indicating how bright the scene is
{scene_capture_type} Scene capture type. Standard, Landscape, Portrait, Night
{sharpness} Image's sharpness. Normal, Soft, Hard
{latitude} GPS latitude reading, shown in degrees and decimals.
{longitude} GPS longitude reading, showin in degrees and decimals.
{altitude} GPS altitude in meters above sea level
{direction} Direction of photograph. 270M means magnetic west, 180T means true south.
{subject_distance} Distance to subject from autofocus or other means.
{created_time} Timestamp when the photograph was taken.

IPTC metadata in JPEG image files
The International Press Telecommunications Council has defined many items of metadata to go in photo files. This metadata helps photojournalists and publications do business efficiently. Various tools, such as Adobe Bridge, allow this metadata to be inserted. MMWW can retrieve it, with these tags
{iptc:creator} The creator's name.
{iptc:creator:jobtitle} The creator's job title.
{iptc:creator:address} The creator's address.
{iptc:creator:city} The creator's city.
{iptc:creator:state} The creator's state or province.
{iptc:creator:postcode} The creator's post / zip code.
{iptc:creator:country} The creator's country.
{iptc:creator:phone} The creator's phone(s).
{iptc:creator:email} The creator's email(s).
{iptc:creator:website} The creator's web site(s).
{iptc:headline} Headline.
{iptc:description} Description.
{iptc:keywords} Keywords, separated with comma or semicolon.
{iptc:iptcsubjectcode} IPTC subject code.
{iptc:descriptionwriter} Author of the description.
{iptc:datecreated} Creation date.
{iptc:genre} Intellectual genre.
{iptc:scenecode} IPTC scene code.
{iptc:datecreated} Creation date.
{iptc:sublocation} Location within city.
{iptc:city} City.
{iptc:state} State/Province.
{iptc:country} Country.
{iptc:iscocountrycode} Country code per ISO 3166.
{iptc:title} Title.
{iptc:jobidentifier} Job Identifier.
{iptc:instructions} Instructions.
{iptc:creditline} Credit line.
{iptc:source} Source.
{iptc:copyright} Copyright Notice.
{iptc:copyrightstatus} Copyright Status.
{iptc:rightsusageterms} Terms of usage.

PNG image files
PNG image files have a few items of metadata. Most creators of PNG files don’t know this metadata exists so it isn’t often present.
{title} Title of the file.
{credit} Author.
{copyright} Copyright notice if any is included.
{description} Narrative description.
{created_time} The timestamp describing the time the PNG was made.
{filename} Filename of the file. e.g. "icon" (without .png)

PDF
PDF files, created by Adobe Acrobat and other programs, have a few items of metadata. The most generally useful of these are the title and credit.
{title} Title of the file.
{credit} Author.
{copyright} Copyright notice if any is included.
{description} Narrative description.
{tags} One or more keyword tags, separated by semicolons.
{rating} 0 - 5
{created_time} The timestamp describing the time the PDF was made.
{software} Program used to create PDF.
{filename} Filename of the file. e.g. "scan1234" (without .pdf)

Audio
MP3 Audio files can have lots of metadata, defined by the ID3 standard. The first few items are by far more common than the others.
{title} Title of the song.
{album} Title of the album.
{credit} Author or performer.
{year} Year of recording.
{copyright} Copyright notice if any is included.
{description} Narrative description.
{rating} 0 - 5.
{filename} Filename of the file. e.g. "TRACK_003" (without .mp3).

These metadata items are in the ID3 standard for MP3 files, but most files don’t have them. MMWW handles them
in case your particular media workflow needs them.
{tempo}
{genre}
{grouptitle}
{keysignature}
{DDMM} Day and month of recording
{HHMM} Hour and minute of recording
{duration}
{creditlead}
{creditconductor}
{creditproducer}
{writer}
{creditorganization}
{mediatype}
{creditoriginal}
{copyright}

WordPress information for all files
{wp:attachmentid} gives the post id of the present post.
{wp:parentid} gives the post id of the post to which this media file is attached.
{wp:parenttitle} gives the title of the post to which this media file is attached.
{wp:parentslug} gives the slug (url fragment) of the post to which this media file is attached.

These may be missing if those values are unknown at the time of media creation. Reloading the media metadata will
insert them.
A note about timestamps
MMWW has a setting that allows attachment dates to be set using the timestamp in the media’s metadata. For example, the upload date for a photo can be set to the moment the photo was taken. That way, photos in your Media Library tab will appear in the order they were taken (if that’s what you want).
There’s a detail to this: The timestamps in the media files need to be interpreted relative to a time zone to make this work correctly. Consider the example of a photo taken in September in New York City and uploaded in November. The timestamp in the photo is recorded in Eastern Daylight Time, but the current timezone setting is Eastern Standard Time. MMWW does the right thing by interpreting the photo’s timestamp relative to the timezone chosen on WordPress’s General Settings page. If you’re getting strange times of day in your attachment dates, please check that the timezone setting on the General Settings page is correct.
Metadata Standards Reference

Adobe XMP
ID3 for MP3 files
The ID3 Popularimeter — music file ratings
EXIF for JPEG files
IPTC Photo Metadata

To Do

Figure out how to put keywords into a taxonomy if that’s what the user wants.
Add support for the Yet Another Photo Blog (YAPB) [plugin]{https://wordpress.org/extend/plugins/yet-another-photoblog/}
Improve the syntax of the templates.
Add support for aac and video file metadata.
Ask for and receive lots of sample files from users, and use them to test.
Come up with a better way to handle commas in metadata when generating audio shortcodes.
Figure out a taxonomy to handle the media ratings in XMP.
Support TIFF files. (Please let the author know if you need TIFF support.)

Credits
Ognjen Djuraskovic of firstsiteguide.com has generously provided Serbian and Spanish translations of MMWW. Хвала / Gracias / Thanks Ognjen!
This plugin incorporates the Zend Media Framework by Sven Vollbehr and Ryan Butterfield which they generously made available under the BSD license. It comes in handy for retrieving and decoding the ID3 tags from audio files. See the LICENSE.txt file in this distribution. Copyright (c) 2005-2009 Zend Technologies USA Inc. (https://www.zend.com) Thanks, Sven and Ryan!

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「MMWW」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.9.3 | 1.0.0 | 1.0.1 | 1.0.2 | 1.0.3 | 1.0.4 | 1.0.5 | 1.0.6 | 1.0.7 | 1.0.8 | 1.0.9 | trunk | 1.0.10 | 1.0.11 |

延伸相關外掛(你可能也想知道)

  • Meow Lightbox 》這款響應式相簿外掛設計用於攝影,可以顯示 EXIF 數據。這款外掛經過高度優化,設計非常快速和優雅。您一定會喜歡它!在此了解更多詳情:Meow Lightbox。, 關...。
  • Image Rotation Repair 》圖片旋轉修復外掛僅僅是根據 EXIF 數據修復圖片方向。主要是為了修復從 iPhone 傳送的錯誤方向圖片的問題。該外掛會篩選所有上傳的圖片,如果 EXIF->方向...。
  • Exifography 》Exifography(前稱Thesography)為WordPress上傳的圖像顯示EXIF數據。它利用WordPress自己儲存 EXIF欄位的功能,並在圖片上傳時將緯度、經度和快門 EXIF匯入...。
  • Image Rotation Fixer 》此外掛會利用 PHP 的 EXIF 套件,在圖片上傳到伺服器後,自動修正 JPEG 圖片的旋轉問題。此外掛不需要進行任何設定,它會自動連結到 WordPress 的上傳程序,...。
  • Exif Caption 》將 Exif 數據插入媒體的標題中,同時替換內容的標題。, Exif, , 將 Exif 數據插入媒體的標題中。, 將 Exif 數據插入媒體的 alt 中。, , 日誌, , 顯示最近 100...。
  • Lunar – Sell photos online 》Lunar – 一款 WordPress 外掛,可以自動將圖像轉換為 WooCommerce 產品。, 功能:, , 自動將圖像轉換為 WooCommerce 產品(在我的電腦上一分鐘內創建了...。
  • WP Strip Image Metadata 》WP Strip Image Metadata 是一款專注於隱私保護的 WordPress 外掛程式,可協助您從已上傳的影像中移除可能包含機密資訊的圖片內部資料。, 什麼是圖片內部資料...。
  • VA Removing Exif 》這個外掛會在上傳新的 JPEG 圖片時自動刪除所有的 Exif 數據。請注意,已經上傳的圖片不會被處理。如果您想從已上傳的圖片中刪除 Exif,請使用「Regenerate T...。
  • Remove exif and metadata 》上傳後自動刪除 EXIF 與元數據。僅支援 JPG 和 PNG 格式。使用 ImageMagick。。
  • Gallery Styles 》這個外掛可以為 WordPress 的相片庫添加額外的樣式。, 功能, , 添加動畫的內部線條, 添加交叉懸停效果, 可選擇前景、背景和線條顏色, 可選擇濾鏡、二色調、乘...。
  • Exif Details 》取得媒體檔案的詳細 Exif 資訊。, 資料選擇, , 檔案, EXIF, GPS, , 相關外掛, , 可以在以下外掛中使用此外掛所產生的標籤。, Exif標題。, , 特別感謝!測試資...。
  • Upload Media Exif Date 》將圖像註冊到媒體庫, , 將 EXIF 資訊的日期/時間更改為檔名的日期/時間。, , 相關外掛, , Exif Caption, Exif Details, , 如何使用過濾器鉤子的範例, , 範例...。
  • Strip Image Metadata for JPG and WEBP 》外掛總結:, - 這個外掛基於 Samiff 和「WP Strip Image Metadata」的工作。, - 如果您正在尋找一個簡單的外掛來刪除所有圖片的元數據,您應該安裝這個外掛。...。
  • Force use of ImageMagick image library 》此外掛強制 WordPress 使用 ImageMagick 而非 PHP GD 圖像庫。這允許保留 EXIF 和 IPTC 數據,例如包含 GEO 數據和版權信息,但可能會導致稍微大一點的文件大...。
  • Media Metadata List 》顯示視頻和音頻, , 大小, 文件類型, 長度, , 顯示圖像, , 大小, 原始文件, 原始大小, 縮略圖, Exif, 折疊和顯示。, , 顯示除以上類型之外的文件, , 大小, 文...。

文章
Filter
Apply Filters
Mastodon