Skip to content

超长图片的裁剪问题 #68

Description

@CoderWeiLee

func setupImageresizerView() {
let frame = CGRect(x: 0, y: UIDevice.tm_navigationFullHeight(), width: kScreenWidth, height: kScreenHeight - UIDevice.tm_navigationFullHeight() - 188)
// 1.初始配置
let configure = JPImageresizerConfigure.defaultConfigure(with: image) { c in
_ = c
.jp_viewFrame(frame)
.jp_bgColor(.black)
.jp_isShowMidDots(false)
.jp_frameType(.classicFrameType)
.jp_contentInsets(.init(top: 16, left: 16, bottom: 16, right: 16))
.jp_animationCurve(.easeInOut)
}
if let resizeWHScale = resizeWHScale {
configure.resizeWHScale = resizeWHScale
configure.isArbitrarily = false
}
使用了这个配置,当选择了一张超长的图片后,裁剪缩放、拖动四角均无反应

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions