bluescan / tacentview

An image and texture viewer for tga, png, apng, exr, dds, pvr, ktx, ktx2, astc, pkm, qoi, gif, hdr, jpg, tif, ico, webp, and bmp files. Uses Dear ImGui, OpenGL, and Tacent. Useful for game devs as it displays information like the presence of an alpha channel and querying specific pixels for their colour.
ISC License
329 stars 32 forks source link

Allow paramsAAA to aso set the outtype in the CLI. #128

Closed bluescan closed 1 year ago

bluescan commented 1 year ago

If we allow paramsAAA to also set the outtype and all arguments are optional, we can get rid of the outtype completely. Will need to allow optional arguments to not take up a slot -- maybe using the [] notation.

bluescan commented 1 year ago

Currently think a syntax like the following: --in [qoi,tif,jpg] // Default being --in or --in[] When not specified or set to default, all input image types are processed. --outTGA [32,rle] // Sets the out-type to TGA along with the params all in one go.

Possibly --inTGA and --inDDS as well. this would allow input load params to be specified as well. dds files for example have a few options.

bluescan commented 1 year ago

Allow multiple out types. --out should behave same as --in.

--outTTT should also work same as --inTTT (param.valua pairs). For params this is better than the 'functional' syntax, esp with outputs like GIF that have up to 8 out params.

bluescan commented 1 year ago

This is worked out. Input types specified with --in typeA,typeB,etc. Input parameters specified with --inTTT param1=value1,param2=value2,etc

The exact same pattern holds for out types and out parameters.

The CLI mode now fully supports multiple output types.