IViewAdditionalTypes length limit

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

IViewAdditionalTypes length limit

Post by *fenix_productions »

Hi all.

What is the maximum length for IViewAdditionalTypes parameter?

I was wondering why some of my files have no thumbnails lately and discovered, that displaying them depends on extensions placement under IViewAdditionalTypes.

XnView supports about 400 graphic file formats but due to mentioned limit adding all extensions is not wise. That is why I'd like to know how much of them I can write down without troubles.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It's 259 characters. Do you really use all these 400 types? If not, just leave out some of them...
Author of Total Commander
https://www.ghisler.com
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

43 is not huge

Post by *Clo »

2ghisler(Author)

:) Good evening,

• Considering that each added extension needs 6 characters (including the space as separator),
this limit of 259 allows only to add 43 extensions.
- Indeed, it's sufficient for the most average users -and myself- but can be an issue for those working with graphics,
collections of old games (many formats supported by XnView are so) and the like.
- Whether the extensions could be simply written without the “*.” part,
then we could place 64 extensions, that's already better.
- For instance, in XnView INI that's possible (no *. needed).
- Just my 0,05€…

:mrgreen: VG
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2ghisler(Author)
I don't use all of them but with this limit I can't just copy the list but I have to check it closely.

This is not the end of the world (as I know it) but it might be troublesome for other users. Also knowing that some formats can have similar but not the same extensions (ex. JPG and JPEG) it makes it harder to work with.

Could it be possible to add IViewAdditionalTypesX variable (where X is number from 1 to something) for extending it a little bit?

PS. Please write information about limit in help file.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
Post Reply