image_effects_text_test.features.inc 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481
  1. <?php
  2. /**
  3. * @file
  4. * image_effects_text_test.features.inc
  5. */
  6. /**
  7. * Implements hook_image_default_styles().
  8. */
  9. function image_effects_text_test_image_default_styles() {
  10. $styles = array();
  11. // Exported image style: text-rotate-test
  12. $styles['text-rotate-test'] = array(
  13. 'name' => 'text-rotate-test',
  14. 'effects' => array(
  15. 32 => array(
  16. 'label' => 'Échelle',
  17. 'help' => 'La mise à l\'échelle maintiendra les proportions originales de l\'image. Si une seule dimension est précisée, l\'autre dimension sera calculée automatiquement.',
  18. 'effect callback' => 'image_scale_effect',
  19. 'dimensions callback' => 'image_scale_dimensions',
  20. 'form callback' => 'image_scale_form',
  21. 'summary theme' => 'image_scale_summary',
  22. 'module' => 'image',
  23. 'name' => 'image_scale',
  24. 'data' => array(
  25. 'width' => '800',
  26. 'height' => '',
  27. 'upscale' => 0,
  28. ),
  29. 'weight' => '1',
  30. ),
  31. 33 => array(
  32. 'label' => 'Overlay (watermark)',
  33. 'help' => 'Choose the file image you wish to use as an overlay, and position it in a layer on top of the canvas.',
  34. 'effect callback' => 'canvasactions_file2canvas_image',
  35. 'form callback' => 'canvasactions_file2canvas_form',
  36. 'summary theme' => 'canvasactions_file2canvas_summary',
  37. 'module' => 'imagecache_canvasactions',
  38. 'name' => 'canvasactions_file2canvas',
  39. 'data' => array(
  40. 'xpos' => 0,
  41. 'ypos' => 0,
  42. 'alpha' => '100',
  43. 'path' => 'grid800x600.png',
  44. ),
  45. 'weight' => '2',
  46. ),
  47. 34 => array(
  48. 'label' => 'Texte',
  49. 'help' => 'Add static or dynamic (coded) text to an image.',
  50. 'dimensions passthrough' => TRUE,
  51. 'form callback' => 'image_effects_text_form',
  52. 'effect callback' => 'image_effects_text_effect',
  53. 'summary theme' => 'image_effects_text_summary',
  54. 'module' => 'image_effects_text',
  55. 'name' => 'image_effects_text',
  56. 'data' => array(
  57. 'size' => '18',
  58. 'xpos' => '100',
  59. 'ypos' => '200',
  60. 'halign' => 'left',
  61. 'valign' => 'bottom',
  62. 'RGB' => array(
  63. 'HEX' => '000000',
  64. ),
  65. 'alpha' => '100',
  66. 'angle' => '45',
  67. 'fontfile' => 'lhandw.ttf',
  68. 'text_source' => 'text',
  69. 'text' => '100,200 45 left,bottom',
  70. 'php' => 'return \'Hello World!\'',
  71. ),
  72. 'weight' => '3',
  73. ),
  74. 35 => array(
  75. 'label' => 'Texte',
  76. 'help' => 'Add static or dynamic (coded) text to an image.',
  77. 'dimensions passthrough' => TRUE,
  78. 'form callback' => 'image_effects_text_form',
  79. 'effect callback' => 'image_effects_text_effect',
  80. 'summary theme' => 'image_effects_text_summary',
  81. 'module' => 'image_effects_text',
  82. 'name' => 'image_effects_text',
  83. 'data' => array(
  84. 'size' => '18',
  85. 'xpos' => '300',
  86. 'ypos' => '200',
  87. 'halign' => 'center',
  88. 'valign' => 'center',
  89. 'RGB' => array(
  90. 'HEX' => '000000',
  91. ),
  92. 'alpha' => '100',
  93. 'angle' => '45',
  94. 'fontfile' => 'lhandw.ttf',
  95. 'text_source' => 'text',
  96. 'text' => '300,200 45 center,center',
  97. 'php' => 'return \'Hello World!\'',
  98. ),
  99. 'weight' => '4',
  100. ),
  101. 37 => array(
  102. 'label' => 'Texte',
  103. 'help' => 'Add static or dynamic (coded) text to an image.',
  104. 'dimensions passthrough' => TRUE,
  105. 'form callback' => 'image_effects_text_form',
  106. 'effect callback' => 'image_effects_text_effect',
  107. 'summary theme' => 'image_effects_text_summary',
  108. 'module' => 'image_effects_text',
  109. 'name' => 'image_effects_text',
  110. 'data' => array(
  111. 'size' => '18',
  112. 'xpos' => '500',
  113. 'ypos' => '200',
  114. 'halign' => 'right',
  115. 'valign' => 'top',
  116. 'RGB' => array(
  117. 'HEX' => '000000',
  118. ),
  119. 'alpha' => '100',
  120. 'angle' => '45',
  121. 'fontfile' => 'lhandw.ttf',
  122. 'text_source' => 'text',
  123. 'text' => '500,200 45 right,top',
  124. 'php' => 'return \'Hello World!\'',
  125. ),
  126. 'weight' => '5',
  127. ),
  128. 38 => array(
  129. 'label' => 'Texte',
  130. 'help' => 'Add static or dynamic (coded) text to an image.',
  131. 'dimensions passthrough' => TRUE,
  132. 'form callback' => 'image_effects_text_form',
  133. 'effect callback' => 'image_effects_text_effect',
  134. 'summary theme' => 'image_effects_text_summary',
  135. 'module' => 'image_effects_text',
  136. 'name' => 'image_effects_text',
  137. 'data' => array(
  138. 'size' => '18',
  139. 'xpos' => '100',
  140. 'ypos' => '500',
  141. 'halign' => 'left',
  142. 'valign' => 'bottom',
  143. 'RGB' => array(
  144. 'HEX' => '000000',
  145. ),
  146. 'alpha' => '100',
  147. 'angle' => '-30',
  148. 'fontfile' => 'lhandw.ttf',
  149. 'text_source' => 'text',
  150. 'text' => '100,500 -30 left,bottom',
  151. 'php' => 'return \'Hello World!\'',
  152. ),
  153. 'weight' => '7',
  154. ),
  155. 39 => array(
  156. 'label' => 'Texte',
  157. 'help' => 'Add static or dynamic (coded) text to an image.',
  158. 'dimensions passthrough' => TRUE,
  159. 'form callback' => 'image_effects_text_form',
  160. 'effect callback' => 'image_effects_text_effect',
  161. 'summary theme' => 'image_effects_text_summary',
  162. 'module' => 'image_effects_text',
  163. 'name' => 'image_effects_text',
  164. 'data' => array(
  165. 'size' => '18',
  166. 'xpos' => '300',
  167. 'ypos' => '500',
  168. 'halign' => 'center',
  169. 'valign' => 'center',
  170. 'RGB' => array(
  171. 'HEX' => '000000',
  172. ),
  173. 'alpha' => '100',
  174. 'angle' => '-30',
  175. 'fontfile' => 'lhandw.ttf',
  176. 'text_source' => 'text',
  177. 'text' => '300,500 -30 center,center',
  178. 'php' => 'return \'Hello World!\'',
  179. ),
  180. 'weight' => '8',
  181. ),
  182. 40 => array(
  183. 'label' => 'Texte',
  184. 'help' => 'Add static or dynamic (coded) text to an image.',
  185. 'dimensions passthrough' => TRUE,
  186. 'form callback' => 'image_effects_text_form',
  187. 'effect callback' => 'image_effects_text_effect',
  188. 'summary theme' => 'image_effects_text_summary',
  189. 'module' => 'image_effects_text',
  190. 'name' => 'image_effects_text',
  191. 'data' => array(
  192. 'size' => '18',
  193. 'xpos' => '600',
  194. 'ypos' => '400',
  195. 'halign' => 'right',
  196. 'valign' => 'top',
  197. 'RGB' => array(
  198. 'HEX' => '000000',
  199. ),
  200. 'alpha' => '100',
  201. 'angle' => '-30',
  202. 'fontfile' => 'lhandw.ttf',
  203. 'text_source' => 'text',
  204. 'text' => '600,400 -30 right,top',
  205. 'php' => 'return \'Hello World!\'',
  206. ),
  207. 'weight' => '9',
  208. ),
  209. ),
  210. );
  211. // Exported image style: text-test
  212. $styles['text-test'] = array(
  213. 'name' => 'text-test',
  214. 'effects' => array(
  215. 23 => array(
  216. 'label' => 'Overlay (watermark)',
  217. 'help' => 'Choose the file image you wish to use as an overlay, and position it in a layer on top of the canvas.',
  218. 'effect callback' => 'canvasactions_file2canvas_image',
  219. 'form callback' => 'canvasactions_file2canvas_form',
  220. 'summary theme' => 'canvasactions_file2canvas_summary',
  221. 'module' => 'imagecache_canvasactions',
  222. 'name' => 'canvasactions_file2canvas',
  223. 'data' => array(
  224. 'xpos' => 'left',
  225. 'ypos' => 'top',
  226. 'alpha' => '100',
  227. 'path' => 'grid800x600.png',
  228. ),
  229. 'weight' => '-10',
  230. ),
  231. 22 => array(
  232. 'label' => 'Texte',
  233. 'help' => 'Add static or dynamic (coded) text to an image.',
  234. 'dimensions passthrough' => TRUE,
  235. 'form callback' => 'image_effects_text_form',
  236. 'effect callback' => 'image_effects_text_effect',
  237. 'summary theme' => 'image_effects_text_summary',
  238. 'module' => 'image_effects_text',
  239. 'name' => 'image_effects_text',
  240. 'data' => array(
  241. 'size' => '18',
  242. 'xpos' => '100',
  243. 'ypos' => '200',
  244. 'halign' => 'left',
  245. 'valign' => 'top',
  246. 'RGB' => array(
  247. 'HEX' => '000000',
  248. ),
  249. 'alpha' => '100',
  250. 'angle' => '0',
  251. 'fontfile' => 'lhandw.ttf',
  252. 'text_source' => 'text',
  253. 'text' => '100,200 left,top',
  254. 'php' => 'return \'Hello World!\'',
  255. ),
  256. 'weight' => '-8',
  257. ),
  258. 24 => array(
  259. 'label' => 'Texte',
  260. 'help' => 'Add static or dynamic (coded) text to an image.',
  261. 'dimensions passthrough' => TRUE,
  262. 'form callback' => 'image_effects_text_form',
  263. 'effect callback' => 'image_effects_text_effect',
  264. 'summary theme' => 'image_effects_text_summary',
  265. 'module' => 'image_effects_text',
  266. 'name' => 'image_effects_text',
  267. 'data' => array(
  268. 'size' => '18',
  269. 'xpos' => '300',
  270. 'ypos' => '200',
  271. 'halign' => 'left',
  272. 'valign' => 'center',
  273. 'RGB' => array(
  274. 'HEX' => '000000',
  275. ),
  276. 'alpha' => '100',
  277. 'angle' => '0',
  278. 'fontfile' => 'lhandw.ttf',
  279. 'text_source' => 'text',
  280. 'text' => '300,200 left,center',
  281. 'php' => 'return \'Hello World!\'',
  282. ),
  283. 'weight' => '3',
  284. ),
  285. 25 => array(
  286. 'label' => 'Texte',
  287. 'help' => 'Add static or dynamic (coded) text to an image.',
  288. 'dimensions passthrough' => TRUE,
  289. 'form callback' => 'image_effects_text_form',
  290. 'effect callback' => 'image_effects_text_effect',
  291. 'summary theme' => 'image_effects_text_summary',
  292. 'module' => 'image_effects_text',
  293. 'name' => 'image_effects_text',
  294. 'data' => array(
  295. 'size' => '18',
  296. 'xpos' => '500',
  297. 'ypos' => '200',
  298. 'halign' => 'left',
  299. 'valign' => 'bottom',
  300. 'RGB' => array(
  301. 'HEX' => '000000',
  302. ),
  303. 'alpha' => '100',
  304. 'angle' => '0',
  305. 'fontfile' => 'lhandw.ttf',
  306. 'text_source' => 'text',
  307. 'text' => '500,200 left,bottom',
  308. 'php' => 'return \'Hello World!\'',
  309. ),
  310. 'weight' => '4',
  311. ),
  312. 26 => array(
  313. 'label' => 'Texte',
  314. 'help' => 'Add static or dynamic (coded) text to an image.',
  315. 'dimensions passthrough' => TRUE,
  316. 'form callback' => 'image_effects_text_form',
  317. 'effect callback' => 'image_effects_text_effect',
  318. 'summary theme' => 'image_effects_text_summary',
  319. 'module' => 'image_effects_text',
  320. 'name' => 'image_effects_text',
  321. 'data' => array(
  322. 'size' => '18',
  323. 'xpos' => '100',
  324. 'ypos' => '400',
  325. 'halign' => 'center',
  326. 'valign' => 'top',
  327. 'RGB' => array(
  328. 'HEX' => '000000',
  329. ),
  330. 'alpha' => '100',
  331. 'angle' => '0',
  332. 'fontfile' => 'lhandw.ttf',
  333. 'text_source' => 'text',
  334. 'text' => '100,400 center,top',
  335. 'php' => 'return \'Hello World!\'',
  336. ),
  337. 'weight' => '5',
  338. ),
  339. 27 => array(
  340. 'label' => 'Texte',
  341. 'help' => 'Add static or dynamic (coded) text to an image.',
  342. 'dimensions passthrough' => TRUE,
  343. 'form callback' => 'image_effects_text_form',
  344. 'effect callback' => 'image_effects_text_effect',
  345. 'summary theme' => 'image_effects_text_summary',
  346. 'module' => 'image_effects_text',
  347. 'name' => 'image_effects_text',
  348. 'data' => array(
  349. 'size' => '18',
  350. 'xpos' => '300',
  351. 'ypos' => '400',
  352. 'halign' => 'center',
  353. 'valign' => 'center',
  354. 'RGB' => array(
  355. 'HEX' => '000000',
  356. ),
  357. 'alpha' => '100',
  358. 'angle' => '0',
  359. 'fontfile' => 'lhandw.ttf',
  360. 'text_source' => 'text',
  361. 'text' => '300,400 center,center',
  362. 'php' => 'return \'Hello World!\'',
  363. ),
  364. 'weight' => '6',
  365. ),
  366. 28 => array(
  367. 'label' => 'Texte',
  368. 'help' => 'Add static or dynamic (coded) text to an image.',
  369. 'dimensions passthrough' => TRUE,
  370. 'form callback' => 'image_effects_text_form',
  371. 'effect callback' => 'image_effects_text_effect',
  372. 'summary theme' => 'image_effects_text_summary',
  373. 'module' => 'image_effects_text',
  374. 'name' => 'image_effects_text',
  375. 'data' => array(
  376. 'size' => '18',
  377. 'xpos' => '500',
  378. 'ypos' => '400',
  379. 'halign' => 'center',
  380. 'valign' => 'bottom',
  381. 'RGB' => array(
  382. 'HEX' => '000000',
  383. ),
  384. 'alpha' => '100',
  385. 'angle' => '0',
  386. 'fontfile' => 'lhandw.ttf',
  387. 'text_source' => 'text',
  388. 'text' => '500,400 center, bottom',
  389. 'php' => 'return \'Hello World!\'',
  390. ),
  391. 'weight' => '7',
  392. ),
  393. 29 => array(
  394. 'label' => 'Texte',
  395. 'help' => 'Add static or dynamic (coded) text to an image.',
  396. 'dimensions passthrough' => TRUE,
  397. 'form callback' => 'image_effects_text_form',
  398. 'effect callback' => 'image_effects_text_effect',
  399. 'summary theme' => 'image_effects_text_summary',
  400. 'module' => 'image_effects_text',
  401. 'name' => 'image_effects_text',
  402. 'data' => array(
  403. 'size' => '18',
  404. 'xpos' => '100',
  405. 'ypos' => '500',
  406. 'halign' => 'right',
  407. 'valign' => 'top',
  408. 'RGB' => array(
  409. 'HEX' => '000000',
  410. ),
  411. 'alpha' => '100',
  412. 'angle' => '0',
  413. 'fontfile' => 'lhandw.ttf',
  414. 'text_source' => 'text',
  415. 'text' => '100,500 right,top',
  416. 'php' => 'return \'Hello World!\'',
  417. ),
  418. 'weight' => '8',
  419. ),
  420. 30 => array(
  421. 'label' => 'Texte',
  422. 'help' => 'Add static or dynamic (coded) text to an image.',
  423. 'dimensions passthrough' => TRUE,
  424. 'form callback' => 'image_effects_text_form',
  425. 'effect callback' => 'image_effects_text_effect',
  426. 'summary theme' => 'image_effects_text_summary',
  427. 'module' => 'image_effects_text',
  428. 'name' => 'image_effects_text',
  429. 'data' => array(
  430. 'size' => '18',
  431. 'xpos' => '300',
  432. 'ypos' => '500',
  433. 'halign' => 'right',
  434. 'valign' => 'center',
  435. 'RGB' => array(
  436. 'HEX' => '000000',
  437. ),
  438. 'alpha' => '100',
  439. 'angle' => '0',
  440. 'fontfile' => 'lhandw.ttf',
  441. 'text_source' => 'text',
  442. 'text' => '300,500 right,center',
  443. 'php' => 'return \'Hello World!\'',
  444. ),
  445. 'weight' => '9',
  446. ),
  447. 31 => array(
  448. 'label' => 'Texte',
  449. 'help' => 'Add static or dynamic (coded) text to an image.',
  450. 'dimensions passthrough' => TRUE,
  451. 'form callback' => 'image_effects_text_form',
  452. 'effect callback' => 'image_effects_text_effect',
  453. 'summary theme' => 'image_effects_text_summary',
  454. 'module' => 'image_effects_text',
  455. 'name' => 'image_effects_text',
  456. 'data' => array(
  457. 'size' => '18',
  458. 'xpos' => '500',
  459. 'ypos' => '500',
  460. 'halign' => 'right',
  461. 'valign' => 'bottom',
  462. 'RGB' => array(
  463. 'HEX' => '000000',
  464. ),
  465. 'alpha' => '100',
  466. 'angle' => '0',
  467. 'fontfile' => 'lhandw.ttf',
  468. 'text_source' => 'text',
  469. 'text' => '500,500 right,bottom',
  470. 'php' => 'return \'Hello World!\'',
  471. ),
  472. 'weight' => '10',
  473. ),
  474. ),
  475. );
  476. return $styles;
  477. }