Automatically finds the largest crop area after rotation — no wasted pixels
Click to upload or drag and drop
PNG, JPG, WebP supported
When you rotate an image, the corners get cut off or you end up with black/empty borders. This tool automatically calculates and crops to the largest rectangle that contains only real image pixels after rotation — no wasted space, no black bars. It's the optimal crop that maximizes the usable area of your rotated image.
Upload your image, adjust the rotation angle, and this tool automatically finds the largest rectangle that fits entirely within the rotated image bounds. The crop area shown is the maximum size possible while containing only actual image content — no empty corners or black borders from the rotation.
This tool generates the equivalent ImageMagick command for you.
The process involves using magick -rotate followed by
-gravity center -crop with the calculated dimensions.
The tricky part is calculating the largest inscribed rectangle at
a given aspect ratio — that's what this tool computes for you. You
can copy the generated command and run it in your terminal.
When you rotate a rectangle, the result is a larger bounding box with empty corners. Finding the largest axis-aligned rectangle that fits entirely within the original rotated image (containing only real pixels) is a geometric optimization problem. This tool solves it for any rotation angle and aspect ratio, giving you the maximum usable crop area.
Yes! This is perfect for straightening horizons or fixing tilted photos. Rotate to straighten the image, and the tool automatically calculates the best crop to remove the angled borders. Use "Show full image" to see exactly what's being cropped and adjust the offset to choose which part of the image to keep.
Everything runs entirely in your browser. Your images are never uploaded to any server — all processing happens locally on your device. You can even use this tool offline once the page is loaded.