twitter-banner icon indicating copy to clipboard operation
twitter-banner copied to clipboard

'Error: Input file is missing'

Open DashBarkHuss opened this issue 2 years ago • 1 comments

I got this error: 'Error: Input file is missing'

At:

await sharp('twitter-banner.png')
          .composite(image_data)
          .toFile('new-twitter-banner.png');

And imageData is: '[{"input":"rforjoe.png","top":380,"left":1050}]'

DashBarkHuss avatar Jan 25 '23 05:01 DashBarkHuss

I updated sharp and got a clearer error: 'Error: Input file is missing: twitter-banner.png'

I originally thought it meant the composite image was missing because it didn't specify. But now I see I just need to create a twitter-banner.png.

DashBarkHuss avatar Jan 25 '23 06:01 DashBarkHuss