Invalid transformation parameter
Hi!
I created a new Named Transformation but when my website loads the images, I get a 400 error:
:status: 400
Content-Type: image/gif
Access-Control-Allow-Origin: *
Server-Timing: fastly;dur=199;cpu=0;start=2022-01-04T19:30:47.569Z;desc=miss,rtt;dur=24,cloudinary;dur=104;start=2022-01-04T19:30:47.618Z,cld-id;desc=03ba57556285e05cf6fb50c07d08fbf1,cld-error;desc="Invalid transformation parameter - no"
Content-Disposition: inline
Expires: Tue, 04 Jan 2022 19:40:47 GMT
Access-Control-Expose-Headers: X-Cld-Error,Content-Length,Content-Disposition,Server-Timing
Timing-Allow-Origin: *
Date: Tue, 04 Jan 2022 19:30:47 GMT
Cache-Control: private, no-transform, no-cache, no-store
Content-Length: 0
Accept-Ranges: bytes
Server: Cloudinary
x-cld-error: Invalid transformation parameter - no
x-request-id: 03ba57556285e05cf6fb50c07d08fbf1
Strict-Transport-Security: max-age=604800
content-transfer-encoding: binary
The strange thing is that when I directly access the source URL for the images, it works and after visiting the URL, the image does show up on my website after refreshing.
-
Hi Casper,
Referring to the `x-request-id` from above, I managed to locate the logs for your transformation and I can see that you have submitted a transformation `.../t_fill_grayscalecircle_nobg/no_bg/...` where the `no_bg` is an invalid transformation parameter. Although the folder `no_bg` exists in your account, the use of the underscore `_` for a folder name should be preceded by at least 4 characters. To be on the safe side, you should make sure you stick to at least one of the following principles as recommendations:
- Avoid using underscores "_" within names you give to your folders. You can use dash "-" as a delimiter instead.
- Use at least 4 characters prior to the first underscore occurrence, e.g. abcd_1234.
- Use versions to isolate the public ID from the transformation section.
When visiting the URL, it is possible that you may have seen the original version of the asset (i.e., without the transformation), and the derived versions of the image can be viewed as shown in this link: https://cloudinary.com/documentation/media_library_intro_tutorial#view_derived_images
Hope this helps.
0
Post is closed for comments.
Comments
1 comment