Closed jefferycao1 closed 7 years ago
find way to callback the function to save images in the while loop so it doesn't move on without synchronously finishing the save image function.
Another solution is to make the image first, then if (err) it will callback to the save image function to find that image, then restart the make image part.
find way to callback the function to save images in the while loop so it doesn't move on without synchronously finishing the save image function.