Uploading with transformation problem

i am having trouble with this

const transformationString=

w-${width},h-${height}${cropping},bg-${parsedCanvasOptions.backgroundColor.substring(1)}${parsedTextOptions.text ? ,l-text,i-${parsedTextOptions.text},fs-${parsedTextOptions.fontSize},lx-${textLeftPosition},ly-${textTopPosition},co-${parsedTextOptions.color.substring(1)},l-end : ""};

845ef13d-ec2f-4d67-aa98-62a51b6a0311.png

error says

{
message: ‘Error occurred while processing pre-transformation for this file.’,
help: ‘For support kindly contact us at support@imagekit.io.’,
transformation: {
pre: ‘w-1024,h-2549,cm-pad-resize,bg-000000,l-text,i-hello,fs-48,lx-232,ly-31,co-ff0000,l-end’
}
}

the problem seems to be here l-text,i-hello,fs-48,lx-232,ly-31,co-ff0000,l-end but cant get why

Can you share the file you are trying to upload, or maybe its imagekit URL, which will help us understand why the transformation doesn’t work? If you can’t share it publicly, you can email it to us at support@imagekit.io

Alternatively, just try separating the first resize and the text overlay in two steps of transformation, instead of a single step. So w-1024,h-2549,cm-pad-resize,bg-000000:l-text,i-hello,fs-48,lx-232,ly-31,co-ff0000,l-end (using the : separator)