GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Updated the README file · contentstack/contentstack-php@c3b371d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • README.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+16-8Lines changed: 16 additions & 8 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,24 @@ For example, if you want to crop an image (with width as 300 and height as 400),
9494

9595
[Read Image Delivery API documentation](https://www.contentstack.com/docs/apis/image-delivery-api/).
9696

97-
Following are Image Delivery API examples.
97+
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 quality 100
100-
$imageUrl = $stack->ImageTrasform($imageUrl, array('quality'=> 100));
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+
))
101114

102-
// set the quality to 100, auto optimization, width and height
103-
$imageUrl = $stack->ImageTrasform($imageUrl, array('quality'=> 100,
104-
'auto'=> 'webp',
105-
'width'=> 100,
106-
'height'=> 100));
107115

108116

109117
### Helpful Links

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.