fix: use correct MIME types for image preview #491
Reference in New Issue
Block a user
Delete Branch "fix/image-preview"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
image/*wildcard with specific MIME types in data URLsRoot cause:
data:image/*;base64,...uses a wildcard MIME type which is not valid in data URLs. Browsers require specific MIME types likeimage/pngorimage/jpeg.Before:
data:image/*;base64,{content}→ browser fails to parseAfter:
data:image/png;base64,{content}→ browser renders correctlyRelated to #408