TwicPics / wordpress-plugin

TwicPics Wordpress Plugin
GNU General Public License v2.0
16 stars 0 forks source link

Problem with image block and circle mask applied #3

Closed eloisemartin closed 4 years ago

eloisemartin commented 4 years ago

When using an image block with the "circle mask" style applied, the browser is loading the image in its original aspect-ratio (height not handled: param "max=580"), meaning useless extra pixels are loaded.

Example: bloc_image_with_circle_mask

Would be nice to have an 1:1 aspect-ratio applied on the image here.

nicolascassette commented 4 years ago

WordPress don't crop the image to fit in a 1:1 aspect-ratio It it the WordPress behavior and a gutenberg functionnality

@florentb @jaubourg , the question is : Do we change the WordPress behavior ? Frontend be will be different from backend in term of spacing

jaubourg commented 4 years ago

I think we should try and be as iso-functional as possible with WordPress' default behavior.