Is same result if I print an jpg image and this same image in another format? | Sololearn: Learn to code for FREE!

0

Is same result if I print an jpg image and this same image in another format?

I would like to know if case I have an image in two different formats, open in binary read mode and print them, I would have the same result. Having or don't having, why? If there is difference, would explain me it's in binary analisys?

2/3/2019 10:46:30 PM

Gabriel Felix dos Santos

2 Answers

New Answer

+2

No they will be different! You can even tell without any code because the two files will probably have different sizes. JPG for example uses lossy compression to make files smaller while sacrificing image quality, while PNG uses lossless compression. Those differences will of course also show if you look at the file in binary. (Try downloading a hex editor and load the files into there. You will see the differences!)

0

Thank you so much ✌✌