glymr: (Default)
glymr ([personal profile] glymr) wrote in [community profile] style_system2018-12-10 12:56 pm

Header image size?

Hello!  I would like to hold a contest to have people create a header image for this community: [community profile] detroitbecomehuman.  However, I can't seem to find any resources to tell people what a standard header image size should be, ie "no wider than x number of pixels", "no taller than x number of pixels", or anything about whether they will degrade gracefully on mobile, etc.  Does anyone have any tips or links that might help?

Thank you very much!

momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)

[personal profile] momijizukamori 2018-12-11 01:47 am (UTC)(link)
So, there's a lot of flexibility to be had, honestly, and it depends on how you want things to look when it's done! Our default set-up puts the header image as the background of the header container, and lets you pick how tall you want the container to be - the width is the width of the entire content area, unless you use CSS to modify it. On a smaller screen (including mobile), the width just shrinks to match the width of the content area. And then there's CSS you can add to modify how it behaves - whether the image repeats if it's not big enough for the whole area, or stretches to fill it, and whether it shrinks as the page gets narrower, or just gets cut off instead.

ALL THAT SAID. It's generally easier to make a big image look good smaller than to go the other way, so I'd go for a width of 2000px and probably not more than 400px tall, which will cover all the big screens out there (this is what it looks like on my 1920 x 1080 laptop screen, for example - I can give you some CSS to fix the header text positioning, heh) and then just make some tweaks to have it look better on a smaller screen. Or, you could have a different version for smaller screens, because CSS is exciting that way!
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)

[personal profile] momijizukamori 2018-12-11 02:26 am (UTC)(link)

Ratio is somewhat important, though you you can do a lot of the tweaking with that with CSS - mostly you just don't want an image that's too tall, because it'll take up so much of the vertical screen space. FWIW, the largest of those screenshots is only 635 kB baseline, and only 287 kB after I ran some compression on it without much quality loss. But if you're concerned about mobile use, it may be worth it to have a second header that's more optimized for mobile and probably more in the 700px x 150px range