Store the recipe. Protect the original.
Keep the source image and the edit instructions separate. A recipe can describe a crop rectangle, target dimensions, color adjustments, and output settings without replacing the original. This makes revision, comparison, and regeneration easier, and lets a product adapt a photo to new layouts later.
01 /Normalize the source
Read dimensions and orientation before choosing a crop. Decide how embedded metadata and color profiles should be handled in your processing environment.
02 /Apply a deliberate crop
Choose whether the crop should follow a user selection, a saved focal point, or a documented automatic rule. A square avatar and a wide product banner need different compositions.
03 /Resize for the display
Choose output widths based on actual layout slots and reasonable device densities. Generating every possible width makes the cache and processing workload harder to control.
04 /Export and inspect
Set format, quality, transparency, and metadata behavior explicitly. Inspect detailed edges, gradients, small text, and any critical color before standardizing an export preset.