Repository navigation
Allow image source from str or non-PIL file handle - #64
Conversation
36e2acd to
2de113c
Compare
|
Hi, great to see you again. The main idea behind forcing the user to pass PIL.Image was, that later on texture compression could be added to UnityPy, which would make handling other types a bit troublesome. Regarding the importance of compression, it's required for DXT1,5 and some ECT textures that are used in shaders. I already created a lib for that and haven't come around to add it yet. So overall, the only change that should be done regarding the texture2d for now is adding the PIL.open to the image setter. The cab handling you added is fine and can be accepted as it is. |
a3f4b36 to
4b3adf1
Compare
(while minding possible texture compression) Allow external cab name setting through File
4b3adf1 to
79b9bef
Compare
|
Looks good now. I just noticed that I forgot to mention something else last time, |
This allows assigning images by their path or opened file handle.
Also adds possibility to change the cab name from outside.