The current implementation of Directus Transforms is not typed appropriately, and not checked against any available functions. Directus uses Sharp on the backend, but not all functions work. There is also no implementation of the keyed transform option available in Directus.
The proposed enhancement should consider:
I don't think this will break anything for existing users.
The current implementation of Directus Transforms is not typed appropriately, and not checked against any available functions. Directus uses Sharp on the backend, but not all functions work. There is also no implementation of the keyed transform option available in Directus.
The proposed enhancement should consider:
keystring, stripping all other transforms supported by Nuxt/Imagekeyif present is not paired with other modifiers.keys in the public space for better explanation to developers.key=800workey=1200w. (customized transforms)key=system-[small/medium/large]-[cover/contain]string[]which is not valid. Transforms should fallback to a tuple of type[string, ...any[]][]to prevent errors with using transforms not typed explicitly. (Future proofing for new transforms added to Sharp & supported by Directus.)keyrequires setup in Directus. (Not actually true, see comment below)I don't think this will break anything for existing users.