Skip to content

Commit 8435450

Browse files
Rohit MishraRohit Mishra
authored andcommitted
Updated the README file
1 parent 112bc0d commit 8435450

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

README.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -96,21 +96,22 @@ For example, if you want to crop an image (with width as 300 and height as 400),
9696

9797
You can use the Image Delivery API functions in this SDK as well. Here are a few examples of its usage in the SDK.
9898

99-
// set the image quality to 100
100-
imageUrl = Stack->imageTransform(imageUrl, array(
101-
'quality'=> 100
102-
));
103-
104-
// resize the image by specifying width and height
105-
imageUrl = Stack->imageTransform(imageUrl, array(
106-
'width'=> 100,
107-
'height'=> 100
108-
));
109-
110-
// enable auto optimization for the image
111-
imageUrl = Stack.imageTransform(imageUrl, array(
112-
'auto'=> 'webp'
113-
))
99+
// set the image quality to 100.
100+
101+
imageUrl = Stack->imageTransform(imageUrl, array('quality'=> 100));
102+
103+
// resize the image by specifying width and height.
104+
105+
imageUrl = Stack->imageTransform(imageUrl, array(
106+
'width'=> 100,
107+
'height'=> 100
108+
));
109+
110+
// enable auto optimization for the image.
111+
112+
imageUrl = Stack.imageTransform(imageUrl, array(
113+
'auto'=> 'webp'
114+
))
114115

115116

116117

0 commit comments

Comments
 (0)