# Can I use compressed texture image files in C++ VTK?

**URL:** <https://discourse.vtk.org/t/can-i-use-compressed-texture-image-files-in-c-vtk/10783>\
**Category:** Development\
**Created:** [February 24, 2023, 5:50am UTC](https://discourse.vtk.org/t/can-i-use-compressed-texture-image-files-in-c-vtk/10783 "2023-02-24T05:50:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![araato](https://discourse.vtk.org/user_avatar/discourse.vtk.org/araato/32/6611_2.png) [@araato](https://discourse.vtk.org/u/araato)\
**Post date:** [February 24, 2023, 5:50am UTC](https://discourse.vtk.org/t/can-i-use-compressed-texture-image-files-in-c-vtk/10783/1 "2023-02-24T05:50:47Z")

</div>

Hello everyone,

I would like to know if it is possible to use texture image files in .ktx2 or .basisu format in C++ VTK (not VTK.js).

If it is not implemented yet, how can I approach it?

---

<div class="post-metadata">

**Author:** ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)\
**Post date:** [February 24, 2023, 7:11am UTC](https://discourse.vtk.org/t/can-i-use-compressed-texture-image-files-in-c-vtk/10783/2 "2023-02-24T07:11:01Z")

</div>

Is this something the OpenGL driver needs to support or is it a file format VTK needs to be able to read from disk?

@sankhesh

---

<div class="post-metadata">

**Author:** ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)\
**Post date:** [February 24, 2023, 8:42am UTC](https://discourse.vtk.org/t/can-i-use-compressed-texture-image-files-in-c-vtk/10783/3 "2023-02-24T08:42:51Z")

</div>

Its more about having a image reader for this format that can produce a vtkImageData.
