How to convert PSD file to HTML files in the php/JQuery scripts

One of my client wants to integrate functionality in the website that users upload the PSD file. After uploading PSD files, it will automatically convert and store in HTML files in the website. Is it possible with PHP/WordPress/Jquery script?

Example: https://psdtoweb.de/ https://psd2htmlconverter.com/

In the above example, It converts PSD to HTML file and We can download HTML file with CSS.