douyoufan7881 2017-08-23 15:14
浏览 104

Php imagerotate修复到中心

I'm trying to make some web app, that user can upload is face, then rotate the image in some frame with empty place for the image - (example - http://is2.mzstatic.com/image/thumb/Purple71/v4/80/50/f4/8050f498-e330-5205-9999-9b9f9a3da818/source/175x175bb.jpg)

My problem is, when the user rotate the image with transform: rotate(Xdeg), the image rotating from the center, but in PHP when I rotate the image with the same degrees, it moving from x/y that I mention

First I rotate the image, than I copy it to the big image. the given x,y values can't match to every rotation.

My question is - how can I fix the change and build some formula that make the x,y in the center of the empty round of face, even after the rotation

Thanks

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 phython路径名过长报错 不知道什么问题
    • ¥15 深度学习中模型转换该怎么实现
    • ¥15 HLs设计手写数字识别程序编译通不过
    • ¥15 Stata外部命令安装问题求帮助!
    • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
    • ¥15 TYPCE母转母,插入认方向
    • ¥15 如何用python向钉钉机器人发送可以放大的图片?
    • ¥15 matlab(相关搜索:紧聚焦)
    • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计
    • ¥15 Arduino无法同时连接多个hx711模块,如何解决?