OSError: cannot write mode RGBA as JPEG

I tried it before (and I tried it again), I got this error:

ValueError: conversion from RGB to JPEG not supported at /usr/local/lib/python3.7/site-packages/PIL/Image.py, line 1000 called from [ServerModule1, line 13](javascript:void(0)) called from [Form1, line 14](javascript:void(0))

I search different websites, some of them I didn’t understand their solution and others I got different errors :slightly_frowning_face: