Unyson icon indicating copy to clipboard operation
Unyson copied to clipboard

PNG image preview

Open DimiBaitanciuc opened this issue 11 years ago • 3 comments

We have this case in the theme we are working on:

We have this png image as a bg in a column - http://joxi.ru/12Mx7ygClK8WmJ and because it's white and also has some opacity set, in the image upload preview I see this: http://joxi.ru/82Q4pJjTwd8Pmd

We'll need to find a solution to display a gray bg there or something for png images. Look how WordPress handles this: http://joxi.ru/v29ydbRiZYjy2G

DimiBaitanciuc avatar Feb 03 '15 11:02 DimiBaitanciuc

@DimiBaitanciuc maybe something like this?

ss

.fw-option-type-upload.images-only .thumb img,
.fw-option-type-multi-upload.images-only .thumb img {
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAL0lEQVQ4T2Pcv3//fwY8wMHBAZ80A+OoAcMiDP4DAb6IPnDgAP50MGoAA+PQDwMAkx5R0SMOKDEAAAAASUVORK5CYIIA');
}

ghost avatar Feb 03 '15 12:02 ghost

This will work, yes.

DimiBaitanciuc avatar Feb 10 '15 10:02 DimiBaitanciuc

Done p

Done

ghost avatar Feb 10 '15 10:02 ghost