我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

裁剪图像(垂直前200px)并将其保存为php

I have an image:

/files/image.jpg

this image has 1000x1000 px. I want to crop and save it to has 800px vertically and keep the horizontal width (in example image 1000 but may change).

Can anyone give me an example to use imagecrop or any function to this? and then save this file in /files/image.jpg replacing the original one?

you can use this script

https://github.com/jamiebicknell/Thumb

set size=1000x800 and align=t

近期文章

  • 如何在异步请求中设置标头响应cakephp
  • 如何使用next和previous获取mysql中的数据
  • Codeigniter插入(如果不存在),如果不存在则更新
  • cakephp:我如何显示每个类别的计数?
  • 用php中的可选字段替换所需的类
  • 如何在Laravel 5中检查具有单元测试的路线
  • Instagram api获取照片而没有得到链接
  • Php如果条件不适用于现有阵列
  • 将数据从Web服务器发送到perl套接字侦听器
  • 这个星期和时间是否已经过了本周或没有 - PHP
  • cakephp 2.7.5中的重定向无法正常工作
  • 设置实体子实体而不从存储库加载
  • 动态虚拟主机在Laravel中出现500错误
  • 如果在www之前不存在则需要添加http
  • 如何清理联系表格中的字段? 在PHP中
  • PHP 7 x64 ODBC错误连接到MSSQL数据库
  • 在jquery中ajax成功后重定向到php页面
  • 这个Smarty php模板代码有什么问题?
  • PHP从网络驱动器读取或复制文件(窗口)
  • 使用php向mysql表添加多个值

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华