我已經試過IPTCInfo3。 但是,成功安裝與 pip3 install IPTCInfo
後,我得到一個導入錯誤: Python 3.5.2 (default, Oct 11 2016, 04:59:56)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin
from iptcinfo import I
我正在創建照片編輯應用程序,到目前爲止,我已成功讀取圖像文件中的元數據(獲得此問題的答案:Reading Camera data from EXIF while opening NSImage on OS X)。 source = CGImageSourceCreateWithURL((__bridge CFURLRef)url, NULL);
NSDictionary *props = (__
我需要爲系統提取一些元數據。 我已經有了以下代碼,該代碼適用於我需要訪問的所有其他元數據屬性。 using (Stream stream = new FileStream(imagePhysicalPath, FileMode.Open, FileAccess.Read, FileShare.Read))
{
var decoder = new JpegBitmapDecoder(st
我將圖像上傳到服務器,然後處理圖像。有趣的是,上傳後的圖像圖像關鍵字丟失。雖然其他圖像屬性在那裏。 沒有與解析標籤沒有問題,因此請忽略下面的代碼片段。 using (var xmp = Xmp.FromFile(workingFilePath, XmpFileMode.ReadOnly))
{
var iptc = new Iptc(xmp);
var Keywords =