Is same result if I print an jpg image and this same image in another format? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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?

3rd Feb 2019, 10:46 PM
Gabriel Felix dos Santos
Gabriel Felix dos Santos - avatar
2 Answers
+ 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!)
4th Feb 2019, 12:49 AM
Schindlabua
Schindlabua - avatar
0
Thank you so much ✌✌
4th Feb 2019, 9:02 AM
Gabriel Felix dos Santos
Gabriel Felix dos Santos - avatar