cdwfs / img2ktx Goto Github PK
View Code? Open in Web Editor NEWConverts common image formats (PNG, JPG, etc.) to GPU-native compressed (BCn, ETC, ASTC) in KTX containers.
License: MIT License
Converts common image formats (PNG, JPG, etc.) to GPU-native compressed (BCn, ETC, ASTC) in KTX containers.
License: MIT License
Compressonator allows more customizable compression, including a speed/quality slider and various format-specific tweaks. See which ones are worth exposing.
As I'm about to release a major update, this seems as good a time as any to start tracking what's changed.
Motivation:
Machine : ubuntu 18.04
[ 33%] Building CXX object CMakeFiles/img2ktx.dir/img2ktx.cpp.o
[ 66%] Building CXX object CMakeFiles/img2ktx.dir/build_version.cpp.o
[100%] Linking CXX executable img2ktx
/usr/bin/ld: cannot find -lIMG2KTX_ISPC_TEXCOMP_LIB-NOTFOUND
collect2: error: ld returned 1 exit status
CMakeFiles/img2ktx.dir/build.make:112: recipe for target 'img2ktx' failed
make[2]: *** [img2ktx] Error 1
CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/img2ktx.dir/all' failed
make[1]: *** [CMakeFiles/img2ktx.dir/all] Error 2
Makefile:90: recipe for target 'all' failed
make: *** [all] Error 2
Hi,
Is there pre-built binaries for linux?
I do not see in the Releases page (https://github.com/cdwfs/img2ktx/releases)
Thank you.
What do you think about adding functionality for converting .ktx to images, for example .png, to this project?
I would love it if you released this code under a license so that it could be integrated into other projects without worries. The MIT license would be savory. The image compressor appears to already be MIT, and the STB stuff is public domain.
I use cmake to build the library then run:
./img2ktx -o out.ktx -f BC3 input/not_kitty.png
here's not_kitty.png:
not_kitty.zip
Loaded input/not_kitty.png -- width=32 height=32 comp=3
compressing mip 0 layer 0: width=32 height=32 pitch_x=32 pitch_y=32
AddressSanitizer:DEADLYSIGNAL
=================================================================
==3641==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x0000008c0f2a bp 0x7ffd3a604c00 sp 0x7ffd3a604778 T0)
==3641==The signal is caused by a READ memory access.
==3641==Hint: address points to the zero page.
#0 0x8c0f29 in _fini (/opt/img2ktx/img2ktx+0x8c0f29)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/opt/img2ktx/img2ktx+0x8c0f29) in _fini
==3641==ABORTING
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.