图片裁剪
使用像素坐标裁剪出精确的矩形。
输入
提示:按 Ctrl + Enter 运行
已保存的设置
下方的详细帮助目前仅提供英文版。
关于此工具
When a form or template needs an exact pixel size, or you need the same crop on several images, cropping by numbers is more precise than dragging a box. Enter the left and top offsets and the width and height of the rectangle you want to keep, and this tool returns just that area as a PNG.
Combine it with the resizer: crop to the right shape first (for example a 1:1 square), then resize to the exact dimensions required.
使用方法
- Choose the image and note its dimensions.
- Enter the left (x) and top (y) position of the crop in pixels.
- Enter the width and height to keep and run it.
计算原理
The rectangle (x, y, x + width, y + height) is validated against the image size and cut out with Pillow; orientation from EXIF is applied first. The result is saved as PNG.
计算示例
A volunteer needs square 1080 × 1080 headshots from 1440 × 1920 portrait photos. Cropping at x = 180, y = 300, width 1080, height 1080 keeps the face centred, and the same numbers work for every photo taken from the same position.
局限性
- Rectangular crops only.
- Minimum 16 × 16 pixels.
- Processed on the server; the file is deleted afterwards.
最后更新:
常见问题
How do I centre a crop?
x = (image width − crop width) ÷ 2 and y = (image height − crop height) ÷ 2.
Is quality lost?
No, the cropped area is saved losslessly as PNG.
Can I crop to a circle?
Use the profile picture maker for round crops.
故障排除
“Out of bounds”.
x + width or y + height is larger than the image.
The crop is in the wrong place.
Coordinates start at the top-left corner (0, 0).
The result is huge.
PNG is lossless; convert to JPG for photos.
隐私 & 免费使用
我的输入会被保存吗?
此工具会将文件或输入上传到我们的隔离处理器。任务完成后会删除工作文件。请勿提交敏感或机密材料。
这个工具免费吗?
是的。无需注册或付费。