as3-xmp-file に記載されている例は 、.JPG 形式のファイルで動作しています。test.jpg を test.png ファイルに変更しようとしました。しかし、タイトルを .png ファイルに更新していないようです。
誰でもこれをどのように行うことができるか考えていますか?
as3-xmp-file ウェブサイトのコード
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
<mx:Script>
<![CDATA[
import de.qwesda.as3_xmp_file.as3_xmp_file;
import com.adobe.xmp.*;
private function init():void {
var file1:as3_xmp_file = new as3_xmp_file(File.desktopDirectory.nativePath + "/test.jpg");
if(file1.file.exists){
trace(file1.xmp.dumpObject());
var dc_exif:Namespace = XMPConst.dc;
file1.xmp.dc_exif::title = "Title";
file1.save();
}
var file2:as3_xmp_file = new as3_xmp_file(File.desktopDirectory.nativePath + "/test.jpg");
if(file2.file.exists){
trace(file2.xmp.dumpObject());
}
}
]]>
</mx:Script>
</mx:WindowedApplication>