Skip to content

Commit f787cb0

Browse files
committed
feat: remove pattern samples from plugin source
1 parent fab635e commit f787cb0

File tree

3 files changed

+14
-111
lines changed

3 files changed

+14
-111
lines changed

README.md

Lines changed: 7 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ You can use this, if you don't want thumbnails to be created on you development-
88
It will add parameters to original image paths.
99
So you are able to save storage and add new thumbnails on the fly.
1010

11-
| 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
11+
| 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 |
1616

1717
## Install
1818

@@ -47,42 +47,9 @@ You may want to delete folder `thumbnails` within folder `public`
4747
- then run the command `bin/console media:generate-thumbnails` on the console to update the thumbnails for all images in the database
4848
- Clear shop cache
4949

50-
## Tested Supports
51-
52-
### imgproxy [Link](https://imgproxy.net/)
53-
54-
Tested with insecure environment for internal test-shops.
55-
Template example: `http://localhost:8080/x/fit/{width}/0/sm/0/plain/{mediaUrl}/{mediaPath}`
56-
will become `http://localhost:8080/x/fit/800/0/sm/0/plain/https://www.example.com/media/01/82/69/sasse.png`
57-
58-
### BunnyCDN [Link](https://bunnycdn.com/)
59-
60-
`Opinion: not cheap with 9,5$/m per zone, but fast and including webp`
61-
You would have to active `Bunny Optimizer` and `Manipulation Engine` in your Zone in BunnyCDN.
62-
Template example: `{mediaUrl}/{mediaPath}?width={width}` (default)
63-
will become `https://www.example.com/media/01/82/69/sasse.png?width=800`
64-
65-
### Images.weserv.nl [Link](https://images.weserv.nl/)
66-
67-
`Opinion: free, but slow and without webp`
68-
An image cache & resize service. Manipulate images on-the-fly with a worldwide cache.
69-
Template example: `https://images.weserv.nl/?url={mediaUrl}/{mediaPath}&w={width}`
70-
will become `https://images.weserv.nl/?url=https://www.example.com/media/01/82/69/sasse.png&w=800`
71-
72-
### cloudimage [Link](https://www.cloudimage.io/en/home)
73-
74-
`Opinion: has free plan, fast and including webp`
75-
An image cache & resize service. Manipulate images on-the-fly with a worldwide cache.
76-
Template example: `https://token.cloudimg.io/v7/{mediaUrl}/{mediaPath}&w={width}`
77-
will become `https://token.cloudimg.io/v7/https://www.example.com/media/01/82/69/sasse.png&w=800`
78-
79-
### Cloudflare Image Resizing [Link](https://developers.cloudflare.com/images/)
80-
81-
`Opinion: many options but only for business and enterprise customers.`
82-
Has a lossless image optimization and big hosters have their NFS connected in their contracts directly to cloudflare
83-
Template example: `{mediaUrl}/cdn-cgi/image/width={width},quality=85,format=auto/{mediaPath}`
84-
will become `https://yourshop.com/cdn-cgi/image/width%3D3000%2Cquality%3D85%2Cformat%3Dauto/media/db/f4/18/1624437000/334c0cd2b7dd465c9a35a806e8052643.jpg`
50+
## Find Patterns
8551

