The only way how to make JPG image out of ASCII art file is to print screen it and capture using graphics editor. This is quite often done for so called ASCII arts, but it is likely that nowadays you can find programs designed exactly for this purpose.
Updated: November 1, 2021