Bruno
Bruno

Reputation: 65

Git compressing jpeg's - does this cause quality loss?

When I git push, it compresses all my commits first. Some of the files are jpeg's. I heard somewhere that jpeg's aren't lossless compression, so does this mean that the quality lowers every time I push an image?

Upvotes: 1

Views: 471

Answers (2)

Francois Marot
Francois Marot

Reputation: 1195

What makes you think that git compresses your jpeg's ? In fact don't worry: Git will not lower the quality of your photo. Git is designed to securely store whatever files you put in it so the quality will not decrease.

You may talk about git compressing your file because internally git will use compression to be faster but this is none of your business and it is lossless (so your lossy jpeg will still be lossy, but not more ;).

Upvotes: 2

Norbert
Norbert

Reputation: 6084

GIT uses a lossless compression. Else you would loose some of your code at every submit.

Also the compression GIT uses is completely independent of the compression of any already compressed file. See it as a box in a box: Why would the inner box be affected by the extra box placed around it?

Upvotes: 1

Related Questions