Jump to content

Pageimage::size() with copping set to false still crops in 3.0.178


Recommended Posts

Posted

I need the image to fit inside an area without any cropping applies. Much like applying the CSS property object-fit: contain. 

I would assume setting cropping to false will stop any cropping being applied but in fact it doesn't do anything. I see when I change other values it will get a new file name of 300x300e for example if cropping is set to east. If it's set to false, it has no effect on the file name or image.

Posted

I haven't controlled this explicitly within the last PW versions, but it has or should work as expected.

Have you forcedNew when creating the contain-variation?

Do you know PIA? It adds own properties (contain, crop, cover) as shortcuts to the pageimages.

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...