Skip to content

Commit

Permalink
fix: Using original format when creating Image in copyExpandCanvas() …
Browse files Browse the repository at this point in the history
…transform function
  • Loading branch information
yegor-pelykh committed Mar 26, 2024
1 parent e78bdf5 commit 0289a86
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/transform/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ export abstract class Transform {
new MemoryImage({
width: newWidth!,
height: newHeight!,
format: opt.image.format,
});

// If a background color is provided, set all pixels to that color
Expand Down

0 comments on commit 0289a86

Please sign in to comment.