Editing ImgPen image editor configuration
A set of options used to customize ImgPen image editor is listed below.
Force PNG
Always save edited images in PNG format. PNG format is recommended due to it supports transparency and keeps quality without changes from save to save.
ImgPen.forcePng
boolean
true
JPEG quality
Quality in percents used when saving image into JPG/JPEG format. Used only when 'Force PNG' flag is unset.
ImgPen.jpegQuality
number
95
From 1
(low image quality, less file size) to 100
(high image quality, large file size)
Tools
The list of tools will be shown on the main ImgPen toolbar.
ImgPen.tools
string[]
null
crop
, resize
, transform
, corners
, filter
, draw
, text
, shapes
, stickers
, |
Combine your own toolbar ('|' means separator).
Custom colors
Customize the color palette with your own website colors with this option.
ImgPen.colors
string[]
null
Colors in HEX notation (like #A055FF
)
Remove default colors
Check this checkbox to clear the default colors list and use only custom one.
ImgPen.removeDefaultColors
boolean
null
Minimum and maximum resize widths and heights
ImgPen will not resize images less than specified minimum values or more than maximum values.
ImgPen.resizeMinWidth
number
null
In pixels
ImgPen.resizeMinHeight
number
null
In pixels
ImgPen.resizeMaxWidth
number
null
In pixels
ImgPen.resizeMaxHeight
number
null
In pixels
Crop ratios
If you need to adopt all images inside your content to some predefined aspect ratios, define them for crop tools too.
ImgPen.cropRatios
{w: number, h: number}[]
null
In abstract units
Remove default crop ratios
Check this checkbox to clear the default crop ratios list and use only custom one
ImgPen.removeDefaultCropRatios
boolean
null
Fonts
If your website uses some custom fonts and you wish to add captions on your images with these fonts, add links to the fonts here.
ImgPen.fonts
{family: string, url: string}[]
null
Absolute URLs are recommended
Stickers
Custom stickers will be added to the special sticker category in the ImgPen dialog.
ImgPen.stickers
string[]
null
Array of URLs to PNG/SVG stickers.
Remove default stickers
Check this checkbox to clear the default stickers list and use only custom one.
ImgPen.removeDefaultStickers
boolean
null
Shapes
You can extend the list of shapes by typing SVG paths in this section.
ImgPen.shapes
{title: string, path: string, freeScaling: boolean}[]
null
Remove default shapes
Check this checkbox to clear the default shapes list and use only custom one.
ImgPen.removeDefaultShapes
boolean
null