This repository has been archived by the owner on Sep 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cl-image): Add support for missing cloudinary's transformations
- Loading branch information
jboulay
committed
Nov 3, 2016
1 parent
4105042
commit ebf880d
Showing
5 changed files
with
177 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,56 @@ | ||
export class CloudinaryTransforms { | ||
format: string; | ||
height: number; | ||
static URL_PARAMS: { [key: string] : string; } = { | ||
'width' : 'w', | ||
'height' : 'h', | ||
'crop' : 'c', | ||
'aspect_ratio' : 'ar', | ||
'gravity' : 'g', | ||
'zoom' : 'z', | ||
'x' : 'x', | ||
'y' : 'y', | ||
'quality' : 'q', | ||
'radius' : 'r', | ||
'angle' : 'a', | ||
'effect' : 'e', | ||
'opacity' : 'o', | ||
'border' : 'bo', | ||
'background' : 'b', | ||
'overlay' : 'l', | ||
'underlay' : 'u', | ||
'default_image' : 'd', | ||
'delay' : 'dl', | ||
'color' : 'co', | ||
'dpr' : 'dpr', | ||
'page' : 'pg', | ||
'density' : 'dn', | ||
'flags' : 'fl', | ||
'transformation': 't' | ||
}; | ||
|
||
width: number; | ||
height: number; | ||
crop: string; | ||
aspect_ratio: string; | ||
gravity: string; | ||
zoom: number; | ||
x: number; | ||
y: number; | ||
|
||
format: string; | ||
quality: string; | ||
radius: string; | ||
angle: string; | ||
effect: string; | ||
opacity: number; | ||
border: string; | ||
background: string; | ||
overlay: string; | ||
underlay: string; | ||
default_image: string; | ||
delay: number; | ||
color: string; | ||
dpr: string; | ||
page: number; | ||
density: number; | ||
flags: string; | ||
transformation: string; | ||
} |