Comments (6)
fixed, see v1.0.18
from vux-uploader-component.
这个思路很不错,但是如果照片是旋转了180度的情况,这样判断就有问题
浏览器只会根据图片拍摄的EXIF中的orientation,去判断如何自动旋转图片,而图片的orientation总共有8个值,不同的值需要旋转的角度都是不同的,在我之前的笔记中有提到过
我拿来做测试判断的那个base64图片的orientation固定就是6,所以只需要这样判断,就没什么问题🤔
from vux-uploader-component.
明白了
from vux-uploader-component.
iphonex上 只要是正方形的照片,上传后都会旋转,iPhone7像标题描述的一样操作,会旋转
from vux-uploader-component.
iphonex上 只要是正方形的照片,上传后都会旋转,iPhone7像标题描述的一样操作,会旋转
确实,我已经在ios13上验证过了,也有其他人碰到了类似的问题
我抽空会修复的,不过需要想一下如何检测浏览器会针对图片的EXIF信息自动旋转
from vux-uploader-component.
这个思路很不错,但是如果照片是旋转了180度的情况,这样判断就有问题
from vux-uploader-component.
Related Issues (14)
- 删除图片的时候没有回调事件吗 HOT 5
- Wrong Content-Type and empty blob.type HOT 4
- English translations on alerts? HOT 2
- How to show uploaded image HOT 1
- 在图片预览界面滑动后的删除bug HOT 2
- ios兼容性问题 HOT 4
- ios10兼容性问题 HOT 1
- 请问 onChange(fileList)我想要获取文件的这个参数改掉了吗 HOT 5
- enhance: 图片预览功能增强 HOT 1
- canvas图片处理bug HOT 2
- params header and withCredentials HOT 3
- 自动上传的可以加个loading吗,我看没有类似beforeUpload的事件啊 HOT 1
- PNG Images turn alpha channel to black background HOT 2
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 vux-uploader-component.