posthog.com
posthog.com copied to clipboard
Correctly size images on /apps page
We're loading some very large graphics on /apps that aren't getting resized correctly.
Ideally we'd use something like StaticImage to downscale them to icon size.
I am not clear what you want to achieve here because the images are already re-sized with CSS (tailwind) using w-12 h-12. Checking with dev-tools confirms this.
Also, StaticImage or GatsbyImage from gatsby-plugin-image doesn't handle SVGs. Since some of the images coming from the CDN are SVGs, this will throw errors and not work.
the img tag is still the best to use here.