You may not have lost any resolution ... or you may be understanding the word "resolution" wrong
Resolution is not file size, which are the numbers you are quoting. So the 1.3MB changing to 542KB does not indicate a change in resolution. If you export the photo and leave the box that says "Resize to Fit" unchecked, then you lose no resolution at all, even though the file size has changed.