Skip to content

Releases: imgix/imgix-rails

3.0.0

24 Oct 19:36
Compare
Choose a tag to compare
  • 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.
  • 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 as tag_options.
      • imgix URL parameters to be added to the image URL should be passed in as url_params.
  • 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 renamed tag_options
    • The imgix_default_options argument has been renamed url_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

01 Jun 15:27
Compare
Choose a tag to compare
  • Fixed a bug to ensure the widths option passed to the imgix_tag() function doesn't contaminate the generated imgix URL as a query parameter.

2.1.3

26 Oct 06:55
Compare
Choose a tag to compare
  • Add ix_image_url as a Sprockets helper, so folks can create imgix URLs in their asset pipeline files.

2.1.2

27 Sep 00:28
Compare
Choose a tag to compare
  • Rename a private helper method that could collide with other helper methods in an application. See #32 for details. Thanks, @lou!

2.1.1

13 Jul 22:02
Compare
Choose a tag to compare
  • Fixed a bug that passed the widths option through to generated HTML elements.

2.1.0

09 Jun 20:37
Compare
Choose a tag to compare
  • Generate srcset values for exactly 1x, 2x, and 3x of the passed w.
  • Allow passing widths (an array of integers) to override the default srcset width generation.

2.0.0

23 May 19:31
Compare
Choose a tag to compare

Revamped imgix-rails with better srcset generation and picture tag support, similar to the upcoming changes in imgix.js 3.0.

1.1.0

25 Feb 19:56
Compare
Choose a tag to compare

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.

1.0.0

11 Dec 18:59
Compare
Choose a tag to compare

[1.0.0] - December 11, 2015

Changed

  • Updated imgix-rb dependency to version 1.0.0.
  • Changed :secure option to :use_https to be more clear and consistent with imgix-rb.