Custom property with Medialibrary

I'm trying to work out how to store a custom property with uploaded images to say whether it is landscape, portrait, or square. I was planning on dividing the width by the height and if the result < 0.75 = landscape, result > 1.25 = portrait, otherwise square. But how can I make those calculation on the uploaded image before it is stored in the database?
1 Reply
bardolf_6969
bardolf_6969OP2mo ago
Or if I can't calculate the value is there a way I can add a checkbox to the uploaded images so the use can select the custom property value?
Want results from more Discord servers?
Add your server