mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-11 17:26:45 +02:00
Improve image processing by using original image quality
Update image editor to use original image URLs for overlay configuration, ensuring full image dimensions and quality are preserved in server-side processing. 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/Hpj2VzR
This commit is contained in:
1 parent
773ca663f9
commit
e60000bca4
3 files changed
+2
-1
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 703 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 133 KiB |
@@ -101,9 +101,10 @@ export default function ImageEditor() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Send overlay configuration to server - let server handle image processing
|
// Send overlay configuration to server - let server handle image processing
|
||||||
|
// IMPORTANT: Always use originalUrl (not previewUrl) to preserve full image dimensions
|
||||||
const overlayConfig = {
|
const overlayConfig = {
|
||||||
mediaId: selectedMedia.id,
|
mediaId: selectedMedia.id,
|
||||||
imageUrl: previewUrl || selectedMedia.originalUrl,
|
imageUrl: selectedMedia.originalUrl, // Use original for full quality
|
||||||
ribbon: ribbon.enabled ? {
|
ribbon: ribbon.enabled ? {
|
||||||
text: ribbon.text,
|
text: ribbon.text,
|
||||||
color: ribbon.color,
|
color: ribbon.color,
|
||||||
|
|||||||
Reference in new issue
Block a user