gimp/plug-ins/file-dds
Jacob Boerema dec5ca2219 plug-ins: fix #7566 Import Issues with Indexed .dds Images
This proved to be both an import and export issue.
Our import set expected format as RGB, causing garbled image output.
Our export for indexed images converted to grayscale first, although the
palette was correctly saved. This caused wrong palette indexes on import.

For indexed images, on import, we request the actual indexed format after
creating the layer with gimp_drawable_get_format, which gives us a correct
indexed Babl format.
Also added logic for indexed with alpha, although I have no sample images
to test this.
For indexed images on export we do the same: use gimp_drawable_get_format
to get an actual indexed Babl format.
2021-12-01 15:01:48 -05:00
..
.gitignore plug-ins: add .gitignore file to file-dds 2019-01-30 18:48:28 +01:00
COPYING file-dds: add original source code of the DDS plug-in 2019-01-02 18:33:46 +01:00
LICENSE file-dds: add original source code of the DDS plug-in 2019-01-02 18:33:46 +01:00
LICENSE.nvtt file-dds: add original source code of the DDS plug-in 2019-01-02 18:33:46 +01:00
Makefile.am plug-ins: mktables.c in file-dds is unused. 2019-10-20 17:11:34 +02:00
README file-dds: add original source code of the DDS plug-in 2019-01-02 18:33:46 +01:00
README.dxt Fix various typos 2019-09-21 17:10:46 +00:00
TODO file-dds: add original source code of the DDS plug-in 2019-01-02 18:33:46 +01:00
color.c plug-ins: big formatting and indentation cleanup in file-dds 2019-05-23 14:34:00 +02:00
color.h plug-ins: fix #6755 DDS RGB10A2 has Red and Blue swapped. 2021-04-23 14:31:50 -04:00
dds.c plug-ins: fix many GimpImageProcedure to new run() API. 2021-04-04 01:40:00 +02:00
dds.h plug-ins: fix #6755 DDS RGB10A2 has Red and Blue swapped. 2021-04-23 14:31:50 -04:00
ddsread.c plug-ins: fix #7566 Import Issues with Indexed .dds Images 2021-12-01 15:01:48 -05:00
ddsread.h plug-ins: file-dds (read) cleaned up a bit for better error handling. 2020-07-26 13:32:18 +02:00
ddswrite.c plug-ins: fix #7566 Import Issues with Indexed .dds Images 2021-12-01 15:01:48 -05:00
ddswrite.h plug-ins: remove ddsplugin.h and add ddsread.h and ddswrite.h 2019-10-02 20:54:16 +02:00
dxt.c plug-ins: set blue channel of BC5 dds images to 0 instead of 255. 2021-01-05 17:58:20 -05:00
dxt.h plug-ins: big formatting and indentation cleanup in file-dds 2019-05-23 14:34:00 +02:00
dxt_tables.h plug-ins: big formatting and indentation cleanup in file-dds 2019-05-23 14:34:00 +02:00
endian_rw.h plug-ins: big formatting and indentation cleanup in file-dds 2019-05-23 14:34:00 +02:00
imath.h plug-ins: big formatting and indentation cleanup in file-dds 2019-05-23 14:34:00 +02:00
meson.build meson: Use libgimp(ui)_dep in plug-ins meson files 2020-05-11 07:01:37 +02:00
mipmap.c plug-ins: big formatting and indentation cleanup in file-dds 2019-05-23 14:34:00 +02:00
mipmap.h plug-ins: big formatting and indentation cleanup in file-dds 2019-05-23 14:34:00 +02:00
misc.c plug-ins: port file-dds to GimpPlugIn and libgimp objects 2019-08-27 14:43:38 +02:00
misc.h plug-ins: port file-dds to GimpPlugIn and libgimp objects 2019-08-27 14:43:38 +02:00
vec.h plug-ins: big formatting and indentation cleanup in file-dds 2019-05-23 14:34:00 +02:00

README

DDS plugin for The GIMP
(C) 2004-2012 Shawn Kirst <skirst@gmail.com>,
with parts (C) 2003 Arne Reuter <homepage@arnereuter.de> where specified.
==========================================

This is a plugin for GIMP version 2.4.x. It allows you to load and save
images in Direct Draw Surface (DDS) format.

Features
==========================================
* Load/Save DDS files using DXT texture compression
* Automatic mipmap generation on save
* Load mipmaps into separate layers
* Load cube map faces and volume map slices into separate layers
* Cube and volume map saving
* Pixel conversion selection for custom formats (RGBA4, R5G6B5, RGB10A2, etc.)
* Load/save DDS files, optionally using DirectX texture compression (DXT)
* Optional automatic mipmap generation when saving
* Load mipmaps into separate layers
* Load cube map faces and volume map slices into separate layers
* Save cube maps and volume maps with automatic mipmap generation support
* Save image with a custom pixel format
* Non-power-of-two image loading and saving support with automatic mipmap generation support
* Compliant with DirectX 10 compressed formats
    

Installation
==========================================
See the file INSTALL for installation instructions