Git Product home page Git Product logo

img2ktx's People

Contributors

cdwfs avatar ruby0x1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

img2ktx's Issues

Expose additional compression options

Compressonator allows more customizable compression, including a speed/quality slider and various format-specific tweaks. See which ones are worth exposing.

Add version info / changelog

As I'm about to release a major update, this seems as good a time as any to start tracking what's changed.

  • Changes.txt file
  • Version info (hooked up to -v)

Move compression backend to Compressonator

Motivation:

  • ispc_texcomp hasn't been updated in years, including merging some PRs for significant-looking bugfixes. Compressonator is under active development (for now).
  • ispc_texcomp requires a fancy custom compiler, which complicates the build process and hinders both distribution and CI/testing. Compressonator can be easily built from source on any platform with a relatively modern C++ compiler.
  • Compressonator supports more output formats than ispc_texcomp.

compile problem

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

ktx2img?

What do you think about adding functionality for converting .ktx to images, for example .png, to this project?

ELI5 on these formats

  • What are BC1, BC3, BC7, ETC1, and ASTC?
  • What is KTX?
  • Is this different for FLIF, FUIF or "PIK by Google"?

Consider licensing this code

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.

DEADLYSIGNAL when compress into BC3 format

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.