search

Home  >  Q&A  >  body text

javascript - cordova encounters Qiniu watermark

Using the cordova plug-in saveImageUrl to save the Qiniu picture watermark causes the save to fail. Is there any solution? It will pop up that the picture is successfully saved, but the picture cannot be found in the album.

      window.saveImage.fromUrl(
          $scope.zoomImage+'?watermark/1/image/aHR0cHM6Ly9vbGh2a2RzNzMucW5zc2wuY29tL2xvZ28ucG5n/dissolve/50/gravity/SouthEast/dx/20/dy/20',
            function (msg) {
                widget.msgToast('图片保存成功');
            },
            function (err) {
                widget.msgToast('图片保存失败');
            },
            type
        );
phpcn_u1582phpcn_u15822749 days ago663

reply all(2)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-19 10:33:01

    The saveImageUrl plug-in you mentioned cannot be found. If you are using the SaveImage plug-in, the api is this cordova.plugins.imagesaver.saveImageToGallery(nativePathToJpegImage, successCallback, errorCallback);

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-05-19 10:33:01

    The current processing method is to add a string after the Qiniu address. This can be saved

    reply
    0
  • Cancelreply