One rectangle. Two honest outcomes.
Our downloadable test image is a 120 × 60 JPEG with a green square on a white background. Select only 64 pixels in the converter above. With transparent padding, the picture occupies a centered 64 × 32 strip. The empty area above and below is transparent; the white pixels inside that strip remain opaque. With stretch, the source fills 64 × 64 and the green square becomes taller. Neither option crops the left or right edge.
Download the exact rectangular JPG · Download the square control JPG
The square control separates a file-format question from a shape question: a square source needs no added border in either mode. You can convert both files together and compare their individual downloads. These are original generated test images, not customer artwork.