ayon-core icon indicating copy to clipboard operation
ayon-core copied to clipboard

Allow ExtractOIIOTranscode without colorspace, to just scale

Open alainxi opened this issue 1 year ago • 6 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues.

Please describe the feature you have in mind and explain what the current shortcomings are?

Currently, if you want to use OIIO, you need to enable Color Management in your DCC, even if you don't want to use colorspace. It would be useful to allow ExtractOIIOTranscode to support a setting like "Dont convert colorspace" so that we can also use it to just convert filetype or perform scaling, even if NO colorspace data exists in the input instance. Because in those cases we don't want to mess with the colorspace of the image but JUST want to resize.

How would you imagine the implementation of the feature?

I would like to avoid enabling Color Management in DCCs, when I just want to scale textures.

Are there any labels you wish to add?

  • [x] I have added the relevant labels to the enhancement request.

Describe alternatives you've considered:

No response

Additional context:

Discussed with Mustafa and Roy, here :

https://community.ynput.io/t/publish-from-substance-painter-output-several-resolutions/1971/3

alainxi avatar Nov 08 '24 20:11 alainxi

Another consequence of OIIO being forced to use color : Ayon code only allows to use OIIO if the input maps have RGB channels. So, you can't resize a single-channel map. For example it's a problem for textures "Roughness", "Metallic" and "Height", that are exported by Substance Painter with the "PBR Metallic Roughness' Output Template.

Discussed here : https://discord.com/channels/517362899170230292/563751989075378201/1309524464685420616

alainxi avatar Nov 22 '24 17:11 alainxi

I wonder if it can be done the other way? having two exatractors one is general purpose and the other is for color transcode.

MustafaJafar avatar Apr 08 '25 14:04 MustafaJafar

Yes, it would provide a great freedom for general purpose extractor (allowing single-channel maps, resize, etc...), without risking to break stuff on the current transcode.

alainxi avatar Apr 09 '25 07:04 alainxi

I personally don't think we need a separate extractor for that. We should just make an OIIO extractor can do most of what you'd need to with oiiotool - including conversions without colorspace conversions.

BigRoy avatar Apr 09 '25 08:04 BigRoy

I personally don't think we need a separate extractor for that. We should just make an OIIO extractor can do most of what you'd need to with oiiotool - including conversions without colorspace conversions.

It be great. from user experience perspective, I wonder if it'd lead to confusion. so, how can we reflect that on the plugin label and setting UI.

MustafaJafar avatar Apr 09 '25 12:04 MustafaJafar

This topic is also discussed on Ayon Feedback :

https://feedback.ayon.app/en/p/allow-extractoiiotranscode-without-colorspace-to-just-scale

alainxi avatar Apr 17 '25 09:04 alainxi