in app/domain/imagemagick/ImageMagickService.scala [23:47]
def convert(
beforePath: String,
afterPath: String) {
val operation = new IMOperation()
operation.addImage(beforePath)
operation.coalesce()
operation.geometry(400, 400)
// LGTMの文字
operation.gravity("center")
operation.font(fontStorage.path("Aileron-Black.otf"))
operation.pointsize(72)
operation.stroke("none")
operation.fill("white")
operation.kerning(12);
operation.strokewidth(5);
operation.annotate(0, 0, 0, 0, "LGTM")
// Looks Good To Me の文字
operation.font(fontStorage.path("Aileron-Regular.otf"))
operation.pointsize(11)
operation.kerning(6);
operation.annotate(0, 0, 0, 52, "Looks Good To Me")
operation.addImage(afterPath)
// コマンド実行
imageMagick.command(operation)
}