Sign in to follow this  
M0lz

Request - Display Image format information

Recommended Posts

What kind of image format am I working on, and what format do I need to save it as to be accepted by whatever uses that image?

 

Does it have an Alpha Channel

Does it use compression

 

With Paint.NET there is no Image Information, for example :

 

Load up any of the now supported .dds files, BC1 (DXT1), BC2 (DXT3), BC3 (DXT5), BC4, BC5, BC6H and BC7 compressed formats and the A8R8G8B8, X8R8G8B8, A8B8G8R8, A1R5G5B5, A4R4G4B4 and R5G6B5 uncompressed formats.

 

I now need to save the file in the original format .. But have no idea which to choose. If its a game Diffuse Texture, it should be BC1 (DXT1), if it has an Alpha Channel it should be BC2 (DXT3), if it is a Normal / Bump map texture it should be saved as a BC3 (DXT5) or even BC7 / ARGB8 uncompressed - Without knowing the original format we do not know what to save it as and what formats can be applied either with or without compression.

 

https://docs.microsoft.com/en-us/windows/win32/direct3d11/texture-block-compression-in-direct3d-11

 

The new plugin supporting most of these can obviously read all of the formats ..

 

.. Does it give Paint.NET any information which could be used to inform the user ?

 

The Image menu in Paint.NET could have an "Information" option which when selected pops up an information window with all relevant format info about the file currently loaded.

 

Would also be useful for people who do not know how to enable view of file extensions in windows, so images like .png .jpg etcetera would be known.

 

Edit : I had some of the BC names - DX names incorrect.

Edited by M0lz

Share this post


Link to post
Share on other sites
7 hours ago, M0lz said:

With Paint.NET there is no Image Information, for example :

 

Load up any of the now supported .dds files, BC1 (DXT1), BC2, BC3 (DXT2), BC4, BC5 (DXT3), BC6H and BC7 compressed formats and the A8R8G8B8, X8R8G8B8, A8B8G8R8, A1R5G5B5, A4R4G4B4 and R5G6B5 uncompressed formats.

 

The Intel® Texture Works Plugin for Photoshop® does not show any of that information either.

 

7 hours ago, M0lz said:

Does it give Paint.NET any information which could be used to inform the user ?

 

The DDS plugin does not give any format information to Paint.NET.

 

7 hours ago, M0lz said:

I now need to save the file in the original format .. But have no idea which to choose. If its a game Diffuse Texture, it should be BC1 (DXT1), if it has an Alpha Channel it should be BC3 (DXT2), if it is a Normal / Bump map texture it should be saved as a BC5 (DXT3) or even BC7 / ARGB8 uncompressed - Without knowing the original format we do not know what to save it as and what formats can be applied either with or without compression.

 

That can be solved with a file naming scheme that describes the file type.

For example, Skyrim textures use suffixes that describe the texture type, _n for normal maps, _g for glow maps etc.

Share this post


Link to post
Share on other sites

In the case of Skyrim textures, quite often we see an appropriately named normal / bump map which has been saved in either DXT3 or 5 without an Alpha channel - Would it be better then saved as DXT1 if an Alpha channel was not required technically for this particular texture, or was the intention just to have less artifacts on the produced texture using (in the original artists opinion which we ought to be adhering to unless an obvious mistake was made) a better compression method for the job, or was the intention a memory budget consideration - There are many variations to the use of any particular format which the naming scheme does not convey, so finding out the original images format can be important to decide how to save it after any lossless format work is completed.

 

How many colours does an image originally have, I'm sure there are a lot of details about an image that would make having an "Information" option valuable, besides just in the case of dds texture files.

 

Thank you for the information on the plugin, I can understand that would make finding out the image original format details a bit harder to determine.

 

There are other tools which can help, IrfanView has very detailled information about any image format you load into it, but currently only supports older dds formats and is not as comprehensive as Paint.NET has just become .. Which is why I was hoping Paint.NET would be able to do something similar if it was easy to implement, if it isn't then other tools will catch up eventually so no biggie.

 

Thank you for your time and noticing this request :)

 

Edited by M0lz

Share this post


Link to post
Share on other sites

Is it even possible for the DDS plugin to know which format (DXT1, etc.) was used for encoding when loading the image?

Share this post


Link to post
Share on other sites
1 hour ago, Rick Brewster said:

Is it even possible for the DDS plugin to know which format (DXT1, etc.) was used for encoding when loading the image?

 

The DDS header includes that information, along with the number of mipmaps, texture type, etc.

See the TexMetadata structure for details on the metadata that DirectXTex provides.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this