Code Monkey home page Code Monkey logo

Comments (6)

eJayYoung avatar eJayYoung commented on May 27, 2024 1

fixed, see v1.0.18

from vux-uploader-component.

eJayYoung avatar eJayYoung commented on May 27, 2024 1

这个思路很不错,但是如果照片是旋转了180度的情况,这样判断就有问题

浏览器只会根据图片拍摄的EXIF中的orientation,去判断如何自动旋转图片,而图片的orientation总共有8个值,不同的值需要旋转的角度都是不同的,在我之前的笔记中有提到过
我拿来做测试判断的那个base64图片的orientation固定就是6,所以只需要这样判断,就没什么问题🤔

from vux-uploader-component.

Saikikoko avatar Saikikoko commented on May 27, 2024 1

明白了

from vux-uploader-component.

Saikikoko avatar Saikikoko commented on May 27, 2024

iphonex上 只要是正方形的照片,上传后都会旋转,iPhone7像标题描述的一样操作,会旋转

from vux-uploader-component.

eJayYoung avatar eJayYoung commented on May 27, 2024

iphonex上 只要是正方形的照片,上传后都会旋转,iPhone7像标题描述的一样操作,会旋转

确实,我已经在ios13上验证过了,也有其他人碰到了类似的问题
我抽空会修复的,不过需要想一下如何检测浏览器会针对图片的EXIF信息自动旋转

from vux-uploader-component.

Saikikoko avatar Saikikoko commented on May 27, 2024

这个思路很不错,但是如果照片是旋转了180度的情况,这样判断就有问题

from vux-uploader-component.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.