If you haven’t closed the app you’re using to resize the image, you can often undo the last action by pressing Command + Z. Otherwise, it’s a good practice to keep a backup of the original image before making changes.