Comments (16)
@BearJ
在Android环境下,小米、华为都只能选择图片,没有拍照选项。魅族、iPhone没问题
经测试,需在input标签上加capture属性才可以
<input id=uploaderCustomInput class=weui-uploader__input type="file" accept="image/*" capture="camera" multiple="">
from weui.js.
@gtyd 倒转的问题在develop分支上已修复,你可以单独下载下来试试?
from weui.js.
@gtyd 谢谢提醒,这个后期需要fix
from weui.js.
@BearJ 重新引用了develop分支dist目录下的weui.js,拍照完点使用图片,还是被旋转了哇!
from weui.js.
@gtyd 方便提供下设备信息,系统信息,和微信版本吗?或者你在2182行之后打个alert,看看orientation的值是多少?
from weui.js.
develop分支下的weui.js在iphone5S下测试正常了。
from weui.js.
capture="camera"
在华为安卓浏览器中可以拍照,但是微信内置浏览器中依然无法拍照。
from weui.js.
@BearJ 已查明,当不启用压缩,拍照后依然是被旋转了,控制翻转的代码只写在了“启用压缩的分支”块内,见:
if (options.compress === false) { // 不启用压缩 & base64上传 的分支,不做任何处理,直接返回文件的base64编码 file.base64 = evt.target.result; callback(file); return; }
from weui.js.
@gtyd 是的呢,不做任何处理是因为有些需求是要保留图片信息,所以也就没有做调整。如果你想做处理的话,可以把compress的width和height设置得大一点即可
from weui.js.
@BearJ 如果我想保持原图,不启用压缩(不需要保留图片信息),但要解决旋转,可否单独给一个版本?谢谢
from weui.js.
@gtyd 是想保留原图的尺寸吗?那你试试这样设置compress,就算我提供一个新版本,实现原理也是一样的:
compress: {
width: 99999,
height: 99999,
quality: 1
}
from weui.js.
@BearJ 可以解决,感谢!
from weui.js.
@BearJ 有没有每次发布版本后的更新说明呢?
from weui.js.
@gtyd 有的,https://github.com/weui/weui.js/releases
from weui.js.
这里v1.1.1 fixed
from weui.js.
compress: {
width: 99999,
height: 99999,
quality: 1
} 您好,这段代码需要粘在哪里呢,现在用了1.1.1ios还是照片旋转了90° @BearJ
from weui.js.
Related Issues (20)
- 这次更新的什么鬼,组建出问题了 HOT 4
- Picker问题
- 建议大家使用weui之马版,是别人改良好的版本 HOT 3
- 为什么高版本不能兼容低版本勒 HOT 1
- input输入框在ios暗色模式下,显示异常,请问这个要怎么处理呢?
- 简直了:引用weui.css和weui.min.css导致Half-screen Dialog的展示结果不一样,这算BUG吗? HOT 1
- Body设置居中后,Slider点击滑块值问题 HOT 1
- 示例中uploader图片手动上传的问题 HOT 1
- picker关闭没效果,closeText也没有效果
- 不支持夜间模式啊。。。
- 安卓手机(小米) 系统浏览器使用Uploader组件上传多张图片时,页面会自动刷新 HOT 1
- uploader如何在上载的时候添加其他表单数据?
- 是否可以设置isAndroid的默认值
- weui.uploader 在安卓系统效果正常,但是在IOS系统失效
- 华为mate 20 pro ,荣耀10,内嵌h5页面在使用weui-uploader拍照,点击确定后不回显图片,相册原本图片都不显示了,请问能否提供下解决问题思路,其他手机正常。 HOT 1
- uploader的 input file 多图上传BUG
- 安卓手机浏览器使用actionSheet弹出来的样式不对 是一个弹窗了
- 1.2.19 js 移动端 picker 点击会多次触发 onChange HOT 1
- bala.js 已经改名成 tsimmes 了,应该更新下依赖
- 只需要使用到某个组件,有单个组件对应的代码文件吗?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from weui.js.