Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draw text is applied to both image when append is used #710

Open
kiquetal opened this issue Mar 14, 2018 · 0 comments
Open

Draw text is applied to both image when append is used #710

kiquetal opened this issue Mar 14, 2018 · 0 comments

Comments

@kiquetal
Copy link

const gm = require('gm').subClass({imageMagick: true});
var dir = __dirname + '/imgs'

gm(dir + '/original.png')
.append(dir + '/lost.png')
.append()
.fontSize(68)
.drawText(50, 50, "fancyText")
.write(dir + '/drawingResult.png', function(err){
if (err) return console.dir(arguments)
console.log(this.outname + ' created :: ' + arguments[3])
}
)
I want to apply drawText to only one image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant