Breaking Image Distortion Dilemma: Dev or Prod

System Information
  • Strapi Version: 4.11.7
  • Operating System: Macos 13+
  • Database: postgres
  • Node Version: v18.16.
  • NPM Version: 9.5.1
  • Yarn Version:

If I upload images on dev, they will be distorted in production, and if I upload them in production, they will be distorted on dev. How can I fix this?