image_effects_text_test.features.inc 16 KB

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