Pretty straight forward actually, when an image has transparent pixels (such as a deleted border, or a portion of the picture removed) it would crop it down to the first pixel it finds. This way you won't have to worry about losing any part of the image, though if the transparent part is uneven you would have some transparency left over (which you could then fill in later).