4 ms·
So, what kind of change will the git detect when an image is crushed (when there is no visual difference between original and curshed) ?
by sunilkumarc 12y ago
So, what kind of change will the git detect when an image is crushed (when there is no visual difference between original and curshed) ?
- peterwiese 12y agoThe same as if there were a visual difference between them: none. GitHub doesn't detect anything besides changes of the file hash. But that suffices for it do display the two images in the new image viewer.
- michaelmior 12y agoAs far as git is concerned, the PNG file is just a bag of bits. It will record the changes in the IDAT chunks just as with changes in any other files. The images would appear identical on GitHub because they haven't changed visually.
- BrandonSmith 12y agopngcrush optimizes the file losslessly. Looks the same, smaller file size. Since the file does change, git will see a difference (doesn't care what it looks like). To a user, viewing the diff through this Github feature, it would look like nothing changed between commits.