OpenColorIO icon indicating copy to clipboard operation
OpenColorIO copied to clipboard

Add a helper function to check if an extension is supported by FileTransform

Open doug-walker opened this issue 1 year ago • 5 comments

The FileTransform class has several static methods such as GetFormatExtensionByIndex that will allow client programs to iterate over all of the supported formats to check if a given extension is supported by OCIO. However, it would be nice to have a helper function to just take the extension and return true/false. Such as:

class FileTransform
    /// Returns true if the extension corresponds to a format supported by FileTransform.
    /// The argument is case-insensitive, and a leading dot, if present, is ignored.
    static bool IsFormatExtensionSupported(const char * ext);

doug-walker avatar Jan 27 '24 01:01 doug-walker

Hi! Could I work on this?

corey-f1009 avatar Jan 29 '24 20:01 corey-f1009

Absolutely, thank you @corey-f1009 !

doug-walker avatar Jan 29 '24 20:01 doug-walker

Could I give this a shot as well?

Dundy703 avatar Feb 06 '24 23:02 Dundy703

@Dundy703 , there is so much to do, it would be better for you to find a different issue. There are quite a few that are labelled "good first issue" or "help wanted".

doug-walker avatar Feb 07 '24 23:02 doug-walker

This is still available for someone to work on.

doug-walker avatar Mar 18 '24 03:03 doug-walker

I would like to give this a look if possible. Might have some questions to ask :) Thank you!

meimchu avatar Mar 22 '24 08:03 meimchu

Thank you @meimchu !

doug-walker avatar Mar 22 '24 16:03 doug-walker