Skip to content

Releases: mindkomm/timmy

0.14.1

20 Jun 06:52
Compare
Choose a tag to compare
  • Added bailout in image_downsize filter when no image size could be found.
  • Updated the order of the image attributes when using get_timber_image_responsive().
  • Fixed bug when full image size couldn’t be found when using get_timber_image().

Documentation

Development

  • Added testing setup to be able to test Timmy functionality and make it more robust.

0.14.0

08 Oct 18:46
Compare
Choose a tag to compare
  • Introduced new function Helper::get_attribute_html() that is used to turn an associative array of HTML attributes into a string. Internally, the handling of a list of HTML attributes was improved by introducing attribute arrays that get passed around and will be turned into HTML by this new function.
  • Introduced new function get_timber_image_attributes_responsive() that can be used to get an associative array of default HTML attributes for a responsive Timber image.
  • Introduced new function get_timber_image_texts() that is used to retrieve alt and title attributes for an image.
  • Deprecated the get_image_attr_html() function in favor of Helper::get_attribute_html().
  • Deprecated the get_timber_image_attr() function in favor of get_timber_image_texts().

Improved Responsive Content Images feature

  • Introduced arguments array for Responsive_Content_Images class with new option map_sizes, that allows the usage of custom image sizes for image sizes used in the content.
  • Introduced new filter timmy/responsive_content_image/attributes to filter image attributes used for a responsive content image.
  • Introduced new filter timmy/responsive_content_image to filter the image HTML markup for a responsive content image.
  • Added filter that automatically removes any width styles from WordPress-generated <figure> tags.

Meta data for images

When an image is uploaded, Timmy now generates image metadata that is saved in the database. This improves compatibility with third party plugins that sometimes check this metadata for various reasons. For example, Yoast SEO needs this data to generate the markup for OG image tags. For this to work, you need to define a large image source in your image config.

To generate this data for existing images, you’d have to run Regenerate Thumbnails.

Documentation update

The README file was quite long, probably a little too long. The big part of the documentation can now be found in separate files in the docs/ folder. Use the Documentation Section in the README for an entry point.

0.14.0-rc.2

31 Aug 17:28
Compare
Choose a tag to compare
0.14.0-rc.2 Pre-release
Pre-release

0.14.0-rc.1

06 Aug 13:07
Compare
Choose a tag to compare
0.14.0-rc.1 Pre-release
Pre-release

v0.13.6

11 Apr 12:12
Compare
Choose a tag to compare
  • Escaped HTML attributes with esc_attr() for better security and to prevent errors when certain characters are used in image alt texts and titles.

v0.13.5

09 Mar 10:56
Compare
Choose a tag to compare

This release fixes some regressions bugs.

  • Changed how the bug that was fixed in 0.13.4 is handled. Solved it differently (d03849f), so that the changes made for the timmy/resize/ignore filter in 0.13.4 could be reversed. Check the filter section in the README for how the timmy/resize/ignore filter works. Sorry!
  • Fixed a whitespace bug in get_timber_image_responsive_src() that was introduced in 0.13.3 (a17aa2e).

v0.13.4

06 Mar 14:37
Compare
Choose a tag to compare
  • Fixed a bug when timmy/resize/ignore filter was ignored in the backend when attachments were queried.
  • The parameters passed to timmy/resize/ignore filter changed. Instead of the $attachment parameter, there’s now a $mime_type parameter. The order for the other parameters changed as well. Check the filter section in the README.

v0.13.3 – Lazy loading

26 Feb 10:05
Compare
Choose a tag to compare

v0.13.2

14 Feb 08:33
Compare
Choose a tag to compare
  • Fixed a bug when Timmy tried to convert a PDF to JPEG. Timmy now checks that a file is not a PDF before converting it to JPG.

v0.13.1 – Update to oversize

08 Feb 16:15
Compare
Choose a tag to compare
  • Fixed behavior of oversize parameter. Prior to this version, images would grow bigger than their original size even if oversize['allow'] was set to false.
  • Extended the oversize shortcut to also set the style_attr parameter. This means that you can use oversize => true or oversize => false to set all parameters directly. This change only has implications for you if you’ve used oversize => false in the past.
  • Added new filter timmy\oversize to set the default values for the oversize parameter. Read more about it in the Filters section of the README.