From 41bf4bea3b425bdb92de810c3fe0c8b47be146f3 Mon Sep 17 00:00:00 2001 From: jboulay Date: Thu, 13 Oct 2016 21:41:07 +0200 Subject: [PATCH] feat(cl-image): Better management of changes on component input All changes on input are propagated to the imageUrl Support `format` input Add new image service to retrieve the cloudinary image urls --- demo/demo.component.html | 12 ++-- src/cloudinary-image.component.ts | 88 ++++++++++++------------- src/cloudinary-image.service.ts | 49 ++++++++++++++ src/cloudinary-transforms.class.ts | 10 +++ src/cloudinary.module.ts | 5 ++ test/cloudinary-image.component.spec.ts | 4 +- 6 files changed, 115 insertions(+), 53 deletions(-) create mode 100644 src/cloudinary-image.service.ts create mode 100644 src/cloudinary-transforms.class.ts diff --git a/demo/demo.component.html b/demo/demo.component.html index 17833da..cbd3e5a 100644 --- a/demo/demo.component.html +++ b/demo/demo.component.html @@ -21,7 +21,7 @@

Cloudinary image directive

- +

Displaying the same image with a limited height of 200 pixels

@@ -30,7 +30,7 @@ 

Cloudinary image directive

- +

Image transformations are limited to the following parameters in the current version: