mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-12 01:36:54 +02:00
Improve image transformations for social media posts
Update Cloudinary transformations for Facebook and Instagram feeds, removing 'gravity: auto' to ensure consistent aspect ratio padding. Replit-Commit-Author: Agent Replit-Commit-Session-Id: ae4037a0-2a6f-4530-9bac-79b543286bda Replit-Commit-Checkpoint-Type: intermediate_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/397bca8c-984f-43ff-841a-10897aeb8140/ae4037a0-2a6f-4530-9bac-79b543286bda/4KAFpKS
This commit is contained in:
1 parent
8cb3bf46a8
commit
da2098b5c1
2 files changed
+3
-3
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 161 KiB |
@@ -59,17 +59,17 @@ class CloudinaryService {
|
||||
if (!isVideo) {
|
||||
facebookFeedUrl = cloudinary.url(publicId, {
|
||||
transformation: [
|
||||
{ width: 1200, height: 630, crop: 'pad', gravity: 'auto', background: 'black' }
|
||||
{ width: 1200, height: 630, crop: 'pad', background: 'black' }
|
||||
]
|
||||
});
|
||||
instagramFeedUrl = cloudinary.url(publicId, {
|
||||
transformation: [
|
||||
{ width: 1080, height: 1080, crop: 'pad', gravity: 'auto', background: 'black' }
|
||||
{ width: 1080, height: 1080, crop: 'pad', background: 'black' }
|
||||
]
|
||||
});
|
||||
instagramStoryUrl = cloudinary.url(publicId, {
|
||||
transformation: [
|
||||
{ width: 1080, height: 1920, crop: 'pad', gravity: 'auto', background: 'black' }
|
||||
{ width: 1080, height: 1920, crop: 'pad', background: 'black' }
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user