Comments (4)
It looks like the PixelDataFormat enumeration is more or less broken, possibly since its reworking in 715db6f in January, but removing the Flags attribute from it in 4023d3c is what has caused this to manifest. As a temporary workaround, uncomment the attribute again, which might however cause issues with some compressed pixel formats in particular. I'll look into fixing this problem later today.
from scarlet.
I tried removing the IsValid() check from the ImageBinary and everything worked out well. Problem is that I need to refine my someFlag
check as apparently I got it wrong and now almost all images get swizzled ;-) Also, the code is a crappy mess right now anyway so I'll probably rewrite it a few times (this is the .phyre image format I'm talking about... it's awfully badly documented)
Maybe the "IsValid()" check should be changed so that it tests each "group" of the PixelFormat by itself, i.e. test the color channel bits(mask out everything else), then check the PixelOrder (mask out the color channel stuff), etc.?
from scarlet.
I created a sample of how the IsValid() call could be changed. See PR #17
This should make it work again even without the flags attribute
from scarlet.
Merged PR #17. I'm also sorry for not actually addressing your PRs over the week, I've honestly been a bit frustrated with this project, and certain things I've been trying with it not working out (namely recreating game-format images from PNGs). I will try to get back into the project over the next couple of days or so.
from scarlet.
Related Issues (20)
- Export GBIX to PNG HOT 12
- .png to .tex : Add support
- Custom "format detection" Attribute HOT 3
- Nonstandard GXT in Vita YU-NO (no magic) HOT 9
- New KSLT format version
- Suggestion: Add support for decompression of strange journey redux files
- Index outside bounds
- Eating the end of GNF files.
- Says MPK files are not supported? HOT 1
- Unsupported GXT textures in MGS HD Collection HOT 1
- Not support txp format with ColorCount 0
- Decrypt SHTX and SHTXFS before convert them to PNG. HOT 7
- ADD SUPPORT TO SWITCH .TEX FORMAT
- Feature request: Parameter to skip user input HOT 2
- System.ArgumentException - Illegal Characters in path HOT 1
- convert txf to png HOT 2
- Unsupported GXT file HOT 4
- Converting .btx for DRAE:UDG PC HOT 3
- Export png to kslt
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scarlet.