face-hh/griddycode

Opening png files corrupts them

Opened this issue · 2 comments

Describe the bug
Opening png files corrupts them

To Reproduce
Steps to reproduce the behavior:

  1. open png file
  2. it's corrupted

Expected behavior
Either it doesn't corrupt it or it just disallows png and other image formats

Screenshots
on phone rn so i can't get but it's very obvious (image files drop to like 7 bytes)

Desktop (please complete the following information):

  • OS: Windows 10
  • Version [e.g. v1.0.3] v1.1.1

Same for literally any binary file.

I think its because of the way griddycode handles opening files. It loads files as a string so that may be the problem.