You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pages/cdn-usage.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
The package is designed to work seamlessly with CDNs like Cloudflare, BunnyCDN, and others.
4
4
5
-
The most important configuration is the [`Cache-Control`](https://developer.mozilla.org/de/docs/Web/HTTP/Reference/Headers/Cache-Control) header, which you can customize to your liking in the `image-transform-url.php` configuration file.
5
+
The most important configuration is the [`Cache-Control`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control) header, which you can customize in the `image-transform-url.php` configuration file.
Copy file name to clipboardExpand all lines: docs/pages/configuring-options.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Configuring Options
2
2
3
-
This package supports a variety of options, but you may not need or want to use all of them. You can configure which options are enabled in the `image-transform-url.php` configuration file.
3
+
This package supports a variety of options, but you may not need all of them. You can configure which options are enabled in the `image-transform-url.php` configuration file.
Copy file name to clipboardExpand all lines: docs/pages/error-handling.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,22 @@
1
1
# Error Handling
2
2
3
-
The route handler of this package is designed to be robust against invalid options, paths and file names, while also not exposing additional information of your applications public directory structure.
3
+
The route handler of this package is designed to be robust against invalid options, paths, and file names, while also not exposing additional information about your application's public directory structure.
4
4
5
5
## HTTP Status Codes
6
6
7
-
This is why the route handler will return a plain `404` response if:
7
+
For this reason, the route handler returns a plain `404` response if:
8
8
9
-
-a requested image does not exist at the specified path
10
-
- the requested image is not a valid image file
9
+
-the requested image does not exist at the specified path
10
+
- the requested file is not a valid image
11
11
- the provided options are not in the correct format (`key=value`, no trailing comma, etc.)
12
12
13
13
The only two other HTTP errors that can be returned are:
14
14
- a `429` response, which indicates that the request was rate-limited
15
-
- a `403` response, which indicates that the request was unauthorized (e.g. when using signed URLs and the signature is invalid or expired)
15
+
- a `403` response, which indicates that the request was unauthorized (e.g., when using signed URLs and the signature is invalid or expired)
16
16
17
17
## Invalid options
18
18
19
-
If parts of the given route options are invalid, the route handler will ignore them and only apply the valid options.
19
+
If parts of the given route options are invalid, the route handler ignores them and applies only the valid options.
While you can construct URLs manually when you need it, the package provides convenient methods to generate transformation URLs programmatically using the `ImageTransformUrl` facade.
28
+
While you can construct URLs manually when needed, the package provides convenient methods to generate transformation URLs programmatically using the `ImageTransformUrl` facade.
29
29
30
30
Use the `make()` method to generate regular transformation URLs:
Copy file name to clipboardExpand all lines: docs/pages/image-caching.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
# Image Caching
2
2
3
-
This package comes with the default option to automatically store and serve images statically for the requested options within the caching lifetime.
3
+
This package can automatically store and serve images statically for the requested options within the caching lifetime.
4
4
5
5
> [!INFO]
6
-
> Having this feature enabled (default behavior) will help to reduce the load on your server and speed up image delivery.
6
+
> Enabling this feature (default) reduces server load and speeds up image delivery.
7
7
8
8
The processed images are stored in the `storage/app/private/_cache/image-transform-url` directory by default. You can change the disk configuration in the `image-transform-url.php` configuration file.
9
9
@@ -12,19 +12,19 @@ The processed images are stored in the `storage/app/private/_cache/image-transfo
12
12
>
13
13
> **Source images are considered to be stale content by their file name and path.**
14
14
15
-
If the content of an original source image changes, but the file name stays the same, the cached images will not be updated automatically until the cache expires.
15
+
If the content of a source image changes but the file name stays the same, the cached images will not be updated automatically until the cache expires.
16
16
To force a revalidation, you can either:
17
17
18
18
1. change the image's file name
19
19
2. move it into another subdirectory, which will change its path
20
-
3. change the [version number](/available-options#version) in the options (e.g. `version=2`)
20
+
3. change the [version number](/available-options#version) in the options (e.g.,`version=2`)
21
21
4. or flush the entire cache of your application using the `php artisan cache:clear` command.
22
22
23
23
## Cache Size Limit
24
24
25
-
The image caching feature also comes with a size limit to prevent the cache from growing indefinitely. The default maximum size is set to**100 MB**, but you can change this in the configuration file.
25
+
The image caching feature also includes a size limit to prevent the cache from growing indefinitely. The default maximum size is **100 MB**, but you can change this in the configuration file.
26
26
27
-
When the cache reaches the specified size limit, it will automatically clean up old files to make space for new ones.
27
+
When the cache reaches the specified size limit, it automatically cleans up old files to make space for new ones.
28
28
29
29
You may also configure the percentage of the maximum size that should be kept after cleanup, referred to as `clear_to_percent`.
30
30
For example, if `clear_to_percent` is set to 80, 20% of the cache is cleared on each cleanup run, and 80% is retained. The default is set to 80% of the maximum size.
Copy file name to clipboardExpand all lines: docs/pages/installation.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
-[GD](https://www.php.net/manual/en/book.image.php) or [Imagick](https://www.php.net/manual/en/book.imagick.php) PHP extension installed and [enabled](#driver-configuration)
8
8
9
9
::: tip
10
-
If you want to use the file caching feature (highly recommended), a configured `Storage` disk and a `Cache` driver is required. More info in the [Image Caching](/image-caching) section.
10
+
If you want to use the file caching feature (highly recommended), a configured `Storage` disk and a `Cache` driver are required. More info in the [Image Caching](/image-caching) section.
To use Imagick instead of the default GD library for image processing (recommended for performance), you will have to[change the default image driver](https://image.intervention.io/v3/getting-started/frameworks#application-wide-configuration) for the underlying [Intervention Image](https://image.intervention.io/) package.
29
+
To use Imagick instead of the default GD library for image processing (recommended for performance), you must[change the default image driver](https://image.intervention.io/v3/getting-started/frameworks#application-wide-configuration) for the underlying [Intervention Image](https://image.intervention.io/) package.
30
30
31
31
::: info
32
32
The [`libvips` driver](https://github.com/Intervention/image-driver-vips) is currently not supported.
@@ -36,11 +36,11 @@ The [`libvips` driver](https://github.com/Intervention/image-driver-vips) is cur
36
36
37
37
Depending on your environment, you may need to adjust some `php.ini` settings.
38
38
39
-
1. If you are using the default GD driver, be aware that it can use alot more RAM than regular web requests. It's highly recommended to set your memory limit to *at least*256MB.
39
+
1. If you are using the default GD driver, be aware that it can use alot more RAM than regular web requests. It's highly recommended to set your memory limit to *at least*256 MB.
40
40
```
41
41
memory_limit=512M
42
42
```
43
-
2. If you have the [Swoole extension](https://laravel.com/docs/octane#swoole) installed, make sure you have the following setting to [avoid conflicts](https://github.com/ace-of-aces/laravel-image-transform-url/issues/4) with Laravel's `defer` helper which this package uses.
43
+
2. If you have the [Swoole extension](https://laravel.com/docs/octane#swoole) installed, ensure you have the following setting to [avoid conflicts](https://github.com/ace-of-aces/laravel-image-transform-url/issues/4) with Laravel's `defer` helper, which this package uses.
Copy file name to clipboardExpand all lines: docs/pages/rate-limiting.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,21 @@
1
1
# Rate Limiting
2
2
3
-
Another feature of this package is the ability to limit the number of transformations that the image transformation route should process**per path and IP address** within a given time frame.
3
+
This package can limit the number of transformations the image transformation route processes**per path and IP address** within a given time frame.
4
4
5
-
The rate limit will come into effect for new transformation requests only, and will not affect previously cached images.
5
+
The rate limit applies only to new transformation requests and does not affect previously cached images.
6
6
7
-
By default, rate limiting is disabled for the `local` and `testing` app environements to not distract you when developing your app. You can configure the rate limit settings in the `image-transform-url.php` configuration file.
7
+
By default, rate limiting is disabled for the `local` and `testing` app environments so it doesn't distract you during development. You can configure the rate limit settings in the `image-transform-url.php` configuration file.
Copy file name to clipboardExpand all lines: docs/pages/s3-usage.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
# Usage with S3
2
2
3
3
This guide explains how to configure this package to work with S3-compatible storage services like AWS S3 or Cloudflare R2.
4
-
This enables you to transform and serve images stored remotely without the need to store images on your local server.
4
+
This lets you transform and serve images stored remotely without the need to store them on your local server.
5
5
6
-
1. Set up your S3 disk in your [filesystems configuration](https://laravel.com/docs/filesystem#amazon-s3-compatible-filesystems), install the [S3 package](https://laravel.com/docs/filesystem#s3-driver-configuration) and ensure you have the necessary credentials and settings for your S3 bucket. Public bucket access is not required.
6
+
1. Set up your S3 disk in your [filesystems configuration](https://laravel.com/docs/filesystem#amazon-s3-compatible-filesystems), install the [S3 package](https://laravel.com/docs/filesystem#s3-driver-configuration), and ensure you have the necessary credentials and settings for your S3 bucket. Public bucket access is not required.
7
7
8
8
2. Configure the package via `image-transform-url.php` to include your S3 disk in the `source_directories` as described in [the setup guide](/setup#configuring-remote-sources).
9
9
10
-
3. If you are using the [Image Caching](/image-caching) feature and want to store transformed images back to your S3 bucket instead of your local filesystem, you may also set the `cache.disk` option in the `image-transform-url.php` configuration file to your S3 disk.
10
+
3. If you are using the [Image Caching](/image-caching) feature and want to store transformed images back to your S3 bucket instead of your local filesystem, set the `cache.disk` option in the `image-transform-url.php` configuration file to your S3 disk.
0 commit comments