52+
You can find patterns in [Github Discussions in category Patterns](https://github.com/FriendsOfShopware/FroshPlatformThumbnailProcessor/discussions/categories/patterns)
8653

8754
## License
8855

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

Lines changed: 5 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -7,53 +7,11 @@
77
<b>{width}</b>: f.e. 800
88
</p>
99

10-
<h3>Tested Supports</h3>
11-
<p>Any service provider that changes image sizes using the url parameter should also be compatible.</p>
12-
13-
<h4 class="supports-headline"><a href="https://imgproxy.net/" target="_blank">imgproxy</a> (selfhosted)</h4>
14-
<p class="supports-description">
15-
<sw-text-field label="Template example" size="small" :copyable="true"
16-
value="http://localhost:8080/x/fit/{width}/0/sm/0/plain/{mediaUrl}/{mediaPath}"/>
17-
will become <code>http://localhost:8080/x/fit/800/0/sm/0/plain/https://www.example.com/media/01/82/69/sasse.png</code>
18-
</p>
19-
20-
<h4 class="supports-headline"><a href="https://bunnycdn.com/" target="_blank">BunnyCDN</a></h4>
21-
<blockquote>Opinion: not cheap with 9,5$/m per zone, but fast and including webp</blockquote>
22-
<p class="supports-description">
23-
You would have to active "Bunny Optimizer" and "Manipulation Engine" in your Zone in BunnyCDN.<br><br>
24-
<sw-text-field label="Template example" size="small" :copyable="true"
25-
value="{mediaUrl}/{mediaPath}?width={width}"/>
26-
will become <code>https://www.example.com/media/01/82/69/sasse.png?width=800</code>
27-
</p>
28-
29-
<h4 class="supports-headline"><a href="https://images.weserv.nl/" target="_blank">Images.weserv.nl</a></h4>
30-
<blockquote>Opinion: free, but slow and without webp</blockquote>
31-
<p class="supports-description">
32-
An image cache & resize service. Manipulate images on-the-fly with a worldwide cache.<br><br>
33-
<sw-text-field label="Template example" size="small" :copyable="true"
34-
value="https://images.weserv.nl/?url={mediaUrl}/{mediaPath}&w={width}"/>
35-
will become
36-
<code>https://images.weserv.nl/?url=https://www.example.com/media/01/82/69/sasse.png&w=800&h=800</code>
37-
</p>
38-
39-
<h4 class="supports-headline"><a href="https://www.cloudimage.io/en/home" target="_blank">cloudimage</a></h4>
40-
<blockquote>Opinion: has free plan, fast and including webp</blockquote>
41-
<p class="supports-description">
42-
An image cache & resize service. Manipulate images on-the-fly with a worldwide cache.<br><br>
43-
<sw-text-field label="Template example" size="small" :copyable="true"
44-
value="https://token.cloudimg.io/v7/{mediaUrl}/{mediaPath}&w={width}"/>
45-
will become
46-
<code>https://token.cloudimg.io/v7/https://www.example.com/media/01/82/69/sasse.png&w=800</code>
47-
</p>
48-
49-
<h4 class="supports-headline"><a href="https://www.cloudflare.com" target="_blank">cloudflare</a></h4>
50-
<blockquote>Opinion: many options but only for business and enterprise customers.</blockquote>
51-
<p class="supports-description">
52-
Has a lossless image optimization and big hosters have their NFS connected in their contracts directly to cloudflare<br><br>
53-
<sw-text-field label="Template example" size="small" :copyable="true"
54-
value="{mediaUrl}/cdn-cgi/image/width={width},quality=85,format=auto/{mediaPath}"/>
55-
will become
56-
<code>https://yourshop.com/cdn-cgi/image/width%3D3000%2Cquality%3D85%2Cformat%3Dauto/media/db/f4/18/1624437000/334c0cd2b7dd465c9a35a806e8052643.jpg</code>
10+
<p>
11+
Find pattern in the discussions category at github:<br>
12+
<a href="https://github.com/FriendsOfShopware/FroshPlatformThumbnailProcessor/discussions/categories/patterns" target="_blank">
13+
Github Category Patterns
14+
</a>
5715
</p>
5816
</div>
5917
{% endblock %}
Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,12 @@
11
.sw-system-config {
22
.frosh-thumbnail-processor-info-texts {
3-
blockquote {
4-
background: #f9f9f9;
5-
border-left: 8px solid #ccc;
6-
margin: 8px 10px;
7-
padding: 8px 10px;
8-
}
9-
10-
h2, h3, h4, h5, h6 {
11-
margin-top: 20px;
12-
}
13-
143
a, a:visited {
154
text-decoration: none;
165
color: #189eff;
176
}
187

19-
code {
20-
padding: 3px 6px;
21-
font-size: 85%;
22-
background-color: #f9f9f9;
23-
}
24-
25-
.supports-headline {
26-
margin-bottom: 10px;
27-
28-
}
29-
30-
.supports-description {
31-
margin-left: 15px;
8+
p {
9+
margin: revert;
3210
}
3311
}
3412
}

0 commit comments

Comments
 (0)