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: README.md
+13-82Lines changed: 13 additions & 82 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@
17
17
18
18
---
19
19
20
-
**[imgproxy](https://github.com/imgproxy/imgproxy)** is a fast and secure standalone server for resizing and converting remote images. The main principles of imgproxy are simplicity, speed, and security. It is a Go application, ready to be installed and used in any Unix environment—also ready to be containerized using Docker.
20
+
**[imgproxy](https://imgproxy.net)** is a fast and secure standalone server for resizing and converting remote images. The main principles of imgproxy are simplicity, speed, and security. It is a Go application, ready to be installed and used in any Unix environment—also ready to be containerized using Docker.
21
21
22
22
imgproxy can be used to provide a fast and secure way to _get rid of all the image resizing code_ in your web application (like calling ImageMagick or GraphicsMagick, or using libraries), while also being able to resize everything on the fly on a separate server that only you control. imgproxy is fast, easy to use, and requires zero processing power or storage from the main application. imgproxy is indispensable when handling image resizing of epic proportions, especially when original images are coming from a remote source.
_See [imgproxy info options guide](https://docs.imgproxy.net/usage/getting_info#info-options) for more info._
258
+
See [Supported info options](docs/info_options.md) for the supported info options list and their arguments.
330
259
331
260
### Complex processing options
332
261
@@ -352,9 +281,11 @@ Imgproxy.url_for(
352
281
# => .../c:500:600:nowe:10:5/...
353
282
```
354
283
355
-
All the arguments have the same names as in [imgproxy documentation](https://docs.imgproxy.net/usage/processing#processing-options).
284
+
You can find argument names on the [Supported processing options](docs/processing_options.md) and [Supported info options](docs/info_options.md) pages.
356
285
357
-
You can use named arguments even if the processing option is not supported by the gem. In this case the arguments won't be reordered nor formatted, so you should provide them in the same order and right the same way they should appear in the URL:
286
+
##### Using named arguments with usupported options
287
+
288
+
You can use named arguments even if the option is not supported by the gem. In this case the arguments won't be reordered nor formatted, so you should provide them in the same order and right the same way they should appear in the URL:
358
289
359
290
```ruby
360
291
Imgproxy.url_for(
@@ -374,20 +305,20 @@ Imgproxy.url_for(
374
305
375
306
#### Unnamed arguments
376
307
377
-
The arguments of the complex options can be provided as an array of formatted values or even as a colon-separated string:
308
+
The arguments of the complex options can be provided as an array of formatted values:
378
309
379
310
```ruby
380
311
Imgproxy.url_for(
381
312
"http://images.example.com/images/image.jpg",
382
313
crop: [500, 600, :nowe, 10, 5],
383
-
trim: "10:aabbcc:1:1"
314
+
trim: [10, "aabbcc", 1. 1]
384
315
)
385
316
# => .../c:500:600:nowe:10:5/t:10:aabbcc:1:1/...
386
317
```
387
318
388
319
#### Single required argument
389
320
390
-
If a complex option has a single required argument, and you don't want to use the optional ones, you can just use its value:
321
+
If a complex option has a single required argument, and you don't want to use the optional ones, you can just use the required argument value:
391
322
392
323
```ruby
393
324
Imgproxy.url_for(
@@ -438,10 +369,10 @@ Imgproxy.configure do |config|
438
369
end
439
370
```
440
371
441
-
**NOTE:**`Imgproxy` will use the first applicable URL adapter. If you need to add your adapter to the beginning of the list, use the `prepend` method instead of `add`.
442
-
443
372
**NOTE:** imgproxy.rb provides built-in adapters for Active Storage and Shrine that are automatically added when Active Storage or Shrine support is enabled.
444
373
374
+
**NOTE:**`Imgproxy` will use the first applicable URL adapter. If you need to add your adapter to the beginning of the list, use the `prepend` method instead of `add`.
375
+
445
376
## Custom services
446
377
447
378
If you use more than one instance of imgproxy and they have different endpoints and key/salt configurations you can specify them in `services` option.
Bug reports and pull requests are welcome on GitHub at https://github.com/imgproxy/imgproxy.rb.
487
418
488
-
If you are having any problems with image processing of imgproxy itself, be sure to visit https://github.com/imgproxy/imgproxy first and check out the docs at https://github.com/imgproxy/imgproxy/blob/master/docs/.
419
+
If you are having any problems with image processing of imgproxy itself, be sure to visit https://github.com/imgproxy/imgproxy first and check out the docs at https://docs.imgproxy.net/.
0 commit comments