title: How to check the installation of "cordova-save-image-gallery"
body: <p>Was my installation of &quot;cordova-save-image-gallery&quot; succeeded?</p>
  <p>I got the following installation message and was tried this plugin with the following simple code including the example of github.com/agomezmoron but it did not work.</p>
  <p>Even window.imageSaver.saveBase64Image does not do &quot;success callback&quot; nor &quot;fail callback&quot;.  </p>
  <p>I am guessing there is something wrong with my installation but I don't know how to proceed my research any further.</p>
  <p>////Installation message//////////////////////</p>
  <p>C:\Cordova\simplecamera&gt;npm i cordova-plugin-save-image-gallery
  npm WARN com.mycompany.myteam.simplecamera@1.0.0 No repository field.</p>
  <ul>
  <li>cordova-plugin-save-image-gallery@0.0.26
  updated 1 package and audited 58 packages in 0.99s</li>
  </ul>
  <p>1 package is looking for funding
    run <code>npm fund</code> for details</p>
  <p>found 0 vulnerabilities</p>
  <p>///////////////////////////////////////////////////////////</p>
  <p>//simple code including the example//////</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;script src=&quot;cordova.js&quot;&gt;&lt;/script&gt;
          &lt;script&gt;
              var base64String;
  
              function takePicture() {
                  navigator.camera.getPicture(
                      function (imageData) { 
                          var image = document.getElementById('myImage');
                          image.src = &quot;data:image/jpeg;base64,&quot; + imageData;                
                          base64String = image.src;  
                      },
                      function (message) { console.warn('@@@Failed because: ' + message); },
                      { destinationType: Camera.DestinationType.DATA_URL, targetHeight: 100}
                  );
              }          
            
              function saveToGallery() {
                  //Example code on https://github.com/agomezmoron/cordova-save-image-gallery
                  var params = {data: base64String, prefix: 'myPrefix_', format: 'JPG', quality: 80, mediaScanner: true};
                  window.imageSaver.saveBase64Image(params,
                      function (filePath) {
                          console.log('File saved on ' + filePath);
                      },
                      function (msg) {
                          console.error('msg' + msg);
                      }
                  );
                  //************************************************************************** 
              }
          &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;button type=&quot;button&quot; onclick=&quot;takePicture();&quot;&gt; Take a Picture&lt;/button&gt;&lt;br&gt;                 
          &lt;img id=&quot;myImage&quot; src=&quot;none&quot; alt=&quot;&quot;/&gt;&lt;br&gt;
          &lt;button type=&quot;button&quot; onclick=&quot;saveToGallery();&quot;&gt; Save to Gallery &lt;/button&gt;               
      &lt;/body&gt;
  &lt;/html&gt;
  
  
  
  
  
  </code></pre>