Releases: imgix/imgix-rails
Releases · imgix/imgix-rails
3.0.0
- Added support for multiple sources by using a
sources
array in your imgix configuration.- You can also specify a
default_source
configuration variable, to automatically select between multiple sources.
- You can also specify a
- Removed the
hostnames_to_replace
configuration variable, in an attempt to consolidate and focus the functionality of this library. If you need hostname replacement functionality in your project, we recommend using.sub!
or another string manipulation function to remove the hostname from your URLs and pass only the path to imgix helper methods. - Changes to
ix_image_tag
helper:- An optional first argument has been added to specify which source to use, when using multiple sources (see above)
- The second argument (or first, if not selecting from among multiple sources) now expects an image path only, since hostname replacement has been removed (see above).
- The final argument no longer accepts arbitrary options.
- HTML attributes to be added to the
img
tag should be passed in astag_options
. - imgix URL parameters to be added to the image URL should be passed in as
url_params
.
- HTML attributes to be added to the
- Changes to
ix_picture_tag
helper:- An optional first argument has been added to specify which source to use, when using multiple sources (see see above)
- The second argument (or first, if not selecting from among multiple sources) now expects an image path only, since hostname replacement has been removed (see above).
- The
picture_tag_options
argument has been renamedtag_options
- The
imgix_default_options
argument has been renamedurl_params
.
- Changes to
ix_image_url
helper:- An optional first argument has been added to specify which source to use, when using multiple sources (see above)
- The second argument (or first, if not selecting from among multiple sources) now expects an image path only, since hostname replacement has been removed (see above).
- The number of widths generated for
srcset
lists has been reduced. See #59 for details.
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.0
Revamped imgix-rails with better srcset
generation and picture
tag support, similar to the upcoming changes in imgix.js 3.0.
ix_image_tag
: https://github.com/imgix/imgix-rails#ix_image_tagix_picture_tag
: https://github.com/imgix/imgix-rails#ix_picture_tag
1.1.0
Updated imgix-rb dependency to version 1.1.0. This gets us some neat stuff:
- Added automatic Base64 encoding for all Base64 variant parameters.
- Properly encoding all keys and values output by
Imgix::Path
. - Better URL encoding for spaces, with
ERB::Util.url_encode
. - Normalize trailing
/
in passed hosts.