Images: Scale image by percentage
Use this action to scale an image by a percentage. This action will always keep the same aspect ratio, regardless of the scale factor.
To adjust an image to a specific width and height, outside of the initial aspect ratio, use the Scale image by width and height action.
Over 150 different file formats are supported. See supported image file formats for a list of supported image types.
note
- Note: This action accepts images up to 15,000 Pixels and 15MB based on the PagerDuty Workflow Automation system limits.
How to configure this action
When configuring this action, reference a File in the Source Image field configuration, and enter an Integer or decimal or reference a field in the Scale the image by this percent field configuration. How do I reference a field?
The multiple files field type is not supported.
Supported image file formats
The image actions only works with specfic image formats. Any image format listed below is supported by the images type actions.
The “Supports” column is only relevant for image conversion actions.
Image Format | Supports |
---|---|
AAI | Read and Write |
APNG | Read and Write |
ART | Read and Write |
ARW | Read Only |
AVI | Read Only |
AVS | Read and Write |
BPG | Read and Write |
BMP, BMP2, BMP3 | Read and Write |
BRF | Write Only |
CALS | Read Only |
CGM | Read Only |
CIN | Read and Write |
CIP | Write Only |
CMYK | Read and Write |
CMYKA | Read and Write |
CR2 | Read Only |
CRW | Read Only |
CUBE | Read Only |
CUR | Read Only |
CUT | Read Only |
DCM | Read Only |
DCR | Read Only |
DCX | Read and Write |
DDS | Read and Write |
DIB | Read and Write |
DJVU | Read Only |
DNG | Read Only |
DOT | Read Only |
DPX | Read and Write |
EMF | Read Only |
EPDF | Read and Write |
EPI | Read and Write |
EPS | Read and Write |
EPS2 | Write Only |
EPS3 | Write Only |
EPSF | Read and Write |
EPSI | Read and Write |
EPT | Read and Write |
EXR | Read and Write |
FARBFELD | Read and Write |
FAX | Read and Write |
FIG | Read Only |
FITS | Read and Write |
FL32 | Read and Write |
FLIF | Read and Write |
FPX | Read and Write |
GIF | Read and Write |
GPLT | Read Only |
GRAY | Read and Write |
GRAYA | Read and Write |
HDR | Read and Write |
HDR | Read and Write |
HEIC | Read Only |
HPGL | Read Only |
HRZ | Read and Write |
HTML | Read and Write |
ICO | Read Only |
INFO | Write Only |
ISOBRL | Write Only |
ISOBRL6 | Write Only |
JBIG | Read and Write |
JNG | Read and Write |
JP2 | Read and Write |
JPT | Read and Write |
J2C | Read and Write |
J2K | Read and Write |
JPEG | Read and Write |
JXR | Read and Write |
JSON | Write Only |
JXL | Read and Write |
KERNEL | Write Only |
MAN | Read Only |
MAT | Read Only |
MIFF | Read and Write |
MONO | Read and Write |
MNG | Read and Write |
M2V | Read and Write |
MPEG | Read and Write |
MPC | Read and Write |
MPR | Read and Write |
MRW | Read Only |
MSL | Read and Write |
MTV | Read and Write |
MVG | Read and Write |
NEF | Read Only |
ORF | Read Only |
ORA | Read Only |
OTB | Read and Write |
P7 | Read and Write |
PALM | Read and Write |
PAM | Write Only |
CLIPBOARD | Read and Write |
PBM | Read and Write |
PCD | Read and Write |
PCDS | Read and Write |
PCL | Write Only |
PCX | Read and Write |
PDB | Read and Write |
Read and Write | |
PEF | Read Only |
PES | Read Only |
PFA | Read Only |
PFB | Read Only |
PFM | Read and Write |
PGM | Read and Write |
PHM | Read and Write |
PICON | Read and Write |
PICT | Read and Write |
PIX | Read Only |
PNG | Read and Write |
PNG8 | Read and Write |
PNG00 | Read and Write |
PNG24 | Read and Write |
PNG32 | Read and Write |
PNG48 | Read and Write |
PNG64 | Read and Write |
PNM | Read and Write |
POCKETMOD | Read and Write |
PPM | Read and Write |
PS | Read and Write |
PS2 | Read and Write |
PS3 | Read and Write |
PSB | Read and Write |
PSD | Read and Write |
PTIF | Read and Write |
PWP | Read Only |
RAD | Read Only |
RAF | Read Only |
RGB | Read and Write |
RGB565 | Read Only |
RGBA | Read and Write |
RGF | Read and Write |
RLA | Read Only |
RLE | Read Only |
SCT | Read Only |
SFW | Read Only |
SGI | Read and Write |
SHTML | Write Only |
SID, MrSID | Read Only |
SPARSE-COLOR | Write Only |
SUN | Read and Write |
SVG | Read and Write |
TEXT | Read Only |
TGA | Read and Write |
TIFF | Read and Write |
TIM | Read Only |
TTF | Read Only |
TXT | Read and Write |
UBRL | Write Only |
UBRL6 | Write Only |
UIL | Write Only |
UYVY | Read and Write |
VICAR | Read and Write |
VIFF | Read and Write |
WBMP | Read and Write |
WDP | Read and Write |
WEBP | Read and Write |
WMF | Read Only |
WPG | Read Only |
X | Read and Write |
XBM | Read and Write |
XCF | Read Only |
XPM | Read and Write |
XWD | Read and Write |
X3F | Read Only |
YAML | Write Only |
YCbCr | Read and Write |
YCbCrA | Read and Write |
YUV | Read and Write |
Fields for this action
-
Source Image
- The image to apply the transformation to. Reference a PagerDuty Workflow Automation file field.
-
Scale the image by this percent
- Enter the percent to scale the image by, excluding the % symbol. Decimals are supported.
- For example, 100, 50, 33.33
-
Output field prefix
- To help keep output fields organized, choose an output field prefix to add to the beginning of each output field name as this action may output more than one field.
What will this output?
This action may generate multiple fields. To help keep output fields organized, the prefix above will be added to the beginning of each of the output field names, separated by two dashes. Each field will result as:{{output-field-prefix--output-field}}
.
Output fields for this action
-
Result
- The converted image file. The output is a file type field. Click to save to your default download directory.
Get help with a problem or question
If something’s not working as expected, or you’re looking for suggestions, check through the options below.
The results field says “No file chosen”
If you choose an incompatible image file for the action, the output may be blank. For example, attempting to convert a .DOCX
word document will always return this empty, “No file chosen” field.
See supported image formats for a list of supported image types.
My file is missing a file extension, or just has a “.” at the end
This may happen if the Convert to image format field is misconfigured. Be sure to include the full image format file extension, such as .PNG
or .JPEG
.
Thanks for your feedback
We update the Help Center daily, so expect changes soon.
Link Copied
Paste this URL anywhere to link straight to the section.