bug with .dds pictures

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: XnTriq, helmut, xnview

Scotvince
Posts: 2
Joined: Thu Oct 12, 2023 11:04 am

bug with .dds pictures

Post by Scotvince »

I don't know why converting an image into .dds with xn convert doesn't work. The final image is completely hatched as you can see on the screenshot.

https://imgur.com/g26P2ez

To precise the problem, the littles black&white hatched pictures you see in the center of the screenshot are in .dds into the game files. I convert pictures from png to .dds and I integrate them in the game. All online converters create correct photos, but not xn converter (which I need to use because of the multiple conversions possibility). Using xn converter from .png to .dds creates hatched photos.
KimKling
Posts: 1
Joined: Fri Jan 12, 2024 4:54 pm

Re: bug with .dds pictures

Post by KimKling »

Scotvince wrote: Thu Oct 12, 2023 11:18 am I don't know why converting an image into .dds with xn convert doesn't work. The final image is completely hatched as you can see on the screenshot.

https://imgur.com/g26P2ezsuika game

To precise the problem, the littles black&white hatched pictures you see in the center of the screenshot are in .dds into the game files. I convert pictures from png to .dds and I integrate them in the game. All online converters create correct photos, but not xn converter (which I need to use because of the multiple conversions possibility). Using xn converter from .png to .dds creates hatched photos.

To fix this issue, you can try the following solutions:
  • Use a different image converter that supports the .dds format and its compression methods.
  • Use a different compression method or quality setting in the xn convert software, and see if the output is better. You can change the compression method and the quality setting in the Output tab, under the Format Options section.
  • Use a different image editor or viewer that can open and edit .dds files.
User avatar
j7n
Posts: 18
Joined: Tue Mar 03, 2020 7:28 am

Re: bug with .dds pictures

Post by j7n »

XN only supports "round" image dimensions such as 1024*1024. From how the rows are misaligned, you can clearly see there is a width mismatch issue. If you ever opened RAW files, you'll recognize it. DDS support is still very limited. It only outputs DXT5 even if there is no alpha, and no mipmaps.

You can use free Photoshop CS2 + Nvidia Tools (old version)

Create an Action with save to DDS. Then use File > Automate > Batch
I don't think the action saves any parameters, so the last chosen DDS options will be used.