• Login
Community
  • Login

Images no longer showing in any browser after View Current File

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
8 Posts 4 Posters 786 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    Sleepless naShadow
    last edited by Nov 27, 2022, 4:24 AM

    This post is deleted!
    E S 2 Replies Last reply Nov 27, 2022, 9:05 AM Reply Quote 0
    • E
      Ekopalypse @Sleepless naShadow
      last edited by Nov 27, 2022, 9:05 AM

      @Sleepless-naShadow

      It is hard to believe that Notepad++ is the culprit in such situations.
      Npp simply saves the buffer to a file and, in your case, launches a program that reads that file. What happens if you open this file in the browser itself? Does it work?
      If it works, take a screenshot of the browser with the working and nonworking versions, with the full URL clearly visible.

      1 Reply Last reply Reply Quote 2
      • S
        Sleepless naShadow @Sleepless naShadow
        last edited by Sleepless naShadow Nov 27, 2022, 10:50 PM Nov 27, 2022, 10:46 PM

        This post is deleted!
        T P 2 Replies Last reply Nov 27, 2022, 10:51 PM Reply Quote 0
        • T
          Terry R @Sleepless naShadow
          last edited by Nov 27, 2022, 10:51 PM

          @Sleepless-naShadow said in Images no longer showing in any browser after View Current File:

          If I can rule out Notepad++ that’s a win. I very much appreciate your time and thoughts. Thank you

          Often when Notepad++ users complain of a problem like yours it is because the file is saved as a TXT file. Since Windows recognises that file extension it (by default) doesn’t show it. So I’d check there first. If you see some files as xyz.html and others in the same folder without extensions then I’d say TXT is the problem. Under Windows Explorer look at the column called “Type”.

          Otherwise I am aware that webpages can sometimes be picky about the case of the folder names. So \dogs\ can sometimes be classed as different to \DOGS.

          That’s about all I can say.

          Terry

          S 1 Reply Last reply Nov 27, 2022, 10:55 PM Reply Quote 0
          • S
            Sleepless naShadow @Terry R
            last edited by Sleepless naShadow Nov 27, 2022, 10:57 PM Nov 27, 2022, 10:55 PM

            This post is deleted!
            T 1 Reply Last reply Nov 27, 2022, 10:58 PM Reply Quote 0
            • T
              Terry R @Sleepless naShadow
              last edited by Terry R Nov 27, 2022, 11:03 PM Nov 27, 2022, 10:58 PM

              @Sleepless-naShadow said in Images no longer showing in any browser after View Current File:

              Folder and file names are as they should be and have worked in the browsers for many years

              If that means you are discounting my suggestion purely because you assume what was happening is still happening then don’t. If you can’t identify other reasons, then however improbable it is, my ideas might (I repeat might) just be the answer. Check everything!

              Terry

              PS another idea is to create a small html file manually and include an image reference. Then load that and verify if the systems works as expected. Oh sorry, just edited to include this and see @PETER-JONES got there first.

              1 Reply Last reply Reply Quote 2
              • P
                PeterJones @Sleepless naShadow
                last edited by PeterJones Nov 27, 2022, 11:11 PM Nov 27, 2022, 11:02 PM

                @Sleepless-naShadow said in Images no longer showing in any browser after View Current File:

                If I can rule out Notepad++ that’s a win

                1. Create an HTML c:\path\to\ms-home\index.html file with MS notepad.exe, which just has a single embedded image ./images/abc.jpg (putting that image in the appropriate location, c:\path\to\ms-home\images\abc.jpg)
                2. Open that file with browser X, and prove to yourself that it it can see the image properly on your local machine
                3. Create an HTML c:\path\to\npp-home\index.html with Notepad++.exe, which just has a single embedded image ./images/abc.jpg (putting that image in the appropriate location, c:\path\to\npp-home\images\abc.jpg)
                4. Open that file with browser X (using either View Current File or the browser’s local-file-open)
                5. Notice that if the HTML is equivalent, and the relative paths are equivalent, then a file edited with Notepad++ behaves identically to a file edited with MS notepad.exe, thus ruling out Notepad++ as the culprit.
                6. If “5” was true, find an HTML forum to help you with debugging your faulty HTML, or a forum that helps with using a browser correctly for viewing of local files, because here is not the right place; if “5” was false (I am quite certain it won’t be), include screenshots and pasting the raw HTML (using the </> button after pasting to make the HTML source text appear in a text box) proving it, so we can show you where things are different, again proving that the culprit is not Notepad++. Because it’s not.

                So far, everything you have described (despite your assumptions) says that you have an HTML problem. Nothing specific to Notepad++ should change that HTML or the way that a browser interprets that HTML.


                PS:
                41acc8c6-ea69-4e62-b66b-f16d81fec54e-image.png

                d8002969-cad9-489f-943c-eb12a569b220-image.png

                <p>text before</p>
                <img src="./images/abc.jpg">
                <p>text after</p>
                

                dd29bdb1-3389-4816-8ac3-d36f0dcdc256-image.png

                <p>text</p>
                <img src="./images/abc.jpg">
                <p>after</p>
                
                S 1 Reply Last reply Nov 27, 2022, 11:15 PM Reply Quote 2
                • S
                  Sleepless naShadow @PeterJones
                  last edited by Nov 27, 2022, 11:15 PM

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  5 out of 8
                  • First post
                    5/8
                    Last post
                  The Community of users of the Notepad++ text editor.
                  Powered by NodeBB | Contributors