KamoCRM

Logos ask for a pre-sized variant, and fall back to the original

Featurekamo-apps
Shipped
September 24, 2026 at 10:49 PM UTC
Author
Kamo
Commit
59fa78c

An organization's logo is drawn 30-180px tall here but downloaded whole: crm's logo-full.png is 2.2 MB, its .svg stand-in 2.95 MB. ThemeLogo now asks for img/sized/<stem>/h<rung>.webp first, the rung sized for twice the tallest it can be drawn (read off its own height/maxHeight/width props: the rail 128, the top bar 64, the received header 96, the portal sign-in 384, the portal shell 64). A missing variant falls back to the original exactly as it was built before, and only then walks the extension list. The overlay mask paints with a variant only after the hidden image has loaded it. The loan officer's photo asks for the 150px _md cut instead of the full upload; its error falls back to the original, then to initials.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing