Resize by one dimension when possible
If you know the width but not the exact height, set one dimension and preserve the ratio. That is usually the safest option for website and CMS workflows where distorted assets are more harmful than slightly different heights.
Do not resize blindly across all formats
Icons, marketing banners and screenshots do not behave the same way. ICO outputs have square constraints, while delivery images can often preserve ratio and still serve the visual goal.
Why automation matters
Once resizing rules become repetitive, they belong in an async conversion flow or API integration instead of being repeated manually in design tools.