[FEATURE] Automatic OG Image Resizing and Optimization #2

Closed
opened 2026-05-23 22:27:54 +00:00 by jmiller · 0 comments
Owner

Feature Description

Auto-resize images to 1200x630px (OG recommended) when selected as OG image.

Problem or Use Case

Social platforms need specific image sizes. Most article images don't match, causing poor sharing previews.

Proposed Solution

  • Check minimum dimensions (600x315px)
  • Generate optimized copy at 1200x630px in images/mokoog/generated/
  • Configurable target dimensions, quality, fit mode (crop/contain)
  • Use GD or Imagick

Implementation Details

  • New Helper/ImageHelper.php
  • New column: og_image_generated
  • Plugin config for width, height, quality
  • Cleanup generated images on OG record delete
## Feature Description Auto-resize images to 1200x630px (OG recommended) when selected as OG image. ## Problem or Use Case Social platforms need specific image sizes. Most article images don't match, causing poor sharing previews. ## Proposed Solution - Check minimum dimensions (600x315px) - Generate optimized copy at 1200x630px in images/mokoog/generated/ - Configurable target dimensions, quality, fit mode (crop/contain) - Use GD or Imagick ## Implementation Details - New Helper/ImageHelper.php - New column: og_image_generated - Plugin config for width, height, quality - Cleanup generated images on OG record delete
jmiller added the enhancementpriority: high labels 2026-05-23 22:27:54 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoJoomOpenGraph#2