我有一个文件控件。我想调整通过此文件控件上传的图像(300x300),然后将其上传到服务器以将其保存在数据库中。
我尝试安装angular-images-resizer(https://github.com/FBerthelot/angular-images-resizer),但它给了我错误。
任何人都可以帮助我在Angularjs 1.X中使用任何脚本或依赖项。
Cloning into '.'...
remote: Counting objects: 103, done.
remote: Compressing objects: 100% (88/88), done.
Receiving objects: 100% (103/103), 1.03 MiB | 71.00 KiB/s, done.
Resolving deltas: 100% (11/11), done.
remote: Total 103 (delta 11), reused 80 (delta 10), pack-reused 0
Checking connectivity... done.
Note: checking out 'aebc495ac44e65db8fd39da1ff36a3fcf0e504ff'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
error: unable to create file docs/partials/api/images-resizer.service.readLocalPicService@readFileInput
Read file input and convert it into base64 file.html (Invalid argument)
error: unable to create file docs/partials/api/readLocalPicService.readFileInput
Read file input and convert it into base64 file.html (Invalid argument)
error: unable to create file docs/partials/api/readLocalPicService@readFileInput
Read file input and convert it into base64 file.html (Invalid argument)
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'