doutang7707 2016-11-02 10:12
浏览 46

PHP:两个图像(在调整比例后)成形为一个图像

I want to resize my two images to fit best and keep ratio and put them into shape (two circles). I am wondering about easier method to resolve my problem. I want to get this result shown on image below:

enter image description here

  1. Load src image 1 and src image 2: I got this
  2. to square with aspect ratio: I use Eventviva/Php-image-resize
  3. to circle: I found some code for this on stackoverflow, but still finding and trying to get the best
  4. to shape: I don't know how to do it (my idea written below)

My idea: I was thinking about use imagecopymerge in this way: open imagecircle1, then add white outline border on imagecircle2, then set imagecircle2 with border to right bottom corner and save but first of all - it wont be transpared because of white border, moreover I am sure that easier way exists but I cant find it.

Any ideas how to get result shown on image with easier way? Or if my idea is correct, can you help me a bit with shape?

  • 写回答

1条回答 默认 最新

  • dtn43447 2016-11-03 15:52
    关注

    Lukasz, a good place to start is to use image transformations service via URL where you can mesh your images together in various ways, applying filters, backgrounds, reshape, etc.

    HTH.

    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度