From 14282c52d49a286fa690d8af67e56fe8349fbd9f Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Mon, 10 Jun 2019 09:18:27 +0100 Subject: [PATCH] v0.5.0 (#123) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit no issue Changelog: - 🚀 Massively speed up fetching of image dimensions - use `probe-image-size` to fetch the minimum data needed to read the dimensions of each image - separate the `` tag conversion into a separate parsing step and run up to 10 network requests in parallel --- README.md | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index deb012e..adcfee7 100644 --- a/README.md +++ b/README.md @@ -43,9 +43,9 @@ Amperize is build to convert the `` part of your HTML. It will **not** cre **[`` reference](https://ampbyexample.com/components/amp-img/)** -Amperize will convert common `` tags into AMP HTML conform `` tags. With the sub-dependency [`image-size`](https://github.com/image-size/image-size), Amperize will fetch the necessary `width` and `height` properties for the given image. +Amperize will convert common `` tags into AMP HTML conform `` tags. With the sub-dependencies [`probe-image-size](https://github.com/nodeca/probe-image-size) and [`image-size`](https://github.com/image-size/image-size), Amperize will fetch the necessary `width` and `height` properties for the given image. -It will fall back to the default values `width: 600` and `height: 400`, if the dimensions couldn't get fetched. +It will fall back to the default values `width: 600` and `height: 400`, if the dimensions couldn't be fetched. If any other error occurs (eg. missing `src` property), Amperize will not transform the tag and return the original. @@ -59,13 +59,13 @@ When the `` tag that needs to be transformed, is a `.gif` animation, Amperi **[`` reference](https://ampbyexample.com/components/amp-iframe/)** -Amperize converts iFrames like embedded videos from YouTube, Vimeo, etc. into `` tags. +Amperize converts iFrames like embedded videos from YouTube, Vimeo, etc. into `` tags. If the `src` attribute is an `http` URL it will be switched to `https` in order to pass AMP validation. ### `` **[`` reference](https://ampbyexample.com/components/amp-audio/)** -Converts HTML `