Assign your preferred photo app to .jpg, .png, .gif and other image formats — Windows Photos, IrfanView, or any app you prefer.
Assign .jpg, .png, .gif and other image formats to any photo app you prefer — Windows Photos, IrfanView, or any third-party viewer via Settings → Default apps.