Resize an image using a variety of resampling algorithms
The “Resize Image” action alters the dimensions of an image file.
Many applications and workflows rely upon images uploaded by users or customers. Sometimes these need to be resized on the fly to reduce the file size, fit into a content area or expanded for a better view.
With the “Resize Image” action in PowerTools, app and workflow designers can select one of a dozen sampling algorithms for the best clarity, along with units (pixel or percent), height and width. PowerTools will return a new image resized to match the specified parameters.
Parameters
Title
Name
Type
Description
File
file
file
Image file to resize
Resampling Algorithm
algorithm
string
Algorithm to use for resizing
Units
units
string
Pixels or Percent
Height
height
number
Final image height
Width
width
number
Final Image width
Response
Status
Title
Name
Type
Description
Success
Result
file
File (.gif, .png, .jpg or .bmp)
Failure
Result
result
string
Error description
Integrate the "Resize image" function into a workflow or app with the platform of your choice:
In the formula for the control, variable or element, type “ApptigentPowerTools.ResizeImage().result”. Within the parentheses, enter the field, control or variable that contains the source collection.
How to resize an image in another Platform or Custom Code
Instructions
If your platform is not listed and it supports Open API (Swagger) extensions, import the API Definition document from the Developer Edition product on our Customer Portal at https://portal.apptigent.com/product (look for the Open API link at the top of the PowerTools Developer API definition page). Invoke the desired actions in your app or workflow design tool, supplying values for the listed parameters. Refer to the developer documentation on the Customer Portal for details on input and output formats.
If you are developing a custom app, execute a RESTful POST operation to the /CountCollection endpoint in your application code or use the pre-generated client scaffolding from our Github repo at https://github.com/apptigent/powertools. Be sure to include your API Key (Client ID) in the header using the “X-IBM-Client-Id” key/value pair. The body should be a well-formed JSON object with the parameter label(s) and value(s) in the specified format. Refer to the API documentation at https://portal.apptigent.com for more information.
Ask our AI support assistant your questions about our platform, features, and services.
You are offline
What can I help you with?
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.