When doing product photography, how can I fix the perspective distortion caused by my lens in Photoshop? For example, when photographing books. The first drawing is the result I get with my lens, and the second is what I would like to make.
Photoshop's Edit > Transform > Distort can give a partial result:
This is also rotated a little. Without having 3D information it's not possible to achieve arbitary projection changes
An exactly rectangular object can in theory be fixed more perfectly by distorting the visible sides one by one. The result will be mediocore at best because the seam areas in practice are more or less rounded in the object.