Azure static web app - some images not displaying

Hayes Jupe 21 Reputation points
2023-02-17T11:17:03.0566667+00:00

Hi all, completely new to Azure static web apps - so sorry if this is a silly question.

Setup a new Static web app with a source of github.

Uploaded a simple html/css website to github.

Site is working all fine when opened locally (as you would expect)

When uploaded - most of the site displays correctly, with the exception of the background images and one image rotation part. The html paths look correct, the images are a mix of png and jpg (which other jpg's and png's show up on the site) - and have confirmed they are definitely uploaded into the github repository and are in the correct folder.

Im not quite sure where to start troubleshooting this...

examples of the working images are:

<img class="logo" src="img/logo.png" alt="logo">
<img class="logo-alt" src="img/logo-alt.png" alt="logo">

examples of the non-working images are:

<div class="bg-img" style="background-image: url('img/background1.jpg');">						
<img class="img-responsive" src="img/about1.png" alt="">
<img class="img-responsive" src="img/about2.png" alt="">
<img class="img-responsive" src="img/about3.png" alt="">
<img class="img-responsive" src="img/about4.png" alt="">
<img class="img-responsive" src="img/about5.png" alt="">

The site can be viewed at the non-aliased url of https://blue-stone-01d4a8410.2.azurestaticapps.net/ currently if that helps.

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,173 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Hayes Jupe 21 Reputation points
    2023-02-18T05:51:44.2633333+00:00

    found it - it was case sensitivity.... the gfx in question had a capital at the start... where-as the html referred to them as all lowercase.

    0 comments No comments

  2. brtrach-MSFT 17,731 Reputation points Microsoft Employee Moderator
    2023-02-22T05:29:35.8566667+00:00

    @Hayes Jupe We are happy to hear you were able to resolve the issue. Thank you for sharing the answer with the community.

    If you require any assistance in the future, please reach out to us on here.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.