Guide
Cropping, rotating and flipping images precisely
By Logappradeep · ServiceNow developer
Cropping is the quickest way to improve a photo: it removes distractions at the edges, straightens the composition around the subject and fits the image to the shape a platform expects. Rotating and flipping fix photos that were taken or scanned at the wrong angle.
Aspect ratio presets
An aspect ratio is the relationship between width and height. Locking the crop box to a preset keeps that shape while you move and resize it:
- 1:1 square, for profile pictures and many social feeds.
- 4:3 and 3:2, the native shapes of most phone and camera photos, useful for prints.
- 16:9, widescreen, for video thumbnails, presentation slides and website banners.
- Free, for any shape, such as cutting out a receipt or a single paragraph from a screenshot.
Rotate and flip
Rotation turns the image in 90-degree steps, fixing sideways photos. Flipping mirrors the image horizontally or vertically, handy for selfies that come out reversed or for matching the direction of a design layout. Keep in mind that flipping an image containing text makes it read backward.
How cropping works under the hood
The crop box you draw is translated into a rectangle in the original image's pixel coordinates, not the scaled-down preview, so the output keeps full resolution within the area you selected. The browser then copies just that rectangle onto a new canvas, applying any rotation or flip, and encodes the result. Nothing is uploaded; the work happens in your browser.
About EXIF orientation
Many cameras store photos in a fixed sensor orientation and add an EXIF tag saying how to rotate them for display. Modern browsers apply that tag when showing and drawing the image, so what you see in the preview is what you get. The saved file has the rotation applied to the pixels and no longer needs the tag, which means it will look correct in apps that ignore EXIF data.
Tips for better crops
- Use the rule of thirds. Placing the subject roughly a third of the way in from an edge usually looks more natural than dead center.
- Leave room in the direction of movement or gaze. A person looking right reads better with space on the right.
- Do not crop too tight. Every crop throws away pixels. A heavily cropped phone photo can end up too small to print well; check the output dimensions shown below the preview.
- Crop before resizing so you keep as much detail as possible in the final image.
For PNG and WebP inputs with transparency, the cropped area keeps its transparent pixels; saving as JPG fills them with a solid color.