Some species of butterflies are known for sexual dimorphism. The different appearance of male and female individuals are most commonly visible on the adult butterflies. However, since the chrysalis of some butterflies turns transparent before the adult hatches, the differences can become visible already.
During winter 2015/2016 I kept chrysalises from the Large White (Pieris brassicae) and the Orange Tip (Anthocharis cardamines). Both species have sexual dimorphism, especially the Orange Tip where the orange color is only present on the male’s wings. In case of the Large White the black dots are only present on the female’s wings.
I managed to get some photos from chrysalises of both sexes prior to hatching. Here’s how easy the gender can be identified (once the pupa turns transparent). The photos of the adult Orange Tips are from the wild but added as a further reference to show the difference between female and male.