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
This method will return an URL to your user's avatar, resized to 250x250px on the fly.
135
+
This method will return a URL to your user's avatar, resized to fill 500x400px on the fly.
136
+
137
+
If you're a happy user of [imgproxy Pro](https://imgproxy.net#pro), you may find useful it's [Getting an image info](https://docs.imgproxy.net/usage/getting_info) feature. imgproxy.rb allows you to easily generate info URLs for your images:
This method will return an URL to your user's avatar, resized to 250x250px on the fly.
171
+
This method will return a URL to your user's avatar, resized to fill 500x400px on the fly.
172
+
173
+
If you're a happy user of [imgproxy Pro](https://imgproxy.net#pro), you may find useful it's [Getting an image info](https://docs.imgproxy.net/usage/getting_info) feature. imgproxy.rb allows you to easily generate info URLs for your images:
This method will return a URL to the JSON with the requested info about your user's avatar.
164
180
165
181
**NOTE:** If you use `Shrine::Storage::FileSystem` as storage, uploaded file URLs won't include the hostname, so imgproxy server won't be able to access them. To fix this, use `shrine_host` config.
166
182
@@ -183,16 +199,28 @@ Imgproxy.url_for(
183
199
"http://images.example.com/images/image.jpg",
184
200
width: 500,
185
201
height: 400,
186
-
resizing_type: :fill,
187
-
sharpen: 0.5
202
+
resizing_type: :fill
203
+
)
204
+
```
205
+
206
+
This method will return a URL to the image, resized to fill 500x400px on the fly.
207
+
208
+
If you're a happy user of [imgproxy Pro](https://imgproxy.net#pro), you may find useful it's [Getting an image info](https://docs.imgproxy.net/usage/getting_info) feature. imgproxy.rb allows you to easily generate info URLs for your images:
- `base64_encode_url`— per-call redefinition of `base64_encode_urls` config.
247
+
- `escape_plain_url`— per-call redefinition of `always_escape_plain_urls` config.
248
+
- `use_short_options`— per-call redefinition of `use_short_options` config.
249
+
- `encrypt_source_url`- _(pro)_ per-call redefinition of `always_encrypt_source_urls` config.
250
+
- `source_url_encryption_iv`- _(pro)_ an initialization vector (IV) to be used for the source URL encryption if encryption is needed. If not specified, a random IV is used.
- `base64_encode_url`— per-call redefinition of `base64_encode_urls` config.
341
-
- `escape_plain_url`— per-call redefinition of `always_escape_plain_urls` config.
342
-
- `use_short_options`— per-call redefinition of `use_short_options` config.
343
-
- `encrypt_source_url`- _(pro)_ per-call redefinition of `always_encrypt_source_urls` config.
344
-
- `source_url_encryption_iv`- _(pro)_ an initialization vector (IV) to be used for the source URL encryption if encryption is needed. If not specified, a random IV is used.
345
-
346
-
## Getting the image info
347
-
348
-
If you're a happy user of imgproxy Pro, you may find useful it's [Getting the image info](https://docs.imgproxy.net/usage/getting_info) feature. imgproxy.rb allows you to easily generate info URLs for your images:
0 commit comments