2017-05-16 10 views
0

垂直を表示する画像を処理するには、[exifInfo.orientation = "ROTATE_XXX";]を使用しています。 exifInfoExif APIに属します。使用方法Exif APITizen Web Application?「Exif APIの使用方法の詳細については、Exifガイド」を参照してください。 developer.tizen.org/ko/development/api-references/web-applicationには、そのページには何も表示されません。Tizen WebアプリケーションでExif APIを使用する方法

+0

でこれらの権限を追加し、アプリのEXIF APIの仕事の他の基本的な機能をしましたか? –

+0

私は初心者ですので、ライブラリExif APIを追加する方法はありません.tifen WebアプリケーションにExif APIを追加する方法を教えてください。 – hitouma

+0

あなたのアプリにはどのデバイスを使用していますか? –

答えて

0

Tizenを使用すると、JPEGファイル内のEXIF情報にアクセスして変更することができます。 Exif APIは、Tizenモバイルプロファイルとウェアラブルプロファイルの両方で必須です。つまり、it is supported in all mobile and wearableデバイスです。すべての必須APIはTizenエミュレータでサポートされています。

用途:

var fileURI = ""; 
    var myNewExif = new tizen.ExifInformation(); 


    function getSuccess(exifInfo) 
    { 
     console.log(exifInfo.orientation); 
     console.log(exifInfo.userComment); 
     console.log(exifInfo.gpsLocation); 
    } 

    function resolveSuccess(file) 
    { 
     fileURI = file.toURI(); 
     console.log("Successfully resolved file: " + file.toURI()); 

     function onSaveSuccess() 
     { 
      console.log("Successfully saved EXIF information to JPEG file"); 
     } 

     function onSaveError(error) 
     { 
      console.log("Error occurred:" + error.name + " with message:" + error.message); 
     } 

     myNewExif.uri = file.toURI(); 
     myNewExif.orientation = "ROTATE_90"; 
     myNewExif.userComment = "Photo taken on Golden Bridge in Sanfrancisco"; 
     myNewExif.gpsLocation = new tizen.SimpleCoordinates(50.086447, 14.411856); 
     tizen.exif.saveExifInfo(myNewExif, onSaveSuccess, onSaveError); 
     tizen.exif.getExifInfo(fileURI, getSuccess); 
    } 

    function resolveFail(error) 
    { 
     console.log("resolve() error occurred: " + error.name + " with message: " + error.message); 
    } 

    tizen.filesystem.resolve("images/image1.jpg", resolveSuccess, resolveFail); 

​​3210

<tizen:privilege name="http://tizen.org/privilege/content.read"/> 
<tizen:privilege name="http://tizen.org/privilege/content.write"/> 
<tizen:privilege name="http://tizen.org/privilege/filesystem.read"/> 
<tizen:privilege name="http://tizen.org/privilege/filesystem.write"/> 
関連する問題