GithubHelp home page GithubHelp logo

Comments (12)

IFmiss avatar IFmiss commented on August 29, 2024 1

@1c7 你复现过这种情况吗? 有没有可以跑的线上版本或者体验版,裁剪出问题的话基本是在裁剪的时候获取的位置问题,或者裁剪渲染的问题,得花时间调试

from wx-cropper.

1c7 avatar 1c7 commented on August 29, 2024

对于这种无法 100% 复现,只是偶尔出现的问题。我也是很头疼。如果作者没什么思路我就关掉 issue 了

from wx-cropper.

1c7 avatar 1c7 commented on August 29, 2024

刚刚成功复现问题。

机型

iPhone 6S

图片情况如下:

151548920726_ pic
wechatimg16

裁剪比例 3:4

181548920927_ pic

iPhone 6S 结果如下

171548920763_ pic

用 OnePlus 6T 试图重现

安卓下没能重现,是正常的
191548921002_ pic

是否 iPhone 6S 下每次都有这样的效果?

只试了第一次就有这样的问题,我还没尝试多次是否100%复现。我去试试。

我的思路是用开发者工具看一下图片地址(我用的是七牛云存储)
如果七牛图片本身就是坏的,那就是裁剪步骤出了问题。
如果图片没坏,但是显示是这样,那就是我的代码问题。

开发者工具掉链子
image

from wx-cropper.

1c7 avatar 1c7 commented on August 29, 2024

image
不清楚为什么微信开发者工具总是这样(不显示二维码)
重启过了,版本也是最新的。
不显示二维码我就无法登陆,无法登陆就无法开发
(就是吐槽一下而已)

from wx-cropper.

IFmiss avatar IFmiss commented on August 29, 2024

你这个比例是自己设置的是吗? 你那个比例是点击自动设置宽高的?我只能找个手机试试了

from wx-cropper.

1c7 avatar 1c7 commented on August 29, 2024

麻烦作者了。
比例是自己强制设定的,用户不能缩放大小。只能选不同比例。
代码如下
pages/crop_v2/crop_v2.js
image
pages/crop_v2/crop_v2.wxml
image

from wx-cropper.

1c7 avatar 1c7 commented on August 29, 2024

我去想办法把这一整个页面抽取出来,单独拿出来。方便测试复现。

页面1:只有1个按钮,点击就选图 (wx.chooseImage)
页面2:页面1选图后进入(负责裁剪,有多种比例)
页面3:页面2裁剪完成后直接显示图片(方便看结果)
3个页面。

问题是现在开发者工具又打不开。很烦。我都去社区提 issue 了:
https://developers.weixin.qq.com/community/develop/doc/000aacecddcd38ecb708d41115b800

from wx-cropper.

IFmiss avatar IFmiss commented on August 29, 2024

你到时候试试 你在生成图片的时候 打印一下这些变量的数据是不是合理
image

from wx-cropper.

1c7 avatar 1c7 commented on August 29, 2024

好。感谢。待会等我弄好了最精简的代码例子,
就自己再去云测上用 iPhone6S 看看能不能复现。
代码到时候会开源出来。到时候除了图片用 image 显示出来,也按照你说的把这些变量值也显示到界面上,看看有没有异常。
感谢作者回复

from wx-cropper.

IFmiss avatar IFmiss commented on August 29, 2024

好的 !

from wx-cropper.

1c7 avatar 1c7 commented on August 29, 2024

这个开发者工具二维码登录问题很阻碍我写测试。
我现在只能无奈先去做别的工作了(去写后端,折腾下 Docker Swarm)
等明天/这几天再想办法解决。今天先不弄了。等有结论了会关掉这个 issue。
(日常感谢作者,留一次言感谢一次哈哈)

----2019-2-14-更新--
因为过年把这个事情临时搁置了。
然后现在手头更重要的事情是把后端部署 Docker Swarm 的事情搞定。
这个 issue 我回头看看怎么解决。

from wx-cropper.

1c7 avatar 1c7 commented on August 29, 2024

此问题暂未解决,但我先关掉 issue

原因是项目重点不在这里了,这个功能没删,还在。
但是先不管这个小问题了。先忙别的功能。

等我之后(也许)有空的时候,可能回头再弄这个。再 reopen 然后更新进展。

谢作者开源和前面楼层里热心回复!

2019-4-8号更新

已离职。不再需要处理此问题。

from wx-cropper.

Related Issues (19)

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.