This PR replaces Pillow library with PowerShell version 5.1 compatible scripts for Windows 10, which pre-installed from Windows 10 version 1607. This PR uses some features only supported by PowerShell version 5.1. From PowerShell version 6, the clipboard only works with text so this add-on won't work on machines that have no PowerShell 5.1.
This approach has 2 advantages:
Reduce the size of the add-on and remove the dependency to the Pillow third-party package which is notorious for its frequent security vulnerabilities.
Several tests show that the PowerShell method handle better (still bad) transparent images when copying from Blender #12 and has a very slow processing speed.
I have also migrated the code to separate packages based on its support platform for ease of future maintenance.
This PR replaces Pillow library with PowerShell version 5.1 compatible scripts for Windows 10, which pre-installed from Windows 10 version 1607. This PR uses some features only supported by PowerShell version 5.1. From PowerShell version 6, the clipboard only works with text so this add-on won't work on machines that have no PowerShell 5.1.
This approach has 2 advantages:
I have also migrated the code to separate packages based on its support platform for ease of future maintenance.