StrataSource / vtex2

A VTF converter and editor
MIT License
44 stars 8 forks source link

Fail to compile valid png/jpeg image #40

Closed ENDERZOMBI102 closed 7 months ago

ENDERZOMBI102 commented 7 months ago

Was trying to get a vtf76 file to test some stuff, and so tried to compile the first image at hand, which failed repeatedly, tried with both the AUR package and the latest compiled-from-source version.

commands used (only included the .png attempt for brevity):

$ vtex2 convert -f bgra8888 avatar.png
Could not create VTF.
Could not add image data from file "avatar.png"

$ vtex2 convert -f rgba8888 avatar.png
Could not create VTF.
Could not add image data from file "avatar.png"

although not sure if relevant for this bug, we are on Linux (Arch btw)

Here attached the two images (original jpeg and imagemagick-converted png)

avatar avatar

ENDERZOMBI102 commented 7 months ago

it was user incompetence, vtfs need to be power of two, and 80 isn't one