Skip to content

Commit cad3584

Browse files
jocschMarkus Joschko
andauthored
Fix display of png images (#1609)
Co-authored-by: Markus Joschko <[email protected]>
1 parent 7afd474 commit cad3584

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/mgt-element/src/utils/Batch.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ export class Batch implements IBatch {
189189
response.content = 'data:image/jpeg;base64,' + r.body;
190190
} else if (r.headers['Content-Type'].includes('image/pjpeg')) {
191191
response.content = 'data:image/pjpeg;base64,' + r.body;
192+
} else if (r.headers['Content-Type'].includes('image/png')) {
193+
response.content = 'data:image/png;base64,' + r.body;
192194
} else {
193195
response.content = r.body;
194196
}

0 commit comments

Comments
 (0)