Skip to content

Invalid URL build for publicIds containing dot-char #22

Description

@chunksnbits

Noted some odd bug with an image ID containing a dot (i.e., "."):

Sample image URL:

https://res.cloudinary.com/adacmkv/image/upload/f_auto,q_auto/v1608641937/ADAC%20Klassik/2021/Events/AEC/RS134993_RS129423_8.1_v7gpvg.jpg

Sample transformation:

buildUrl(encodePublicId, {
  transformations: {
    format: "auto",
    quality: "auto",
    resize: {
      width: 1024,
      height: 600,
      type: "fill",
    },
  },
});

Observed

  • The image url created is invalid (part ".1_v7gpvg" is replaced with "q_auto"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions