Create PDF from website using MS Edge

"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --headless --print-to-pdf=c:\temp\google.pdf https://google.com/

This is crashing on my computer, but it’s still generating the PDF, so I’m not sure what the deal is there.

Shrink image with ImageMagick

@ECHO OFF
SETLOCAL
FOR /R %%G IN (*.jpg) DO CALL :process "%%G"
GOTO :end

:process
    SET _inname=%1
    SET _outname=%_inname:~0,-5%_1024.jpg"

    identify -format %%w %_inname% >width.txt
    identify -format %%h %_inname% >height.txt

    set /p width=<width.txt
    set /p height=<height.txt
    DEL width.txt
    DEL height.txt
    ECHO Processing %_inname% ...

    if %width% gtr %height% call :landscape %_inname% %_outname%
    if %height% geq %width% call :portrait %_inname% %_outname%
    rem convert %_inname% %_inname%
    EXIT /B

:landscape
    convert %_inname% -resize 1024x -quality 90 %_outname%
    EXIT /B

:portrait
    convert %_inname% -resize x1024 -quality 90 %_outname%
    EXIT /B

:end

Add timestamp to photo using ImageMagick

In a Windows batch file:

    rem dptnt.com/2009/04/how-to-add-date-time-stamp-to-jpeg-photos-using-free-software/

    @ECHO OFF
    SETLOCAL
    FOR /R %%G IN (*.jpg) DO CALL :process "%%G"
    GOTO :end

    :process
     SET _inname=%1
     identify -format %%w %_inname% >dttmpfile
     set /p width=<dttmpfile
     Set /a pointsize=%width%/50
    rem  echo ZZ >> dttempfile
     DEL dttmpfile
     ECHO Processing %_inname% ...
     convert %_inname% -gravity SouthEast -font Arial -pointsize %pointsize% -fill orange -annotate +%pointsize%+%pointsize% "%%[exif:DateTimeOriginal]" %_inname%
     EXIT /B
    :end