[TYPO3-english] file.params and ImageMagick parameters in TypoScript

Edgars emoedgars at inbox.lv
Sat May 7 14:07:12 CEST 2011


 Hi, folks!
 Few days ago I started a fight with ImageMagick to achieve cute image
 effect, but without any results.
 I tried something like this (and the polaroid-like image was
 successfully generated):
 tt_content.image.20.1 {
 [...]
 file.params = -shave 10x10 -background '#FFF' -border 10x10 -gravity
 South -bordercolor '#FFF' -splice 0x20
 [...]
 }
 Also tried this one (without results):
 tt_content.image.20.1 {
 [...]
 file.params = -bordercolor '#FFF' -border 10x10 -gravity South
 -splice 0x20 ( +clone -background '#333' -shadow 75x3+0+3 ) +swap
 -background none -layers merge +repage -background none -flatten
 [...]
 }
 As additional detail - this perfectly worked on my server (without
 TYPO3 as plain PHP). The folowing example gave me a perfect image
 effect that I'm looking for (http://i.imgur.com/LrOE7.png):
 <?php
 exec("convert test.jpg -resize 75% -bordercolor '#FFF' -border 10x10
 -gravity South -splice 0x20 ( +clone -background '#333' -shadow
 75x3+0+3 ) +swap -background none -layers merge +repage -background
 none -flatten test_output.png")
 ?>
 Where could be the problem?
 Thanks in advance!
 Edgar


More information about the TYPO3-english mailing list