cloudinary-community / svelte-cloudinary

⚡️ High-performance image delivery and uploading at scale in Svelte powered by Cloudinary.
https://svelte.cloudinary.dev/
MIT License
24 stars 11 forks source link

[Bug] Cloudinary props are being applied to DOM image node #24

Closed colbyfayock closed 1 year ago

colbyfayock commented 1 year ago

Bug Report

Describe the bug

The extra props that apply to Cloudinary are getting applied to the DOM node which can be invalid props, but are also should be cleaned up.

image

Steps To Reproduce the error

Example from the homepage:

<CldImage
  width="987"
  height="987"
  src={`images/woman-headphones`}
  crop="thumb"
  gravity="faces"
  removeBackground="true"
  tint="40:253f8c"
  underlay="images/city-skyline"
  alt="Image of woman with headphones transformed with Cloudinary"
/>

Expected behaviour

Only valid <img attributes should be applied to the DOM

CodeSandbox or Live Example of Bug

Docs homepage

colbyfayock commented 1 year ago

Merged into Beta