Microsoft Technologies based on the .NET software framework. Miscellaneous topics that do not fit into specific categories.
Hi @Birbeck, Julie ,
Thanks for reaching out.
For a full-width hero image that contains text as part of the artwork, I would recommend WebP as a good starting format. It offers a good balance between image quality and file size. PNG is another option if you need to preserve sharp text and graphics, while SVG may be suitable if the artwork is vector-based.
For the image dimensions, I would suggest the following as a starting point:
-
Desktop:1920 × 640 pixels for a wide hero banner. A larger version, such as 2560 × 853 pixels, may be useful for larger or higher-resolution displays. -
Mobile:1080 × 1350 pixels for a taller, mobile-friendly version.
These are example dimensions rather than fixed requirements. The actual size depends on how the hero section is designed on your website.
Since the wording needs to remain inside the artwork, I would recommend preparing a separate mobile version if possible. Simply shrinking the desktop image could make the text difficult to read on smaller screens.
I would also suggest keeping the wording away from the edges of the artwork, as parts of the image may be cropped depending on the screen size. JPEG compression can also introduce visible artifacts around text, so I would generally prefer WebP or PNG for this type of artwork.
One thing worth clarifying is that .NET 8 doesn't impose specific image dimensions for hero banners. How the image appears is determined by the website's layout and responsive design.
You can refer to the MDN image format guide and responsive images documentation for additional guidance.
Disclaimer: The MDN documentation is maintained by Mozilla and provides general web development guidance rather than Microsoft-specific requirements.
Before finalizing the artwork, I would suggest checking how it looks on both desktop and mobile screens, particularly whether the wording remains clear and isn't cropped. If the image contains important wording, make sure that information is also available as accessible text.
I hope this helps! If you found my response helpful or informative, I would greatly appreciate it if you could kindly follow this guidance. Thank you.