Automatically enforce a standard image size for all post content images on uploa
-
Hi everyone,
I’m trying to standardize images across my WordPress posts to create consistent visual harmony.In Settings → Media, WordPress lets us define Thumbnail / Medium / Large, but those sizes don’t reliably solve my use case for images inserted inside post content. Authors upload images with different dimensions/aspect ratios, and when inserted into content, the results are inconsistent.
What I want:
- Enforce a standard “content image” size for every uploaded image used inside posts (e.g., 1200×675 or 1200×800).
- On upload, require at least a minimum dimension (so low-res images are rejected or flagged).
- Automatically resize and/or crop (center-crop or smart crop) so images look good and “fit” consistently.
- Ideally ensure that when an author inserts an image into the post, it defaults to this standard size (not random original sizes).
Right now I’m manually resizing images using free online image resizer websites,
ximagex
onlineimagekitQuestions:
- What’s the best approach/plugin for enforcing a consistent content-image size on upload?
- Is this better solved with a plugin, or a small custom solution using
wp_handle_upload/wp_generate_attachment_metadatafilters? - Any recommendations for a workflow that keeps quality high (WebP, compression) while maintaining consistent dimensions?
Thanks in advance!
Log in or create an account to reply