Skip to content

Commit 749d315

Browse files
authored
feat: add info about cloudflare
1 parent 4350451 commit 749d315

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ It will add parameters to original image paths.
99
So you are able to save storage and add new thumbnails on the fly.
1010

1111
| Version | Requirements
12-
|--------- |----------------------------
13-
| 1.0.0 - 1.0.5 | Min. Shopware 6.0
14-
| 1.0.6 - 1.0.15 | Min. Shopware 6.3
15-
| 1.0.16 - * | Min. Shopware 6.4
12+
|--------- |----------------------------
13+
| 1.0.0 - 1.0.5 | Min. Shopware 6.0
14+
| 1.0.6 - 1.0.15 | Min. Shopware 6.3
15+
| 1.0.16 - * | Min. Shopware 6.4
1616

1717
## Install
1818

@@ -77,6 +77,14 @@ An image cache & resize service. Manipulate images on-the-fly with a worldwide c
7777
Template example: `https://token.cloudimg.io/v7/{mediaUrl}/{mediaPath}&w={width}&h={height}`
7878
will become `https://token.cloudimg.io/v7/https://www.example.com/media/01/82/69/sasse.png&w=800&h=800`
7979

80+
### Cloudflare Image Resizing [Link](https://developers.cloudflare.com/images/)
81+
82+
`Opinion: many options but only for business and enterprise customers.`
83+
Has a lossless image optimization and big hosters have their NFS connected in their contracts directly to cloudflare
84+
Template example: `{mediaUrl}/cdn-cgi/image/width={width},height={height},quality=85,format=auto/{mediaPath}`
85+
will become `https://yourshop.com/cdn-cgi/image/width%3D3000%2Cheight%3D3000%2Cquality%3D85%2Cformat%3Dauto/media/db/f4/18/1624437000/334c0cd2b7dd465c9a35a806e8052643.jpg`
86+
87+
8088
## License
8189

8290
The MIT License (MIT). Please see [License File](LICENSE) for more information.

src/Resources/app/administration/src/frosh-thumbnail-processor-info-texts.html.twig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,15 @@
4646
will become
4747
<code>https://token.cloudimg.io/v7/https://www.example.com/media/01/82/69/sasse.png&w=800&h=800</code>
4848
</p>
49+
50+
<h4 class="supports-headline"><a href="https://www.cloudflare.com" target="_blank">cloudflare</a></h4>
51+
<blockquote>Opinion: many options but only for business and enterprise customers.</blockquote>
52+
<p class="supports-description">
53+
Has a lossless image optimization and big hosters have their NFS connected in their contracts directly to cloudflare<br><br>
54+
<sw-text-field label="Template example" size="small" :copyable="true"
55+
value="{mediaUrl}/cdn-cgi/image/width={width},height={height},quality=85,format=auto/{mediaPath}"/>
56+
will become
57+
<code>https://yourshop.com/cdn-cgi/image/width%3D3000%2Cheight%3D3000%2Cquality%3D85%2Cformat%3Dauto/media/db/f4/18/1624437000/334c0cd2b7dd465c9a35a806e8052643.jpg</code>
58+
</p>
4959
</div>
5060
{% endblock %}

0 commit comments

Comments
 (0)