js-url-gen icon indicating copy to clipboard operation
js-url-gen copied to clipboard

why image file extention removed?

Open epubreader opened this issue 1 year ago • 1 comments

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

}`

epubreader avatar Sep 04 '24 03:09 epubreader

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.

dannyv-cloudinary avatar Sep 04 '24 10:09 dannyv-cloudinary