
內容簡介
圖像檔案(例如 JPEG、PNG)包含元數據,即有關圖像的信息,例如使用了哪種相機模型、照片拍攝時間或各種圖像區域。圖像區域有助於描述圖像的特定區域(例如物體、人物)或者指示圖像應如何裁剪或旋轉以最佳地適應給定的容器。
此 WordPress 外掛程式讀取這些圖像區域,以便根據它們顯示的容器自動裁剪圖像的最佳方式。
可以使用Frameright app來定義這些圖像區域並將它們插入圖片的元數據中。
它如何運作?
在渲染文章或頁面時,此外掛程式尋找具有圖像區域元數據的圖像,並將它們替換為一個網頁元件,自動縮放到最合適的圖像區域,效果比傳統的居中裁剪更好。
致謝
此外掛程式基于 Frameright/php-image-metadata-parser(一個圖像元數據解析庫的分支),該庫是來自dchesterton,再次感謝!
外掛標籤
開發者團隊
原文外掛簡介
An image file (e.g. JPEG, PNG) contains metadata, i.e. information about the image, e.g. which camera model was used, when the picture has been taken or various image regions. Image regions are useful for describing specific areas of the image (e.g. objects, people) or for indicating how the image should be cropped or rotated to best fit a given container.
This WordPress plugin reads such image regions in order to automatically crop images the best possible way, depending on which container they are being displayed in.
The Frameright app can be used to define such image regions and insert them in the metadata of a picture.
How does it work?
When rendering a post or a page, the plugin looks for images that have image region metadata and replaces them with a web component automatically zooming on the best suited image region, effectively doing better than a classical middle-crop.
Credits
This plugin is based on Frameright/php-image-metadata-parser, a fork of dchesterton/image, an image metadata parsing library. Many thanks to dchesterton!
