face-hh / griddycode

A code editor made with Godot. Code has never been more lit!
Apache License 2.0
1.82k stars 115 forks source link

Opening png files corrupts them #88

Open Symmettry opened 8 months ago

Symmettry commented 8 months ago

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):

tovade commented 7 months ago

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