jpg to epub conversion is most likely doable, but it's not something that would be often done. What such conversion represents is essentially using pictures as pages in the ebook, which means that the resulting file would be huge compared to text based source. Perhaps using OCR software and capture the text from the images would be better course of action.
Open JPG file Open EPUB fileA converter for manga comic books
A dedicated conversion tool for PDF documents