Crop
Cropping is an image-processing operation that selects a subregion of an image and excludes the portions outside it.
WordPress Power Toolkit: Harness AI to build next-level websites
A crop tool is an image-editing control for selecting and retaining part of an image while removing content outside the selection.
- How it is used
- Uses cropping to strengthen an image’s focal point and balance while choosing what remains visible.
- How deep it goes
- Defines edge trimming and walks through positioning a focal point with crop handles; leaves the final aesthetic choice to judgment.
- Examples
- Shows a farmhouse moved onto a grid intersection, alternative portrait crops, and an AI crop that initially removed its subjects.
- What you can do after
- Apply it via a photo editor’s crop tool to reframe an image and test a stronger focal point.
Read how WordPress Power Toolkit: Harness AI to build next-level websites explains crop →
Inside Deep Learning: Math, Algorithms, Models
A preprocessing operation that extracts a spatial subregion from an image, here used to create training and test variants for shift analysis.
- How it is used
- Creates varied training inputs and controlled test crops for examining how image shifts affect CNN predictions.
- How deep it goes
- Demonstrates crop selection in a PyTorch data pipeline and loops over shifted sub-images to compare class probabilities.
- Examples
- Uses CIFAR-10 32 × 32 images, random and center 24 × 24 crops, and offset crops.
- What you can do after
- Apply it via PyTorch torchvision transforms to vary training crops and keep test crops deterministic.
Read how Inside Deep Learning: Math, Algorithms, Models explains crop →
Also covered in
- Human-in-the-Loop Machine Learning: Active learning and annotation for human-centered AI
- Deep Learning with PyTorch, Second Edition
What to know first
- digital imageA digital image is a digital representation of visual content, commonly encoded as an arrangement of pixels or other graphical elements.
Related concepts
- maskalternative to · A mask is a representation or mechanism that selectively identifies, includes, excludes, reveals, or obscures specified parts of data, a system, or a computation.
- outpaintingcontrasts with · Outpainting is an image-generation technique that extends an existing image beyond its original boundaries by synthesizing content in newly added regions.
- rule of thirdsuses · The rule of thirds is a visual-composition guideline that divides an image or layout into nine sections to guide focal-point placement and balance.
- focal pointconfigures · A focal point is a distinguished point or location that serves as a central reference for attention, measurement, or analysis.
- GPT modelproduced by · A GPT model is a generative, autoregressive Transformer language model in the family developed by OpenAI.
Questions about crop
What is crop?
Cropping is an image-processing operation that selects a subregion of an image and excludes the portions outside it.
Which Manning books explain crop?
WordPress Power Toolkit: Harness AI to build next-level websites and Inside Deep Learning: Math, Algorithms, Models.
What should I know before learning crop?
Manning books that teach crop usually introduce digital image first.
What is the difference between crop and mask?
Cropping is an image-processing operation that selects a subregion of an image and excludes the portions outside it. A mask is a representation or mechanism that selectively identifies, includes, excludes, reveals, or obscures specified parts of data, a system, or a computation.
What kinds of crop are there?
Kinds of crop include center crop.
What is crop also called?
Crop is also called cropping.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

