diff --git a/attached_assets/image_1759407780664.png b/attached_assets/image_1759407780664.png new file mode 100644 index 0000000..ed33f16 Binary files /dev/null and b/attached_assets/image_1759407780664.png differ diff --git a/client/src/components/media-upload.tsx b/client/src/components/media-upload.tsx index 01c4378..a780733 100644 --- a/client/src/components/media-upload.tsx +++ b/client/src/components/media-upload.tsx @@ -167,7 +167,7 @@ export default function MediaUpload() { Facebook preview ) : (
@@ -191,7 +191,7 @@ export default function MediaUpload() { Instagram feed preview ) : (
@@ -215,7 +215,7 @@ export default function MediaUpload() { Instagram story preview ) : (
diff --git a/server/services/cloudinary.ts b/server/services/cloudinary.ts index f415fb2..4d48812 100644 --- a/server/services/cloudinary.ts +++ b/server/services/cloudinary.ts @@ -51,39 +51,17 @@ class CloudinaryService { const publicId = uploadResult.public_id; const originalUrl = uploadResult.secure_url; - // Generate transformation URLs manually with lpad (limit pad) for images + // For now, use the original URL for all formats - no transformations + // The frontend will handle display with CSS to prevent cropping let facebookFeedUrl = null; let instagramFeedUrl = null; let instagramStoryUrl = null; if (!isVideo) { - // Use lpad (limit pad) - only scales down if needed, adds padding to fit dimensions - facebookFeedUrl = cloudinary.url(publicId, { - width: 1200, - height: 630, - crop: 'lpad', - background: 'black', - fetch_format: 'auto', - quality: 'auto' - }); - - instagramFeedUrl = cloudinary.url(publicId, { - width: 1080, - height: 1080, - crop: 'lpad', - background: 'black', - fetch_format: 'auto', - quality: 'auto' - }); - - instagramStoryUrl = cloudinary.url(publicId, { - width: 1080, - height: 1920, - crop: 'lpad', - background: 'black', - fetch_format: 'auto', - quality: 'auto' - }); + // Use original image for all formats - NO CROPPING + facebookFeedUrl = originalUrl; + instagramFeedUrl = originalUrl; + instagramStoryUrl = originalUrl; } return {