cloudinary-community / cloudinary-util

https://cloudinary-util.vercel.app
MIT License
12 stars 19 forks source link

[Bug] preserveTransformations double encodes text and spaces #197

Open colbyfayock opened 2 months ago

colbyfayock commented 2 months ago

Bug Report

Describe the bug

When preserving transformations, the spaces in text or prompts is double encoded.

ex:

https://res.cloudinary.com/astro-cloudinary/image/upload/e_gen_background_replace:prompt_space%2520galaxy/c_fill,w_1668,h_1043,g_auto/f_auto/q_auto/c_limit,w_1600/v1/samples/balloons?_a=BBGAABXg0
<CldImage
  src="https://res.cloudinary.com/<cloud name>/image/upload/e_gen_background_replace:prompt_space%20galaxy/c_fill,w_1668,h_1043,g_auto/f_auto/q_auto/v1/samples/balloons?_a=BBGAABXg0"
  width="800"
  height="600"
  preserveTransformations
  alt="test"
/>