mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-12 01:36:54 +02:00
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
This commit is contained in:
1 parent
4e32e97fe4
commit
ca0d3c6ff6
2 files changed
+12
-4
No files matched your search
@@ -46,6 +46,10 @@ externalPort = 6000
|
||||
localPort = 43245
|
||||
externalPort = 3001
|
||||
|
||||
[[ports]]
|
||||
localPort = 44509
|
||||
externalPort = 8000
|
||||
|
||||
[[ports]]
|
||||
localPort = 46681
|
||||
externalPort = 5173
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user