Fix Raw Image Handling and Improve Text File Encoding Compatibility (#233)

* Fix text and RAW image handling

- Fix RAW images not being loaded correctly in the preview panel
- Fix trying to read size data from null images
- Refactor `os.stat` to `<Path object>.stat()`
- Remove unnecessary upper/lower conversions
- Improve encoding compatibility beyond UTF-8 when reading text files
- Code cleanup

* Use chardet for character encoding detection
This commit is contained in:
Travis Abendshien
2024-06-02 20:18:40 -07:00
committed by GitHub
parent 0137ed5be8
commit 0646508c24
5 changed files with 50 additions and 31 deletions

View File

@@ -8,3 +8,4 @@ typing_extensions>=3.10.0.0,<=4.11.0
ujson>=5.8.0,<=5.9.0
rawpy==0.21.0
pillow-heif==0.16.0
chardet==5.2.0