Skip to content

Commit 7cfb1d6

Browse files
committed
Add extent argument for setting a background color in GM/IM.
1 parent bf0282c commit 7cfb1d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

image.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ Image.prototype.colors = function(value) {
646646
};
647647

648648
Image.prototype.background = function(color) {
649-
return this.push('-background', color, 2, true);
649+
return this.push('-background', color, 2, true).push('-extent 0x0', null, 2);
650650
};
651651

652652
Image.prototype.fill = function(color) {

0 commit comments

Comments
 (0)