Error auto generating pad image: Invalid argument to native writeImage
Description
The "Invalid argument to native writeImage" error is thrown when trying to generate a padded image where the source image is using a color space other than RGB and where the OpenJDK version is newer than 1.8.0_121 (it works fine on 8u121, it fails on versions after 8u121). The workaround, setting the color space to "rgb" in the call to newImage(), should avoid that issue.
The "Invalid argument to native writeImage" error is thrown when trying to generate a padded image where the source image is using a color space other than RGB and where the OpenJDK version is newer than 1.8.0_121 (it works fine on 8u121, it fails on versions after 8u121). The workaround, setting the color space to "rgb" in the call to newImage(), should avoid that issue.