From ca0d3c6ff648ae557e4d2877d5e412661d140882 Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Thu, 9 Oct 2025 11:32:12 +0000 Subject: [PATCH] Update media processing and publishing strategy for social media Refine Cloudinary media processing pipeline and update publishing strategy to use original image URLs for social media posts, while using transformation URLs solely for UI previews. Replit-Commit-Author: Agent Replit-Commit-Session-Id: ae4037a0-2a6f-4530-9bac-79b543286bda Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/397bca8c-984f-43ff-841a-10897aeb8140/ae4037a0-2a6f-4530-9bac-79b543286bda/AfZNdRv --- .replit | 4 ++++ replit.md | 12 ++++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.replit b/.replit index d2b4742..e1a1709 100644 --- a/.replit +++ b/.replit @@ -46,6 +46,10 @@ externalPort = 6000 localPort = 43245 externalPort = 3001 +[[ports]] +localPort = 44509 +externalPort = 8000 + [[ports]] localPort = 46681 externalPort = 5173 diff --git a/replit.md b/replit.md index d067604..f37ed4c 100644 --- a/replit.md +++ b/replit.md @@ -24,12 +24,16 @@ The backend runs on **Node.js** with **Express.js**, fully implemented in **Type ### Media Processing Pipeline -The platform leverages **Cloudinary** for cloud-based image and video storage and transformation. Original files are uploaded to Cloudinary, which then automatically generates transformation URLs for various platform-specific formats: -- **Facebook Feed**: 1080x1080px with intelligent center crop (`crop: fill`) - square format, no borders -- **Instagram Feed**: 1080x1080px with padding (`crop: pad`) - maintains aspect ratio with auto background +The platform leverages **Cloudinary** for cloud-based image and video storage and transformation. Original files are uploaded to Cloudinary and stored in the database. + +**Publishing Strategy**: All publications to Facebook/Instagram use the **original image URL** - the platforms handle cropping and formatting automatically based on the post type (feed/story/carousel). + +**Transformations for Preview Only**: Cloudinary generates transformation URLs for UI preview purposes only: +- **Facebook Landscape**: 1200x630px with intelligent center crop (`crop: fill`) - landscape format +- **Facebook Feed / Instagram Feed**: 1080x1080px with intelligent center crop (`crop: fill`) - square format - **Instagram Story**: 1080x1920px with padding (`crop: pad`) - vertical format -These public IDs and transformation URLs are stored in the database, allowing optimized images to be served via Cloudinary's CDN. +These transformation URLs are stored in the database (`facebookLandscapeUrl`, `facebookFeedUrl`, `instagramFeedUrl`, `instagramStoryUrl`) and displayed in the media library for visual preview, but are NOT used when publishing to social media platforms. ### Authentication & Authorization