cloudinary-community / cloudinary-community/next-cloudinary

[Feature] Picture Tag

Open
#42 6 comments 1 reaction 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
300
Forks
137
Avg merge
3m
Merged PRs (30d)
2

Description

# **Feature Request**

## **Is your feature request related to a problem? Please describe.**

The library currently supports `CldImage` giving developers a way to use the Next.js Image component extended with Cloudinary.

An alternative image-related element is the [picture](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture) element which allows for different capabilities.

Having this would allow developers to use Cloudinary in a way that makes more sense for Picture-related usage.

## **Describe the solution you'd like**

A basic usage pulled from MDN is:

```


```

Theoretically, it would make sense that the `

```

Where inside we would use [constructCloudinaryUrl](https://github.com/colbyfayock/next-cloudinary/blob/main/next-cloudinary/src/lib/cloudinary.js#L39) to build an image URL

This is just an idea and am open to ideas and suggestions.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.