Plugin to load custom file type where thumbnail is stored as secondary file?

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: helmut, xnview

Post Reply
uglycoyote
Posts: 1
Joined: Wed Oct 08, 2025 7:38 pm

Plugin to load custom file type where thumbnail is stored as secondary file?

Post by uglycoyote »

Hello,

I have a custom file format type that I'm interested in creating a XnView plugin compatible with SageThumbs for.

My custom file type is not an image itself, but a 3D model. Thumbnails of the model are stored elsewhere, in a predictable place, based on the location of the model, so my goal is to have the plugin find and load the thumbnail and display it as though it was the preview of the model file.

The separate thumbnail file would be stored as a common file format (jpg or png) and I do not wish to implement decoding for jpg or png in my plugin. Ideally my plugin would just delegate to an existing filetype's loader after figuring out the path of the secondary file.

Is this possible through the GFL sdk? Nothing that I found in the GFLSDK-Win samples gives any clues about how I might do it, and I didn't see anything in the SDK docs at (https://www.xnview.com/wiki/index.php?t ... ow=breadth) either. The SDK and the examples seem more geared towards loading a completely new image type, which is not really what I'm wanting to do.
Post Reply