JPEG is a highly compatible image format, but it's also bad for efficiency. It's better to go with smaller file sizes now and convert later.
A GitHub project has enabled encoding files as lossless video for YouTube storage, gaining 367 stars despite Terms of Service violations and account termination risk.