From 1ac47b5d4bcfa253444bfe524d464e86fb916a0e Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Sat, 11 Oct 2025 09:15:47 +0000 Subject: [PATCH] Fix image generation to correctly align text in the editor Update image editor canvas properties including width, height, x, and y to resolve text alignment issues. 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 --- client/src/pages/image-editor.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/src/pages/image-editor.tsx b/client/src/pages/image-editor.tsx index 975a352..bcfbf4e 100644 --- a/client/src/pages/image-editor.tsx +++ b/client/src/pages/image-editor.tsx @@ -105,7 +105,12 @@ export default function ImageEditor() { backgroundColor: null, scale: 2, // Higher quality useCORS: true, - allowTaint: true + allowTaint: true, + logging: false, + width: previewRef.current.offsetWidth, + height: previewRef.current.offsetHeight, + x: 0, + y: 0 }); // Convert canvas to blob