Crop an image to a free shape or an exact ratio, square for profiles, 4:5 for feeds, 16:9 for video, with composition guides, exact pixel input and a check that nothing you cropped out is left in the file.
A crop doesn't blur anything, the pixels you keep are untouched. But the smaller the crop, the fewer pixels are left, and zooming back in later will look soft. Your current crop keeps 48.6% (2.1 MP) of the original.
Tip: for a 1080 px Instagram post, a crop needs at least 1080 px on its short side to stay sharp.
JPEG stores pixels in 8 × 8 blocks, grouped into MCUs of 8 or 16 pixels depending on colour subsampling. A crop whose top-left corner lands on that grid can keep the compressed blocks as they are. Anywhere else, every block has to be re-encoded, and the new block edges fall through the middle of the old ones. Below, a region of your crop is re-saved twice, once on the grid, once off it, and compared with the source pixels.
jpegtran -crop 1296x1620+240+90 -copy none -optimize in.jpg > out.jpgLossless block cropping applies to JPEG sources only. PNG crops are always lossless.Viewers show the cropped image, but two well-known mistakes keep the original around: an editor that copies the old EXIF block (with its thumbnail of the full photo), and a tool that overwrites the file without shortening it (the 2023 “aCropalypse” bug). Both files below are built for real from your current crop, then taken apart byte by byte.
Some formats crop by deleting pixels, some by re-encoding, and some only hide the edges behind a crop rectangle, which leaves the full picture in the file. Tool behaviour is from general knowledge of current documentation; check the docs for the version you use.
jpegtran -crop 1296x1620+240+80 -copy none in.jpg > out.jpgTop-left must sit on the 8 or 16 px MCU grid; jpegtran moves it up and left to the nearest boundary. Otherwise every block is re-encoded.magick in.png -crop 800x600+40+20 +repage out.pngRe-encoding is lossless, but keep +repage or the old canvas size and offset stay in the file.cwebp -q 85 -crop 40 20 800 600 in.png -o out.webpVP8 has no lossless crop; each re-save adds generation loss.clap (clean aperture) property on the image itemA viewer applies the crop rectangle, but the full coded image stays in the file.DefaultCropOrigin / DefaultCropSize tagsRaw converters crop on display; the sensor data outside is kept.page /CropBox [x1 y1 x2 y2]Anything outside the CropBox is still in the content stream and can be extracted.viewBox="40 20 800 600"Shapes outside the viewBox remain in the markup.ffmpeg -vf crop=1280:720:0:180 · SPS frame_croppingWith 4:2:0 chroma, crop width, height and offsets must be even; the SPS crop only hides edges.Write to a new file, or truncate before overwritingOverwriting a longer file in place leaves its tail behind, the aCropalypse bug.Cropping sets the framing. These finish the job.