Closed Petschko closed 2 years ago
Please tell me if somebody is able to reproduce this problem... Please tell me which Browser (+Version) you use. Please also tell me your OS. I need more information to remove this bug because I'm not able to reproduce it...
Bug occours on:
Bug seems to appear only in chrome
Checked this one again. You can't view it in the Browser. But if you Download it, you get the right image... so its works, may Google-Chrome has some problems displaying blob-files?
A little hint where to dig:
https://github.com/Petschko/RPG-Maker-MV-Decrypter/blob/33d8db9ff03ad1d7a08b2215108afcdd721bdea3/scripts/RPGFile.js#L189
Blob()
constructor can handle MIME type in second parameter, like Blob([ buf ], { type: mediaType })
.
Oooh!
Thank you for the information, I will try that out!
And what about saving files on IE: data URI is not supported, so check out navigator.msSaveBlob
. Set it on "Save" onclick
option like navigator.msSaveBlob(blob, fileName)
, where blob
is this.blob
in previous comment.
I've got an E-Mail of somebody who get only cryptic stuff as decrypt-result. It seems that the file is decrypted but the header is messed up.
I asked for files to reproduce the problem but for me it was decrypted like normal. Maybe some other have the same issue please tell me here!
The bad result look like this: `‰PNG
��� IHDR�� °�� Ð ���€ ‰¯��� pHYs�� Ä�� Ä •+ ��9ìiTXtXML:com.adobe.xmp�����<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>