Try my comiclrf program that will do this automatically
https://www.mobileread.com/forums/showthread.php?t=11123
If you don't have CBZ or CBR files you can simply created them by putting your images in a ZIP file and rename the extension from ZIP to CBZ, then run it through my comiclrf converter. Actually the images don't have to be just comics they could be anything if you want.