Bug #59392
closed
Gifbuilder: Make image-mask-functionality work again
Added by Stefan Neufeind about 10 years ago.
Updated almost 6 years ago.
Description
Currently the mask-functionality seems broken. The mask is not applied since
$processingConfiguration['maskImages']['maskImage'] and $processingConfiguration['maskImages']['backgroundImage']
are expected by the LocalCropScaleMaskHelper but not set.
And although then the resulting image is created correctly, the wrong file (path) is result.
Tested on current master, but I expect it does back to the 6.0-branch (introduction of FAL).
- Status changed from New to Under Review
Works for me using the patch in gerrit and the following code to watermark all images.
For an easier example just set XY to a fixed value and get rid of "10 = ..." completely. This way the watermark will be stretched depending on your image-size - but that's okay just for testing.
lib.watermark = IMG_RESOURCE
lib.watermark {
file = GIFBUILDER
file {
format = jpg
quality = 88
XY = [10.w],[10.h]
- 10 is just used to detect the size
10 = IMAGE
10.file {
import.current = 1
treatIdAsReference = 1
width.field = imagewidth
maxW = {$styles.content.imgtext.maxW}
maxW.override.data = register:maxImageWidth
maxWInText = {$styles.content.imgtext.maxWInText}
maxWInText.override.data = register:maxImageWidthInText
}
15 = IMAGE
15.offset = 10,10
15.file = fileadmin/wasserzeichen.png
}
}
tt_content.image.20.1.file {
m.mask.import.cObject < lib.watermark
m.mask.import.cObject.treatIdAsReference = 1
m.bgImg < .m.mask
}
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Under Review
- Status changed from Under Review to Resolved
- Status changed from Resolved to Closed
- Related to Feature #60806: Gifbuilder: Allow image-mask-functionality without specifying a mask added
Also available in: Atom
PDF