Barberry plugin for handling images
Based on barberry-plugin-imagemagick
All parameters must be listed with no separators.
The parameters are applied in the same order in which they are listed.
NOTES: To use this rule use prefix m_
before the command string (example /45e192737df133099c8f_m_100x50bgDFF.jpeg)
NOTES: There is support of previous urls if prefix m_
is omitted the parameters will be applied in the next order
Colorspace
,
Trim
,
Resize
,
Background
,
Quality
,
Canvas
Any parameter can be ommited.
[width]x[height][noUpscale]bg[color]canvas[width]x[height]quality[percent]colorspace[name]strip
Main info about height and width of corresponding image. In case noUpscale
provided image will only shrink, but never grow.
Background color of image in format 11AAFF (hex code format without # at the beginning)
Info about height and width of canvas the real added params for image imagemagick will be:
-size [width]x[height] xc:#[color] +swap -gravity center -composite
[color]
by default is 000000 if no background color is set, otherwise uses bg color
if the prefix m_
is set, canvas color should be set in the command string by cc
parameter (example canvas[width]x[height]cc[color])
Quality of jpeg image in percents. Range from 1 to 100
The colorspace of image. Allowed colorspaces:
Gray|CMYK|sRGB|Transparent|RGB
Remove any borders or edges of an image which did does not change in color or transparency. In other words it removes the 'boring' bits surrounding an image.
[color]
is color, which you want to trim
[percent]
is percent of fuzz to be applied while trimming (more percent, possibly more image will be cut)
In some cases color profiles can take up significant part of your image, especially if image is small or resized. This option allows to cut color profiles out.