Skip to content

Commit b20ae25

Browse files
volta2030Copilot
andauthored
Update imgkit/core/image_layer.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 3041ab7 commit b20ae25

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

imgkit/core/image_layer.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,10 +497,9 @@ class ImageLayer {
497497
} else if (this.extension === "pix") {
498498
// For PIX format, convert back to PIX buffer
499499
const pixData = await Pix.toPix(this.buffer, this.info);
500-
Pix.save(pixData, savePath);
500+
await Pix.save(pixData, savePath);
501501
this.filepath = savePath;
502502
ipcRenderer.send("showNotificationREQ", "imgkit-save");
503-
return;
504503
} else {
505504
// For other formats, extract from canvas
506505
const base64Data = this.image.src.replace(

0 commit comments

Comments
 (0)