Clipping or chamfering corners of image to see background
问题 I have a design where corners of images are cut in a 45° angle. For the time being, it’s achieved by masking it with an absolutely positioned span, which has a transparent background image set with the corner “cut” in opaque white. This is far from ideal, first because of the additional span, second because the background of the image is not homogeneous white. I intend to generate transparent PNGs later, but it would be more elegant and – considering the images are photographs – less bandwith