My heritage colorize6/21/2023 ![]() Now copy all the downloaded files into /temp.When it runs out of images, the script will elegantly crash with an UnhandledPromiseRejectionWarning exception.It happens after every 10-15 pictures for me, a little bit annoying, but hey, feel free fixing it if it really bothers you. The script will notice it and resume running. Don't stop the script, just go to the Chrome window and click on the Download photo link which will display the dropdown with the download link. You'll see the message Attempting to download. There's a bug I didn't bother to fix! (Actually more than one, but hey.) Sometimes the process gets stuck because Selenium can't find the Download colorized image button.It will now upload every image file from /temp and download the colorized result.The script will resume execution when it detects that you're logged in. It'll likely be stopped by re:captcha and you'll have to get through it manually. Selenium will open Chrome, navigate to and log in. Edit 02.js and add your username and password used on.This is the default setting, but you may have changed it. Configure Chrome to save downloaded files automatically.If you wish to use it with Firefox or some other browser, you'll have to modify it. The next script will use Selenium to automate Google Chrome.The border is needed because MyHeritage puts a watermark to the bottom of colorized pictures which we won't need. It will add a 250px wide white border to each of the images and move them into /temp. Put your black and white photos into the /picdir directory in JPG, PNG or GIF format, and run node 01 from the project root.Run node 01 to create working directories.Register yourself on with email address and password (not a Google or Facebook account!), then sign up for the two-week trial.You'll need Node.js and Selenium Webdriver installed.MHPCAAS takes the sweat out of the process. You may also hate the watermark which MyHeritage puts on every picture. It's unlikely you can finish more than a dozen or so during the short trial. ![]() Uploading them one by one by hand is tedious and time-consuming. You probably have hundreds of old family photos.
0 Comments
Leave a Reply. |