Perspective distortion should give you what you want. Example:
convert original.png -matte -virtual-pixel white +distort Perspective '0,0,0,0 0,100,0,100 100,100,90,110 100,0,90,5' distorted.png
In TYPO3, you can apply it in (ab) using the SCALE object in GIFBUILDER . Example:
temp.example = IMAGE temp.example { file = GIFBUILDER file { format = jpg quality = 100 maxWidth = 9999 maxHeight = 9999 XY = [10.w],[10.h] 10 = IMAGE 10.file = fileadmin/original.png 20 = SCALE 20 { params = -matte -virtual-pixel white +distort Perspective '0,0,0,0 0,100,0,100 100,100,90,110 100,0,90,5' } } }
source share