When using the
f_auto parameter, the actual format to be fetched is determined on the CDN level. Therefore the
f_auto component must remain visible to the CDN and cannot be used within a named-transformation. More about the automatic format feature can be found here.
When it comes to the automatic quality parameter, while a
q_auto component cannot be used within a named-transformation, a
q_auto:[Mode] component can be. You can read more about the automatic quality feature and the different modes available here.
However, if you're using clients-hints (which is currently not supported on most browsers) with the
Save-Data: on header, using
q_auto:[Mode] within a named-transformation prevents Cloudinary from accommodating the quality level to the "save-data" header and therefore not recommended as well.