If you are using wide angle lenses on a DSLR the camera often does a geometry correction as well as corrections for chromatic aberration and vignetting before it saves the JP|G image. This does not apply to RAW images.
Of course for this to work the camera has to have a record of the lens characteristics in it's database. If you use new lenses you need to ensure your camera software is updated so it has the appropriate data.
If you save RAW images this correction is done in the post processing RAW 'development' software and this can be turned on & off as required. As a above this means you need to keep your Digital Processing Software updated.
If you use third party lenses it is not clear how this works - I think they may use a 'nearest guess' model.
This applies to Canon DSLRs but i think something similar applies to other makes.
As a result of this the optical distortion in the image can be very different depending on the lens used and your own processing pipeline before submitting images.
As an aside the whole thing about the projection used for images seems to be a minefield - some projections are only valid within the image boundaries and can have large errors and big distortions outside the image boundaries.
John Murrell