Skip to content

Commit 73ba334

Browse files
Merge branch 'main' into fix/add-alt-text-whats-inside
2 parents 8559cdc + d455b8e commit 73ba334

File tree

13 files changed

+363
-27
lines changed

13 files changed

+363
-27
lines changed

.all-contributorsrc

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,79 @@
345345
"contributions": [
346346
"doc"
347347
]
348+
},
349+
{
350+
"login": "Waqibsk",
351+
"name": "Md Waqib Sk",
352+
"avatar_url": "https://avatars.githubusercontent.com/u/162541991?v=4",
353+
"profile": "https://github.com/Waqibsk",
354+
"contributions": [
355+
"doc"
356+
]
357+
},
358+
{
359+
"login": "ArjunCodess",
360+
"name": "Arjun Vijay Prakash",
361+
"avatar_url": "https://avatars.githubusercontent.com/u/137415649?v=4",
362+
"profile": "https://arjuncodess.is-a.dev/",
363+
"contributions": [
364+
"code"
365+
]
366+
},
367+
{
368+
"login": "Musaddiq625",
369+
"name": "Musaddiq Ahmed Khan",
370+
"avatar_url": "https://avatars.githubusercontent.com/u/37911054?v=4",
371+
"profile": "https://musaddiq625.carrd.co",
372+
"contributions": [
373+
"doc"
374+
]
375+
},
376+
{
377+
"login": "SarthakJain29",
378+
"name": "Sarthak Jain",
379+
"avatar_url": "https://avatars.githubusercontent.com/u/93116216?v=4",
380+
"profile": "https://github.com/SarthakJain29",
381+
"contributions": [
382+
"code"
383+
]
384+
},
385+
{
386+
"login": "HRIDYANSHU054",
387+
"name": "Hridyanshu",
388+
"avatar_url": "https://avatars.githubusercontent.com/u/124202756?v=4",
389+
"profile": "https://github.com/HRIDYANSHU054",
390+
"contributions": [
391+
"doc"
392+
]
393+
},
394+
{
395+
"login": "anurag2787",
396+
"name": "Anurag Yadav",
397+
"avatar_url": "https://avatars.githubusercontent.com/u/143180737?v=4",
398+
"profile": "https://anurag2787.vercel.app/",
399+
"contributions": [
400+
"code"
401+
]
402+
},
403+
{
404+
"login": "error9098x",
405+
"name": "ProCodec",
406+
"avatar_url": "https://avatars.githubusercontent.com/u/43810146?v=4",
407+
"profile": "https://github.com/error9098x",
408+
"contributions": [
409+
"code",
410+
"doc"
411+
]
412+
},
413+
{
414+
"login": "dharamghevariya",
415+
"name": "Dharam Ghevariya",
416+
"avatar_url": "https://avatars.githubusercontent.com/u/144807441?v=4",
417+
"profile": "https://github.com/dharamghevariya",
418+
"contributions": [
419+
"code"
420+
]
348421
}
349422
],
350423
"contributorsPerLine": 7,

