Created
November 1, 2020 10:26
-
-
Save earlgreyxxx/bb96be5fa3f93b96ff2c2da1f7815812 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ node screenshot.js 'http://localhost/hogehoge/' | convert PNG:- -resize 600x screenshot.jpg | |
(node:14444) UnhandledPromiseRejectionWarning: Error: ESPIPE: invalid seek, write | |
at writeSync (fs.js:568:3) | |
at takeScreenshot.then (/mnt/c/Users/ddk5010/Desktop/temp/screenshot.js:75:39) | |
at process._tickCallback (internal/process/next_tick.js:68:7) | |
(node:14444) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function witho | |
ut a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) | |
(node:14444) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will te | |
rminate the Node.js process with a non-zero exit code. | |
convert: improper image header `/tmp/magick-14445jzJc3SLocfrG' @ error/png.c/ReadPNGImage/3940. | |
convert: no images defined `screenshot.jpg' @ error/convert.c/ConvertImageCommand/3210. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment