Images

Images play a crucial role on websites by enhancing user experience, conveying information quickly, and supporting branding efforts. Here are the primary reasons why images are used on websites:

  • Visual Appeal: Images make websites more visually appealing and engaging, helping to capture and hold users' attention.
  • Communication: They can convey complex information quickly and efficiently, sometimes more effectively than text alone. Infographics, charts, and diagrams are good examples.
  • Emotional Connection: Images can evoke emotions and create a connection with the audience, enhancing the overall user experience.
  • Branding: High-quality, relevant images help reinforce a brand’s identity and message.
  • SEO: Properly optimized images can improve a site's search engine rankings and drive more traffic.
  • Usability: Images can aid navigation (e.g., icons) and improve the overall usability of a website.
  • Accessibility: Visual content can make a website more accessible to users with certain disabilities when used alongside appropriate alt text.

In Sitefinity

Sitefinity makes it easy to manage and use images effectively on your website, enhancing both the user experience and site performance. Below learn about best practices and all available image options within Sitefinity.

The Basics

Best Practices

By following these best practices, you can effectively leverage images to enhance the functionality, aesthetics, and user experience of your website:

  • Relevance & Contextual Placement: Use images that are relevant and placed contextually within the content to enhance readability and ensure they complement the purpose of the page. They should support the text and not distract from it.
  • Quality & Consistency: Ensure that images maintain a consistent style, are high-quality and professionally done, and create a cohesive visual experience across the website.
  • Optimization: Optimize images for web use to ensure fast loading times. This includes using the right file formats (e.g., JPEG for photos, PNG for graphics with transparency) and compressing files without sacrificing too much quality. Learn How to Crop and Resize Images.
  • Responsive Design: Test the responsiveness of images to ensure they work at or adjust to different screen sizes and resolutions.
  • Alt Text: Provide descriptive alt text for all images to improve accessibility and help search engines understand the content of the images.
  • Text & Contrast: Avoid using text over an image when the text is saved to the image file, instead use CSS to overlay live/html text over the image, ensuring the contrast ratio for the colors in the image and the color of the text meet AAA Accessibility compliance.
  • File Naming: Use descriptive file names that include relevant keywords. This can aid in SEO and make files easier to manage.
  • Licensing: Ensure you have the right to use any images on your site, whether through ownership, licensing, or public domain sources. Do not take images from other sites or google searches. Avoid copyright infringement. Learn more about UTMB’s Image Library, Razuna.

How to Optimize Images

Sitefinity Modules

Image Libraries

The Images page lets you create and maintain libraries for the images that you upload. There, you see the number of images in each library, the date of the last uploaded image, and where those images are stored.

Image in a Content Block

Images can be added to content blocks to allow for text wrapping or to take up the desired width by using columns, the image's natural width or changing the width="000" property in the HTML.

Sample Content Block

CSS Classes (set on image): photo-left

My PhotoLorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis ligula lorem, consequat eget, tristique nec, auctor quis, purus. Vivamus ut sem. Fusce aliquam nunc vitae purus. Aenean viverra malesuada libero. Fusce ac quam. Donec neque.

Image Widget

Image: Full Size (w/ Hyperlink)

Hyperlink to full-size image added using the image widget editor.
slide-01

Image Galleries within Sitefinity allow users to display images in a variety of gallery formats.

Learn more about Image Galleries 

Customizations

Image Photo Classes

These photo class options can be directly applied to images within the HTML content when images are inserted into Sitefinity Content Blocks or in any Module using the WYSIWYG editor, they may also work when applied to the More Options area on the widgets. 

Border & Spacing

CSS Classes (set on image): photo

My PhotoLorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis ligula lorem, consequat eget, tristique nec, auctor quis, purus. Vivamus ut sem. Fusce aliquam nunc vitae purus. Aenean viverra malesuada libero. Fusce ac quam. Donec neque.

Border & Spacing w/Caption

CSS Classes (set on image): photo-caption

My Photo
My caption
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis ligula lorem, consequat eget, tristique nec, auctor quis, purus. Vivamus ut sem. Fusce aliquam nunc vitae purus. Aenean viverra malesuada libero. Fusce ac quam. Donec neque.

Border & Spacing w/Left Align

CSS Classes (set on image): photo-left

My PhotoLorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis ligula lorem, consequat eget, tristique nec, auctor quis, purus. Vivamus ut sem. Fusce aliquam nunc vitae purus. Aenean viverra malesuada libero. Fusce ac quam. Donec neque.

Border & Spacing w/Left Align & Caption

CSS Classes (set on image): photo-left-caption

My Photo
My caption
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis ligula lorem, consequat eget, tristique nec, auctor quis, purus. Vivamus ut sem. Fusce aliquam nunc vitae purus. Aenean viverra malesuada libero. Fusce ac quam. Donec neque.

Border & Spacing w/Right Align

CSS Classes (set on image): photo-right

My PhotoLorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis ligula lorem, consequat eget, tristique nec, auctor quis, purus. Vivamus ut sem. Fusce aliquam nunc vitae purus. Aenean viverra malesuada libero. Fusce ac quam. Donec neque.

Border & Spacing w/Right Align & Caption

CSS Classes (set on image): photo-right-caption

My Photo
My caption
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis ligula lorem, consequat eget, tristique nec, auctor quis, purus. Vivamus ut sem. Fusce aliquam nunc vitae purus. Aenean viverra malesuada libero. Fusce ac quam. Donec neque.

Size & Shape Styles

CSS Classes (set on image): (1)img-thumbnail (2)img-rounded (3)img-circle (4)img-pill

slide-04slide-04slide-04slide-04