Fix Error: Refusing to work on images with alpha channel Using img2pdf – img2pdf Tutorial

When you are using python img2pdf to convert an image to pdf file, this error: Refusing to work on images with alpha channel may occur. In this tutorial, we will introduce how to fix this error and convert an image to pdf successfully.