Per-platform image cropping (multi-aspect-ratio) #74

Closed
opened 2026-06-23 13:32:13 +00:00 by jmiller · 1 comment
Owner

Summary

Allow users to set different image crops per social platform, since each platform has different optimal aspect ratios.

Why

  • Facebook uses 1.91:1, Twitter uses 2:1 (summary_large_image) or 1:1 (summary), Pinterest prefers 2:3 vertical, WhatsApp uses square
  • Currently MokoOG resizes to a single 1200x630 (Facebook-optimized)
  • No extension on any CMS does this well — opportunity to lead

Implementation

  • Image cropper UI in the content plugin form (JavaScript-based)
  • Platform presets: Facebook (1200x630), Twitter (1200x600), Pinterest (1000x1500), WhatsApp (400x400)
  • Store per-platform crop coordinates in #__mokoog_tags (JSON field or separate columns)
  • Generate and cache cropped variants in images/mokoog/
  • Output platform-specific images via appropriate meta tags
  • Extend ImageHelper with multi-crop support
## Summary Allow users to set different image crops per social platform, since each platform has different optimal aspect ratios. ## Why - Facebook uses 1.91:1, Twitter uses 2:1 (summary_large_image) or 1:1 (summary), Pinterest prefers 2:3 vertical, WhatsApp uses square - Currently MokoOG resizes to a single 1200x630 (Facebook-optimized) - No extension on any CMS does this well — opportunity to lead ## Implementation - Image cropper UI in the content plugin form (JavaScript-based) - Platform presets: Facebook (1200x630), Twitter (1200x600), Pinterest (1000x1500), WhatsApp (400x400) - Store per-platform crop coordinates in `#__mokoog_tags` (JSON field or separate columns) - Generate and cache cropped variants in `images/mokoog/` - Output platform-specific images via appropriate meta tags - Extend ImageHelper with multi-crop support
jmiller added this to the v3.0 — Platform & Intelligence milestone 2026-06-23 13:32:13 +00:00
jmiller added the enhancement label 2026-06-23 13:32:13 +00:00
Author
Owner

Branch created: feature/74-per-platform-image-cropping-multi-aspect

git fetch origin
git checkout feature/74-per-platform-image-cropping-multi-aspect
Branch created: [`feature/74-per-platform-image-cropping-multi-aspect`](https://git.mokoconsulting.tech/MokoConsulting/MokoSuiteOpenGraph/src/branch/feature/74-per-platform-image-cropping-multi-aspect) ```bash git fetch origin git checkout feature/74-per-platform-image-cropping-multi-aspect ```
Sign in to join this conversation.
Priority Medium
Type Feature
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoSuiteOpenGraph#74