You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constsharp=require('sharp');constfs=require('fs/promises');asyncfunctionstart(){constsrc=awaitfs.readFile('./src/0023ac17-e520-4ae4-9308-500608d5fad8.png');// apng fileconstsample=awaitsharp(src,{animated: true}).resize({width: 320,height: 320,fit: 'fill',fastShrinkOnLoad: false}).toFile('./dist/0023ac17-e520-4ae4-9308-500608d5fad8.png');// only resized first frame, like thumbnail...}start();
What I expected is that the apng file is saved with only the size changed.
However, only the first frame was saved with the changed size. How do I resize and save all frames?
The text was updated successfully, but these errors were encountered:
this is my codes.
What I expected is that the apng file is saved with only the size changed.
However, only the first frame was saved with the changed size. How do I resize and save all frames?
The text was updated successfully, but these errors were encountered: