You are here

image_effects.schema.yml in Image Effects 8.3

config/schema/image_effects.schema.yml

File

config/schema/image_effects.schema.yml
View source
  1. # image_effects module schema
  2. # Schema for module settings.
  3. image_effects.settings:
  4. type: config_object
  5. label: 'Image Effects settings'
  6. mapping:
  7. color_selector:
  8. type: mapping
  9. label: 'Color selector plugin'
  10. mapping:
  11. plugin_id:
  12. type: string
  13. label: 'Selected plugin id'
  14. plugin_settings:
  15. type: sequence
  16. label: 'Plugin settings'
  17. sequence:
  18. type: image_effects.plugin.color_selector.[%key]
  19. image_selector:
  20. type: mapping
  21. label: 'Image selector plugin'
  22. mapping:
  23. plugin_id:
  24. type: string
  25. label: 'Selected plugin id'
  26. plugin_settings:
  27. type: sequence
  28. label: 'Plugins settings'
  29. sequence:
  30. type: image_effects.plugin.image_selector.[%key]
  31. font_selector:
  32. type: mapping
  33. label: 'Font selector plugin'
  34. mapping:
  35. plugin_id:
  36. type: string
  37. label: 'Selected plugin id'
  38. plugin_settings:
  39. type: sequence
  40. label: 'Plugins settings'
  41. sequence:
  42. type: image_effects.plugin.font_selector.[%key]
  43. # Schema for image_effects plugins settings.
  44. image_effects.plugin.color_selector.*:
  45. type: mapping
  46. label: 'Color selector plugin settings'
  47. image_effects.plugin.color_selector.html_color:
  48. type: mapping
  49. label: 'HTML color element'
  50. image_effects.plugin.color_selector.farbtastic:
  51. type: mapping
  52. label: 'Farbtastic color picker'
  53. image_effects.plugin.image_selector.*:
  54. type: mapping
  55. label: 'Image selector plugin settings'
  56. image_effects.plugin.image_selector.basic:
  57. type: mapping
  58. label: 'Basic'
  59. image_effects.plugin.image_selector.dropdown:
  60. type: mapping
  61. label: 'Dropdown'
  62. mapping:
  63. path:
  64. type: string
  65. label: 'Path where image files can be found'
  66. image_effects.plugin.font_selector.*:
  67. type: mapping
  68. label: 'Font selector plugin settings'
  69. image_effects.plugin.font_selector.basic:
  70. type: mapping
  71. label: 'Basic'
  72. image_effects.plugin.font_selector.dropdown:
  73. type: mapping
  74. label: 'Dropdown'
  75. mapping:
  76. path:
  77. type: string
  78. label: 'Path where font files can be found'
  79. # Image effects settings
  80. image.effect.image_effects_auto_orient:
  81. type: mapping
  82. label: 'Automatically correct orientation'
  83. mapping:
  84. scan_exif:
  85. type: boolean
  86. label: 'Scan EXIF data when calculating styled image dimensions'
  87. image.effect.image_effects_background:
  88. type: mapping
  89. label: 'Background image effect'
  90. mapping:
  91. background_image:
  92. type: string
  93. label: 'Background image path'
  94. background_image_width:
  95. type: string
  96. label: 'Background image width in px'
  97. background_image_height:
  98. type: string
  99. label: 'Background image height in px'
  100. placement:
  101. type: string
  102. label: 'Position of the source image on the background image'
  103. x_offset:
  104. type: integer
  105. label: 'X offset of the source image vs placement'
  106. y_offset:
  107. type: integer
  108. label: 'Y offset of the source image vs placement'
  109. opacity:
  110. type: integer
  111. label: 'Opacity of the source image'
  112. image.effect.image_effects_brightness:
  113. type: mapping
  114. label: 'Adjust image brightness'
  115. mapping:
  116. level:
  117. type: integer
  118. label: 'Level'
  119. image.effect.image_effects_color_shift:
  120. type: mapping
  121. label: 'Shift image colors'
  122. mapping:
  123. RGB:
  124. type: string
  125. label: 'RGB color shift'
  126. image.effect.image_effects_contrast:
  127. type: mapping
  128. label: 'Adjust image contrast'
  129. mapping:
  130. level:
  131. type: integer
  132. label: 'Level'
  133. image.effect.image_effects_gaussian_blur:
  134. type: mapping
  135. label: 'Blur the image with a Gaussian operator'
  136. mapping:
  137. radius:
  138. type: integer
  139. label: 'Radius'
  140. sigma:
  141. type: float
  142. label: 'Sigma'
  143. image.effect.image_effects_imagemagick_arguments:
  144. type: mapping
  145. label: 'Directly enter ImageMagick command line arguments'
  146. mapping:
  147. command_line:
  148. type: text
  149. label: 'Command line arguments'
  150. dimensions_method:
  151. type: string
  152. label: 'Method for determining dimensions'
  153. width:
  154. type: string
  155. label: 'Width in px or %'
  156. height:
  157. type: string
  158. label: 'Height in px or %'
  159. # The image invert effect has no settings.
  160. image.effect.image_effects_invert:
  161. type: sequence
  162. image.effect.image_effects_mask:
  163. type: mapping
  164. label: 'Apply a mask to the image'
  165. mapping:
  166. mask_image:
  167. type: string
  168. label: 'Mask image path'
  169. mask_width:
  170. type: string
  171. label: 'Mask image horizontal resizing'
  172. mask_height:
  173. type: string
  174. label: 'Mask image vertical resizing'
  175. placement:
  176. type: string
  177. label: 'Position of the mask image on the image'
  178. x_offset:
  179. type: string
  180. label: 'X offset of the mask image vs placement'
  181. y_offset:
  182. type: string
  183. label: 'Y offset of the mask image vs placement'
  184. image.effect.image_effects_mirror:
  185. type: mapping
  186. label: 'Mirror the image horizontally and/or vertically'
  187. mapping:
  188. x_axis:
  189. type: boolean
  190. label: 'Flop the source image horizontally'
  191. y_axis:
  192. type: boolean
  193. label: 'Flip the source image vertically'
  194. image.effect.image_effects_opacity:
  195. type: mapping
  196. label: 'Adjust image transparency level'
  197. mapping:
  198. opacity:
  199. type: integer
  200. label: 'Opacity % of the source image'
  201. image.effect.image_effects_relative_crop:
  202. type: mapping
  203. label: 'Relative crop'
  204. mapping:
  205. width:
  206. type: integer
  207. label: 'Ratio width'
  208. height:
  209. type: integer
  210. label: 'Ratio height'
  211. anchor:
  212. type: mapping
  213. label: 'Anchor'
  214. mapping:
  215. width:
  216. type: string
  217. label: 'Width anchor'
  218. constraints:
  219. AllowedValues: ['left', 'center', 'right']
  220. height:
  221. type: string
  222. label: 'Height anchor'
  223. constraints:
  224. AllowedValues: ['top', 'center', 'bottom']
  225. image.effect.image_effects_resize_percentage:
  226. type: mapping
  227. label: 'Resize based on percentage'
  228. mapping:
  229. width:
  230. type: string
  231. label: 'Width in px or %'
  232. height:
  233. type: string
  234. label: 'Height in px or %'
  235. image.effect.image_effects_scale_and_smart_crop:
  236. type: mapping
  237. label: 'Similar to Scale and Crop, but preserves the portion of the image with the most entropy.'
  238. mapping:
  239. width:
  240. type: string
  241. label: 'Width in px or %'
  242. height:
  243. type: string
  244. label: 'Height in px or %'
  245. upscale:
  246. type: boolean
  247. label: 'Upscale'
  248. simulate:
  249. type: boolean
  250. label: 'Simulate'
  251. algorithm:
  252. type: string
  253. label: 'Calculation algorithm'
  254. image.effect.image_effects_set_canvas:
  255. type: mapping
  256. label: 'Set canvas image effect'
  257. mapping:
  258. canvas_size:
  259. type: string
  260. label: 'Canvas sizing, exact or relative'
  261. canvas_color:
  262. type: string
  263. label: 'RGBA color of the canvas'
  264. exact:
  265. type: mapping
  266. mapping:
  267. width:
  268. type: string
  269. label: 'Exact width in px'
  270. height:
  271. type: string
  272. label: 'Exact height in px'
  273. placement:
  274. type: string
  275. label: 'Position of the source image on the canvas'
  276. x_offset:
  277. type: integer
  278. label: 'x offset vs placement'
  279. y_offset:
  280. type: integer
  281. label: 'y offset vs placement'
  282. relative:
  283. type: mapping
  284. mapping:
  285. left:
  286. type: integer
  287. label: 'Left margin in px'
  288. right:
  289. type: integer
  290. label: 'Right margin in px'
  291. top:
  292. type: integer
  293. label: 'Top margin in px'
  294. bottom:
  295. type: integer
  296. label: 'Bottom margin in px'
  297. image.effect.image_effects_set_transparent_color:
  298. type: mapping
  299. label: 'Set transparent color'
  300. mapping:
  301. transparent_color:
  302. type: string
  303. label: 'RGB color'
  304. image.effect.image_effects_smart_crop:
  305. type: mapping
  306. label: 'Similar to Crop, but preserves the portion of the image with the most entropy.'
  307. mapping:
  308. width:
  309. type: string
  310. label: 'Width in px or %'
  311. height:
  312. type: string
  313. label: 'Height in px or %'
  314. square:
  315. type: boolean
  316. label: 'Make width/height the same if one dimension is not specified'
  317. simulate:
  318. type: boolean
  319. label: 'Simulate'
  320. algorithm:
  321. type: string
  322. label: 'Calculation algorithm'
  323. # The strip metadata effect has no settings.
  324. image.effect.image_effects_strip_metadata:
  325. type: sequence
  326. image.effect.image_effects_text_overlay:
  327. type: mapping
  328. label: 'Text overlay effect'
  329. mapping:
  330. text_string:
  331. type: text
  332. label: 'Text associated with this effect, can include tokens'
  333. font:
  334. type: mapping
  335. mapping:
  336. name:
  337. type: string
  338. label: 'Font name'
  339. uri:
  340. type: string
  341. label: 'Font file URI'
  342. size:
  343. type: integer
  344. label: 'Font size'
  345. angle:
  346. type: integer
  347. label: 'Font orientation'
  348. color:
  349. type: color_hex
  350. label: 'Font color'
  351. stroke_mode:
  352. type: string
  353. label: 'Type of stroke (outline/shadow)'
  354. stroke_color:
  355. type: color_hex
  356. label: 'Color of the stroke'
  357. outline_top:
  358. type: integer
  359. label: 'Outline px on the top'
  360. outline_right:
  361. type: integer
  362. label: 'Outline px on the right'
  363. outline_bottom:
  364. type: integer
  365. label: 'Outline px on the bottom'
  366. outline_left:
  367. type: integer
  368. label: 'Outline px on the left'
  369. shadow_x_offset:
  370. type: integer
  371. label: 'Shadow horizontal offset in px'
  372. shadow_y_offset:
  373. type: integer
  374. label: 'Shadow vertical offset in px'
  375. shadow_width:
  376. type: integer
  377. label: 'Shadow width in px'
  378. shadow_height:
  379. type: integer
  380. label: 'Shadow height in px'
  381. layout:
  382. type: mapping
  383. mapping:
  384. padding_top:
  385. type: integer
  386. label: 'Padding top in px'
  387. padding_right:
  388. type: integer
  389. label: 'Padding right in px'
  390. padding_bottom:
  391. type: integer
  392. label: 'Padding bottom in px'
  393. padding_left:
  394. type: integer
  395. label: 'Padding left in px'
  396. x_pos:
  397. type: string
  398. label: 'Placement on canvas, horizontal'
  399. y_pos:
  400. type: string
  401. label: 'Placement on canvas, vertical'
  402. x_offset:
  403. type: integer
  404. label: 'Placement on canvas, horizontal, offset'
  405. y_offset:
  406. type: integer
  407. label: 'Placement on canvas, vertical, offset'
  408. background_color:
  409. type: color_hex
  410. label: 'Color of bounding box'
  411. overflow_action:
  412. type: string
  413. label: 'Action when text wrapper overflows canvas'
  414. extended_color:
  415. type: color_hex
  416. label: 'Color to be used when extending the underlying image'
  417. text:
  418. type: mapping
  419. mapping:
  420. strip_tags:
  421. type: boolean
  422. label: 'Strip HTML tags'
  423. decode_entities:
  424. type: boolean
  425. label: 'Decode HTML entities'
  426. maximum_chars:
  427. type: integer
  428. label: 'Maximum characters threshold'
  429. excess_chars_text:
  430. type: text
  431. label: 'Text to append at the end of the trimmed text string when it exceeded maximum characters threshold'
  432. maximum_width:
  433. type: integer
  434. label: 'Maximum width in px'
  435. fixed_width:
  436. type: boolean
  437. label: 'Fixed width flag'
  438. align:
  439. type: string
  440. label: 'Text alignment'
  441. line_spacing:
  442. type: integer
  443. label: 'Line spacing in px'
  444. case_format:
  445. type: string
  446. label: 'Text format conversion'
  447. image.effect.image_effects_watermark:
  448. type: mapping
  449. label: 'Watermark image effect'
  450. mapping:
  451. watermark_image:
  452. type: string
  453. label: 'Watermark image path'
  454. watermark_width:
  455. type: string
  456. label: 'Watermark image horizontal resizing'
  457. watermark_height:
  458. type: string
  459. label: 'Watermark image vertical resizing'
  460. placement:
  461. type: string
  462. label: 'Position of the watermark image on the canvas'
  463. x_offset:
  464. type: string
  465. label: 'X offset of the watermark image vs placement'
  466. y_offset:
  467. type: string
  468. label: 'Y offset of the watermark image vs placement'
  469. opacity:
  470. type: integer
  471. label: 'opacity'
  472. image.effect.image_effects_convolution:
  473. type: mapping
  474. label: 'Filter image using convolution'
  475. mapping:
  476. kernel:
  477. type: sequence
  478. label: 'Kernel'
  479. sequence:
  480. type: sequence
  481. label: 'Row'
  482. sequence:
  483. type: integer
  484. label: 'Column'
  485. divisor:
  486. type: integer
  487. label: 'Divisor'
  488. offset:
  489. type: integer
  490. label: 'Offset'
  491. label:
  492. type: string
  493. label: 'Label'
  494. image.effect.image_effects_convolution_sharpen:
  495. type: mapping
  496. label: 'Sharpen image using convolution'
  497. mapping:
  498. level:
  499. type: integer
  500. label: 'Level'
  501. image.effect.image_effects_interlace:
  502. type: mapping
  503. label: 'Adjust interlace type'
  504. mapping:
  505. type:
  506. type: string
  507. label: 'Type'
  508. image.effect.image_effects_aspect_switcher:
  509. type: mapping
  510. label: 'Allows to choose image styles to apply based on orientation (portrait or landscape)'
  511. mapping:
  512. landscape_image_style:
  513. type: string
  514. label: 'Image style machine_name for landscape orientation'
  515. portrait_image_style:
  516. type: string
  517. label: 'Image style machine_name for portrait orientation'
  518. ratio_adjustment:
  519. type: float
  520. label: 'This allows you to bend the rules for how different the proportions need to be to trigger the switch'