Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why image file extention removed? #600

Open
epubreader opened this issue Sep 4, 2024 · 1 comment
Open

why image file extention removed? #600

epubreader opened this issue Sep 4, 2024 · 1 comment

Comments

@epubreader
Copy link

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}`} />
);

}`

@dannyv-cloudinary
Copy link

Hey @epubreader. What are you passing the public ID in each instance? As per our documentation, the file extension is actually a separate parameter, and doesn't include the extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants