Skip to content

Commit cd1147b

Browse files
authored
[Images] Remove trailing spaces (#21467)
1 parent 43e4f59 commit cd1147b

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

src/content/docs/images/manage-images/create-variants.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Variants let you specify how images should be resized for different use cases. B
1111
:::note
1212

1313
Cloudflare Images can deliver SVG files but will not resize them because it is an inherently scalable format.
14-
Resize via the Cloudflare dashboard.
14+
Resize via the Cloudflare dashboard.
1515
:::
1616

1717
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/login) and select your account.

src/content/docs/images/pricing.mdx

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar:
66

77
---
88

9-
By default, all users are on the Images Free plan. The Free plan includes access to the transformations feature, which lets you optimize images stored outside of Images, like in R2.
9+
By default, all users are on the Images Free plan. The Free plan includes access to the transformations feature, which lets you optimize images stored outside of Images, like in R2.
1010

1111
The Paid plan allows transformations, as well as access to storage in Images.
1212

@@ -29,7 +29,7 @@ Once you exceed 5,000 unique transformations:
2929

3030
To request more than 5,000 unique transformations each month, you can purchase an Images Paid plan.
3131

32-
## Images Paid
32+
## Images Paid
3333

3434
When you purchase an Images Paid plan, you can choose your own storage or add storage in Images.
3535

@@ -61,15 +61,15 @@ The `format` parameter counts as only 1 billable transformation, even if multipl
6161

6262
A retail website has 1,000 original product images that get served in 5 different sizes each month. This results in 5,000 unique transformations — or a cost of $2.50 per month.
6363

64-
### Images Stored
64+
### Images Stored
6565

6666
Storage in Images is available only with an Images Paid plan. You can purchase storage in increments of $5 for every 100,000 images stored per month.
6767

6868
You can create predefined variants to specify how an image should be resized, such as `thumbnail` as 100x100 and `hero` as 1600x500.
6969

7070
Only uploaded images count toward Images Stored; defining variants will not impact your storage limit.
7171

72-
### Images Delivered
72+
### Images Delivered
7373

7474
For images that are stored in Images, you will incur $1 for every 100,000 images delivered per month. This metric does not include transformed images that are stored in remote sources.
7575

src/content/docs/images/transform-images/draw-overlays.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ The accepted options for the overlaid image are `opacity`, `repeat`, `top`, `lef
7878
// Fetch image and watermark
7979
const img = await fetch('https://example.com/image.png');
8080
const watermark = await fetch('https://example.com/watermark.png');
81-
81+
8282
const response = await env.IMAGES.input(img.body)
8383
.transform({ width: 1024 })
8484
.draw(watermark.body, { "opacity": 0.25, "repeat": true })
8585
.output({ format: "image/avif" })
8686
.response();
87-
87+
8888
return response;
8989
```
9090

src/content/docs/images/transform-images/make-responsive-images.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ By default, this feature uses information from the user agent, which detects the
121121

122122
### Client hints
123123

124-
For more accurate results, you can use client hints to send the user's browser information as request headers.
124+
For more accurate results, you can use client hints to send the user's browser information as request headers.
125125

126126
This method currently works only on Chromium-based browsers such as Chrome, Edge, and Opera.
127127

src/content/docs/images/tutorials/optimize-user-uploaded-image.mdx

+7-7
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ If you are new, review how to [create your first Worker](/workers/get-started/gu
3434

3535
To start, you will need to set up your project to use the following resources on the Developer Platform:
3636

37-
* [Images](/images/transform-images/bindings/) to transform, resize, and encode images directly from your Worker.
37+
* [Images](/images/transform-images/bindings/) to transform, resize, and encode images directly from your Worker.
3838
* [R2](/r2/api/workers/workers-api-usage/) to connect the bucket for storing transformed images.
3939
* [Assets](/workers/static-assets/binding/) to access a static image that will be used as the visual watermark.
4040

@@ -131,7 +131,7 @@ export default {
131131
if (!file || typeof file.arrayBuffer !== "function") {
132132
return new Response("No image file provided", { status: 400 });
133133
}
134-
134+
135135
// Read uploaded image as array buffer
136136
const fileBuffer = await file.arrayBuffer();
137137
} catch (err) {
@@ -178,7 +178,7 @@ export default {
178178
if (!file || typeof file.arrayBuffer !== "function") {
179179
return new Response("No image file provided", { status: 400 });
180180
}
181-
181+
182182
// Read uploaded image as array buffer
183183
const fileBuffer = await file.arrayBuffer();
184184

@@ -222,7 +222,7 @@ export default {
222222
if (!file || typeof file.arrayBuffer !== "function") {
223223
return new Response("No image file provided", { status: 400 });
224224
}
225-
225+
226226
// Read uploaded image as array buffer
227227
const fileBuffer = await file.arrayBuffer();
228228

@@ -281,7 +281,7 @@ export default {
281281
if (!file || typeof file.arrayBuffer !== "function") {
282282
return new Response("No image file provided", { status: 400 });
283283
}
284-
284+
285285
// Read uploaded image as array buffer
286286
const fileBuffer = await file.arrayBuffer();
287287

@@ -303,10 +303,10 @@ export default {
303303

304304
// Add timestamp to file name
305305
const fileName = `image-${Date.now()}.avif`;
306-
306+
307307
// Upload to R2
308308
await env.R2.put(fileName, imageResponse.body)
309-
309+
310310
return new Response(`Image uploaded successfully as ${fileName}`, { status: 200 });
311311
} catch (err) {
312312
console.log(err.message)

src/content/docs/images/upload-images/sourcing-kit/enable.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Your import job is now created. You can review the job status on the Sourcing Ki
2626

2727
:::note
2828

29-
Sourcing Kit will warn you when you are about to reach the limit for your plan space quota. When you exhaust the space available in your plan, the importing jobs will be aborted. If you see this warning on Sourcing Kit’s main page, select **View plan** to change your plan’s limits.
29+
Sourcing Kit will warn you when you are about to reach the limit for your plan space quota. When you exhaust the space available in your plan, the importing jobs will be aborted. If you see this warning on Sourcing Kit’s main page, select **View plan** to change your plan’s limits.
3030
:::
3131

3232
## Define a new source

src/content/docs/images/upload-images/upload-custom-path.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Custom paths support:
1616

1717
:::note
1818

19-
Images with custom ID paths cannot be made private using [signed URL tokens](/images/manage-images/serve-images/serve-private-images). Additionally, when [serving images](/images/manage-images/serve-images/), any `%` characters present in Custom IDs must be encoded to `%25` in the image delivery URLs.
19+
Images with custom ID paths cannot be made private using [signed URL tokens](/images/manage-images/serve-images/serve-private-images). Additionally, when [serving images](/images/manage-images/serve-images/), any `%` characters present in Custom IDs must be encoded to `%25` in the image delivery URLs.
2020
:::
2121

2222
Make a `POST` request using the example below as reference. You can use custom ID paths when you upload via a URL or with a direct file upload.

0 commit comments

Comments
 (0)