CHANGELOG.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,53 @@
1+
## [6.17.3](https://github.com/cloudinary-community/next-cloudinary/compare/v6.17.2...v6.17.3) (2025-11-06)
2+
3+
4+
### Bug Fixes
5+
6+
* correct undefined variable reference in error handler ([d48fb7c](https://github.com/cloudinary-community/next-cloudinary/commit/d48fb7c82c722c8ecb4de4896cbedd4cb655d8b8))
7+
8+
## [6.17.2](https://github.com/cloudinary-community/next-cloudinary/compare/v6.17.1...v6.17.2) (2025-11-06)
9+
10+
11+
### Bug Fixes
12+
13+
* **docs:** use Tailwind italic for HeaderImage caption ([b4417f5](https://github.com/cloudinary-community/next-cloudinary/commit/b4417f5d2ce6cf67e562990685e3f5cc1f4f55e2))
14+
15+
## [6.17.1](https://github.com/cloudinary-community/next-cloudinary/compare/v6.17.0...v6.17.1) (2025-11-04)
16+
17+
18+
### Bug Fixes
19+
20+
* implement useUploadWidgetId with React 18 useId and fallback ([966198c](https://github.com/cloudinary-community/next-cloudinary/commit/966198c01a5a0a4f548f7338f1a539ba7e20fdd2))
21+
22+
# [6.17.0](https://github.com/cloudinary-community/next-cloudinary/compare/v6.16.3...v6.17.0) (2025-10-28)
23+
24+
25+
### Features
26+
27+
* add disableRemotePlayback prop ([2ae5b59](https://github.com/cloudinary-community/next-cloudinary/commit/2ae5b59a27a7177be3ee22502b52e8b3af030121))
28+
29+
## [6.16.3](https://github.com/cloudinary-community/next-cloudinary/compare/v6.16.2...v6.16.3) (2025-10-27)
30+
31+
32+
### Bug Fixes
33+
34+
* merge pull request [#632](https://github.com/cloudinary-community/next-cloudinary/issues/632) from SarthakJain29/updated_footer ([be68133](https://github.com/cloudinary-community/next-cloudinary/commit/be68133865d723b7e6a20ced3a406941b5f3cbc4))
35+
36+
## [6.16.2](https://github.com/cloudinary-community/next-cloudinary/compare/v6.16.1...v6.16.2) (2025-10-21)
37+
38+
39+
### Bug Fixes
40+
41+
* resolve CldVideoPlayer fullscreen object-cover issue ([27e2dbb](https://github.com/cloudinary-community/next-cloudinary/commit/27e2dbb45c5d122b1d4ea067d2d565ca0a4a6d61)), closes [#433](https://github.com/cloudinary-community/next-cloudinary/issues/433)
42+
43+
## [6.16.1](https://github.com/cloudinary-community/next-cloudinary/compare/v6.16.0...v6.16.1) (2025-10-17)
44+
45+
46+
### Bug Fixes
47+
48+
* **typo:** remove colon from Watch & Learn ([43fdeda](https://github.com/cloudinary-community/next-cloudinary/commit/43fdeda2b028dfa3b4194f63ecc56cc173afc035))
49+
* url ([15179f7](https://github.com/cloudinary-community/next-cloudinary/commit/15179f7d768d4e2f57b207ca6973142adc15320d))
50+
151
# [6.16.0](https://github.com/cloudinary-community/next-cloudinary/compare/v6.15.0...v6.16.0) (2024-10-22)
252

353

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111

1212
# Next Cloudinary
1313

14-
<!-- doc-gen PKGJSON optionOne="hey" -->
15-
undefined
16-
<!-- end-doc-gen -->
17-
1814
High-performance image delivery and uploading at scale in Next.js powered by Cloudinary.
1915

2016
<a href="#-features">Features</a> • <a href="#-getting-started">Getting Started</a> • <a href="#%EF%B8%8F-community--support">Community & Support</a> • <a href="#-contributing">Contributing</a>
@@ -210,6 +206,16 @@ pnpm test
210206
<tr>
211207
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Zaki-Mohd"><img src="https://avatars.githubusercontent.com/u/181067270?v=4?s=100" width="100px;" alt="Mohammad Zaki"/><br /><sub><b>Mohammad Zaki</b></sub></a><br /><a href="https://github.com/cloudinary-community/next-cloudinary/commits?author=Zaki-Mohd" title="Documentation">📖</a></td>
212208
<td align="center" valign="top" width="14.28%"><a href="https://github.com/thinkverse"><img src="https://avatars.githubusercontent.com/u/2221746?v=4?s=100" width="100px;" alt="Kim Hallberg"/><br /><sub><b>Kim Hallberg</b></sub></a><br /><a href="https://github.com/cloudinary-community/next-cloudinary/commits?author=thinkverse" title="Documentation">📖</a></td>
209+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Waqibsk"><img src="https://avatars.githubusercontent.com/u/162541991?v=4?s=100" width="100px;" alt="Md Waqib Sk"/><br /><sub><b>Md Waqib Sk</b></sub></a><br /><a href="https://github.com/cloudinary-community/next-cloudinary/commits?author=Waqibsk" title="Documentation">📖</a></td>
210+
<td align="center" valign="top" width="14.28%"><a href="https://arjuncodess.is-a.dev/"><img src="https://avatars.githubusercontent.com/u/137415649?v=4?s=100" width="100px;" alt="Arjun Vijay Prakash"/><br /><sub><b>Arjun Vijay Prakash</b></sub></a><br /><a href="https://github.com/cloudinary-community/next-cloudinary/commits?author=ArjunCodess" title="Code">💻</a></td>
211+
<td align="center" valign="top" width="14.28%"><a href="https://musaddiq625.carrd.co"><img src="https://avatars.githubusercontent.com/u/37911054?v=4?s=100" width="100px;" alt="Musaddiq Ahmed Khan"/><br /><sub><b>Musaddiq Ahmed Khan</b></sub></a><br /><a href="https://github.com/cloudinary-community/next-cloudinary/commits?author=Musaddiq625" title="Documentation">📖</a></td>
212+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/SarthakJain29"><img src="https://avatars.githubusercontent.com/u/93116216?v=4?s=100" width="100px;" alt="Sarthak Jain"/><br /><sub><b>Sarthak Jain</b></sub></a><br /><a href="https://github.com/cloudinary-community/next-cloudinary/commits?author=SarthakJain29" title="Code">💻</a></td>
213+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/HRIDYANSHU054"><img src="https://avatars.githubusercontent.com/u/124202756?v=4?s=100" width="100px;" alt="Hridyanshu"/><br /><sub><b>Hridyanshu</b></sub></a><br /><a href="https://github.com/cloudinary-community/next-cloudinary/commits?author=HRIDYANSHU054" title="Documentation">📖</a></td>
214+
</tr>
215+
<tr>
216+
<td align="center" valign="top" width="14.28%"><a href="https://anurag2787.vercel.app/"><img src="https://avatars.githubusercontent.com/u/143180737?v=4?s=100" width="100px;" alt="Anurag Yadav"/><br /><sub><b>Anurag Yadav</b></sub></a><br /><a href="https://github.com/cloudinary-community/next-cloudinary/commits?author=anurag2787" title="Code">💻</a></td>
217+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/error9098x"><img src="https://avatars.githubusercontent.com/u/43810146?v=4?s=100" width="100px;" alt="ProCodec"/><br /><sub><b>ProCodec</b></sub></a><br /><a href="https://github.com/cloudinary-community/next-cloudinary/commits?author=error9098x" title="Code">💻</a> <a href="https://github.com/cloudinary-community/next-cloudinary/commits?author=error9098x" title="Documentation">📖</a></td>
218+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/dharamghevariya"><img src="https://avatars.githubusercontent.com/u/144807441?v=4?s=100" width="100px;" alt="Dharam Ghevariya"/><br /><sub><b>Dharam Ghevariya</b></sub></a><br /><a href="https://github.com/cloudinary-community/next-cloudinary/commits?author=dharamghevariya" title="Code">💻</a></td>
213219
</tr>
214220
</tbody>
215221
</table>

docs/components/HeaderImage/HeaderImage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const HeaderImage = ({ children, layout, caption }) => {
77
{ children }
88
</div>
99
{caption && (
10-
<p className="mt-4 !-mb-3 text-sm text-center italics">{ caption }</p>
10+
<p className="mt-4 !-mb-3 text-sm text-center italic">{ caption }</p>
1111
)}
1212
</div>
1313
);

docs/pages/api/sign-cloudinary-params.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default async function handler(req, res) {
1313
});
1414
} catch (error) {
1515
res.status(500).json({
16-
error: e.message,
16+
error: error.message,
1717
});
1818
}
1919
}

docs/pages/cldvideoplayer/configuration.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,13 @@ import Table from '../../components/Table';
300300
description: (<span><strong>Check Cloudinary Video Player Api Docs</strong></span>),
301301
example: (<span><strong>Check Cloudinary Video Api Docs</strong></span>)
302302
},
303+
{
304+
prop: 'disableRemotePlayback',
305+
type: 'boolean',
306+
default: 'false',
307+
description: 'Disable the ability to use remote playback (cast video) on the video element',
308+
example: () => (<code>true</code>)
309+
},
303310
{
304311
prop: 'loop',
305312
type: 'boolean',

docs/pages/cldvideoplayer/examples.mdx

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,34 @@ Utilizes the browser's Picture-in-Picture API to create a floating video on top
111111
```
112112
</CodeBlock>
113113

114+
### Disable Remote Playback
115+
116+
Prevents the video from being cast to remote devices by disabling the remote playback feature.
117+
118+
<HeaderImage>
119+
<CldVideoPlayer
120+
id="disable-remote-playback"
121+
width="2048"
122+
height="1080"
123+
src={`${process.env.VIDEOS_DIRECTORY}/dog-running-snow`}
124+
disableRemotePlayback
125+
/>
126+
</HeaderImage>
127+
128+
<CodeBlock>
129+
```jsx copy showLineNumbers
130+
import { CldVideoPlayer } from 'next-cloudinary';
131+
132+
<CldVideoPlayer
133+
id="disable-remote-playback"
134+
width="1620"
135+
height="1080"
136+
src="<Your Public ID>"
137+
disableRemotePlayback
138+
/>
139+
```
140+
</CodeBlock>
141+
114142
## Player Customization
115143

116144
### Chapters & Selector
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
import Head from 'next/head';
2+
import CodeBlock from '../../components/CodeBlock';
3+
import OgImage from '../../components/OgImage';
4+
import { CldImage } from '../../../next-cloudinary';
5+
import HeaderImage from '../../components/HeaderImage';
6+
import Video from '../../components/Video';
7+
8+
9+
<Head>
10+
<title>Remote Images - Next Cloudinary</title>
11+
<meta name="og:title" content="Delivering Remote Images - Next Cloudinary" />
12+
<meta name="og:url" content={`https://next.cloudinary.dev/guides/remote-images`} />
13+
</Head>
14+
15+
<OgImage title="Remote Images" twitterTitle="Delivering Remote Images" />
16+
17+
# Working with Remote Images
18+
19+
You can leverage Cloudinary's powerful transformation and delivery features even for images not stored in your Cloudinary account.
20+
21+
The `CldImage` component provides two primary methods for working with remote images:
22+
23+
## Method 1: Fetching Remote Images On-the-Fly
24+
25+
[The `fetch` delivery method](https://cloudinary.com/documentation/fetch_remote_images) allows you to use a remote image URL as a source for the `CldImage` component.
26+
27+
Cloudinary will fetch the image, apply transformations, cache it on the CDN, and deliver it, all without storing it in your Media Library.
28+
29+
This is the simplest way to get started with remote media.
30+
31+
### Example:
32+
33+
To use this method, provide the remote image URL to the `src` prop and set the `deliveryType` prop to `"fetch"`
34+
35+
<HeaderImage>
36+
<CldImage
37+
width="960"
38+
height="600"
39+
src="https://www.wikipedia.org/portal/wikipedia.org/assets/img/[email protected]"
40+
alt="Wikipedia logo"
41+
tint="70:blue:purple"
42+
deliveryType="fetch"
43+
/>
44+
</HeaderImage>
45+
46+
<CodeBlock>
47+
```jsx copy showLineNumbers
48+
import { CldImage } from 'next-cloudinary';
49+
50+
<CldImage
51+
width="1080"
52+
height="675"
53+
src="https://www.wikipedia.org/portal/wikipedia.org/assets/img/[email protected]"
54+
deliveryType="fetch"
55+
// Apply transformations like any other Cloudinary image
56+
tint="70:blue:purple"
57+
alt="Wikipedia Logo"
58+
/>
59+
```
60+
</CodeBlock>
61+
62+
This will generate an `<img>` with a `srcset` containing Cloudinary URLs like:
63+
64+
```
65+
https://res.cloudinary.com/eric-cloudinary/image/fetch/e_tint:70:blue:purple/c_limit,w_1080/f_auto/q_auto/v1/https://www.wikipedia.org/portal/wikipedia.org/assets/img/[email protected]?_a=BAVAZGGf0
66+
```
67+
68+
This URL instructs Cloudinary to retrieve the image from the source URL.
69+
70+
## Method 2: Auto-Uploading Remote Images
71+
72+
This method automatically uploads an image from a remote source to your Cloudinary Media Library the first time it's requested.
73+
74+
### Use Cases
75+
76+
- Migrating an existing media library from a service like S3 to Cloudinary without downtime
77+
- Permanently storing and managing remote assets in Cloudinary
78+
- Building a media library from a trusted, remote source over time
79+
80+
### How to Set Up Auto-Upload Mapping:
81+
82+
1. Navigate to your Cloudinary settings: go to `Settings` > `Upload`.
83+
2. Find the `Auto upload mapping` section: here you will define the mapping.
84+
3. Create a new mapping:
85+
- **Target Folder**: A virtual folder name to use in your src prop (e.g., `s3-images`).
86+
- **Source URL prefix**: Paste the base URL of your remote image storage (e.g., `https://my-s3-bucket.s3.amazonaws.com/images/`).
87+
4. Save your changes.
88+
89+
For more details, see the official Cloudinary documentation on [Lazy Migration with Auto-Upload](https://cloudinary.com/documentation/migration#lazy_migration_with_auto_upload).
90+
91+
### Watch & Learn
92+
<Video
93+
title="Upload Images & Videos to Cloudinary Automatically with Auto Upload"
94+
url="https://www.youtube.com/watch?v=LJhsn5A0PFE"
95+
/>
96+
97+
98+
99+
### Implementation with `CldImage`
100+
101+
Once your mapping is configured, construct the `src` prop by combining your mapped folder with the remote image's path
102+
103+
<CodeBlock>
104+
```jsx copy showLineNumbers
105+
import { CldImage } from 'next-cloudinary';
106+
107+
// Remote URL: https://my-s3-bucket.s3.amazonaws.com/images/product-image.jpg
108+
// Mapped Folder: s3-images
109+
110+
<CldImage
111+
width="960"
112+
height="600"
113+
src="s3-images/product-image.jpg"
114+
alt="An image that will be auto-uploaded"
115+
/>
116+
```
117+
</CodeBlock>

docs/theme.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default {
1414
}
1515
},
1616
footer: {
17-
text: `MIT ${new Date().getFullYear()} © Colby Fayock`,
17+
text: `© Cloudinary ${new Date().getFullYear()}`,
1818
},
1919
editLink: {
2020
text: 'Edit this page on GitHub'

next-cloudinary/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "next-cloudinary",
3-
"version": "6.16.0",
3+
"version": "6.17.3",
44
"license": "MIT",
55
"main": "./dist/index.js",
66
"module": "./dist/index.mjs",

0 commit comments

Comments
 (0)