why image file extention removed?

Open
#600 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript, react
Domain
frontend, web-dev

Research direction

Start with the AvatarImage example and the cld.image(publicId) and AdvancedImage entry points shown in the issue. Compare the URL generated by the React integration with the Node.js API output, then establish whether the missing .jpg extension is expected or indicates a defect. Done should include a confirmed explanation or a clearly reproducible fix scope.

Written by the indexing model from the issue text.

Description

why image file extension removed when I use cloudinary react?
but nodejs api contains file extension, for example ".jpg"

`export default function AvatarImage({ photo, width, height }) {

const { public_id: publicId, version } = photo;
const cloudinaryImage = cld.image(publicId);

cloudinaryImage
    .resize(scale().width(width).height(height));

return (
    <AdvancedImage cldImg={cloudinaryImage} width={width}
        height={height}
        alt={`Image ${publicId}`} />
);

}`

Dominant language
HTML
Stars
56
Forks
11
PR merge metrics
No merged PRs in 30d

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cloudinary/js-url-gen

All issues in cloudinary/js-url-gen

Similar issues

More Web Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.