You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Often in designs we have to treat images differently if they are higher than wide. Code like this bloats templates and needs more cognitive power to understand:
if($img->height > $img->width) {
...
}
It would be great to have an "isPortrait" property:
if($img->isPortrait) {
...
}
The text was updated successfully, but these errors were encountered:
Often in designs we have to treat images differently if they are higher than wide. Code like this bloats templates and needs more cognitive power to understand:
It would be great to have an "isPortrait" property:
The text was updated successfully, but these errors were encountered: