Skip to content

fix(tarko): image data missing in workspace#1373

Merged
ulivz merged 3 commits intomainfrom
fix/image-renderer-workspace-display
Sep 4, 2025
Merged

fix(tarko): image data missing in workspace#1373
ulivz merged 3 commits intomainfrom
fix/image-renderer-workspace-display

Conversation

@ulivz
Copy link
Member

@ulivz ulivz commented Sep 4, 2025

Summary

Fixed ImageRenderer to properly handle data URLs in panelContent.source field, resolving "Image data missing" error in workspace when users paste images.

The issue occurred because extractImageData function didn't handle the case where panelContent.source contains a complete data URL like data:image/webp;base64,.... Added proper data URL detection and MIME type extraction.

Before

image

After

image

Checklist

  • My change does not involve the above items.

Fixed ImageRenderer to properly extract image data from panelContent.source
when it contains a complete data URL (data:image/webp;base64,...).
@netlify
Copy link

netlify bot commented Sep 4, 2025

Deploy Preview for agent-tars-docs ready!

Name Link
🔨 Latest commit 7533d25
🔍 Latest deploy log https://app.netlify.com/projects/agent-tars-docs/deploys/68b9a6df3f9e750008e17b70
😎 Deploy Preview https://deploy-preview-1373--agent-tars-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Added example comment showing the panelContent format that contains
direct data URL in source field for better code readability.
@ulivz ulivz changed the title fix(tarko): handle data URL in ImageRenderer workspace display fix(tarko): image data missing in workspace Sep 4, 2025
Changed single-line comments to multi-line JSDoc format
for better readability of panelContent data structure.
@ulivz ulivz merged commit 2a79e1d into main Sep 4, 2025
10 checks passed
@ulivz ulivz deleted the fix/image-renderer-workspace-display branch September 4, 2025 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments