Feature #28699
closedGraphicsmagick User Command
0%
Description
i cant find a way to place my own user command to gifbuilder->graphicsmagick.
so i wrote just 3 lines in t3lib_stdGraphic::IMparams() after all other cases:
function IMparams($setup) {
....
case 'user':
$commands .= ' ' . $value;
break;
}
with this i can produce duplex (sepia) images via ts like:
page.10 = IMAGE
page.10.file = GIFBUILDER
page.10.file {
XY = [10.w],[10.h]
10 = IMAGE
10.file = fileadmin/1.jpg
20 = EFFECT
30.value = user = -colorspace RGB -modulate 130,0,100 -colorize 100/70/0/10
}
maybe this is a way to support full functions of graphicsmagick an not only predefined?
or is there another way to place my own commands?
kind regards
carsten
Updated by Carsten Bleicker over 13 years ago
sorry, has to be:
20 = EFFECT
20.value = user = -colorspace RGB -modulate 130,0,100 -colorize 100/70/0/10
Updated by Björn Pedersen over 13 years ago
Could be nice, but needs some checks to prevent execution of arbitrary shell commands!
Updated by Carsten Bleicker over 13 years ago
Björn Pedersen wrote:
Could be nice, but needs some checks to prevent execution of arbitrary shell commands!
yep, didnt keep any mind in security at this point :)
just want discuss it.
but ts should be allways admin feature. dont know, is there any chance to "hack" it without ts access?
another idea:
does it make sense to put stdWrap support for this "user command"?
Updated by Jigal van Hemert over 13 years ago
- Status changed from New to Needs Feedback
The gifbuilder object SCALE has a 'params' property which allows you to send parameters to ImageMagick / GraphicsMagick.
Is this enough for you?
Updated by Carsten Bleicker over 13 years ago
didn't check this but it is confusing to send a colorspace option in a scale object, isn't it?
Updated by Alexander Opitz over 11 years ago
- Status changed from Needs Feedback to New
Updated by Mathias Schreiber almost 10 years ago
- Target version set to 7.2 (Frontend)
Updated by Benni Mack over 9 years ago
- Target version changed from 7.2 (Frontend) to 7.4 (Backend)
Updated by Susanne Moog over 9 years ago
- Target version changed from 7.4 (Backend) to 7.5
Updated by Susanne Moog about 7 years ago
- Category changed from Image Cropping to Image Generation / GIFBUILDER
Updated by Benni Mack over 5 years ago
- Status changed from New to Rejected
sry. won't do due to critical injection possiblity via TypoScript.