We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi!
I need support for extent but I fail to get it to work :/
extent composite image on background color canvas image. gm("img.png").extent([width, height, options])
extent composite image on background color canvas image.
gm("img.png").extent([width, height, options])
I tried to add:
if ( "extent" in this.options ) { const extentArgs = this.options.extent.match(cropSpec); const extentWidth = extentArgs[1]; const extentHeight = extentArgs[2]; img = img.extent(extentWidth, extentHeight); }
to "lib/ImageResizer.js" just before the check for croping. And in the config i added: "extent": "3000x3000",
"extent": "3000x3000",
Then I did:
make clean make npm run update
It compiles and I can run the script but the extent does not seem to be applied. So I guess I am missing some important step?
The text was updated successfully, but these errors were encountered:
Guess something just went wrong when updating, as it seems to work with this code.
Sorry, something went wrong.
No branches or pull requests
Hi!
I need support for extent but I fail to get it to work :/
I tried to add:
to "lib/ImageResizer.js" just before the check for croping. And in the config i added:
"extent": "3000x3000",
Then I did:
It compiles and I can run the script but the extent does not seem to be applied.
So I guess I am missing some important step?
The text was updated successfully, but these errors were encountered: