HI,
All of a sudden today png files of my web application are not showing up in the browser.
I am using Visual Studio 2008. The files are not even opening in the vs editor.
When i double click on the icons in the vs editor it is saying
"Cannot load file. Unknown bitmap format." But so many days those were there and was working
fine. So all of a sudden what happens them to not work?
Anybody has any suggestion?
Thanks & Regard,
Subrat.
It might be that they are not actually .PNG format under the hood, but were merely named that way. Some browsers will work around this and some will not. Try renaming them to .jpg, .bmp, .gif, etc., and for each test, change your <img> and see if it works in every browser. When it does, you've found the right format.
An alternative is to open your file in a paint program and convert to PNG format (not merely PNG file extension) as you save. Then you can be sure the format is correct.
Related
Any time I try to use an image from my local machine, I get an error from VS Code saying "An error occurred while loading the image. Open file using vs code's standard text/binary editor."
The original drag and drop of the image into the file functions as in I can see the image in the text editor but if I click onto another file/folder and back onto the image file, I get this error. This is happening in this instance while trying to use a .ico file but it has been happening for about a week now with any image I try to use (.png, .ico, .jpg, etc...). I am on a Windows 10 machine and memory is not an issue.
I have tried disabling all extensions, replacing the file with another, making sure VS Code is up to date and completely closing VS Code and re-opening it.
Alright, I got the same issue last week, and this was how I fixed it:
Go to where you saved the project on your laptop, then drag and drop the images there. This should reflect in your VS Code.
Once the images were added through this route, they would not bring the initial error.
Let me know if you got what I said or if a short video will help!
So I have my own windows app, 'MyApp', that I want to associate with multiple existing file extensions such as .pdf, .doc etc. Associating the extension is no problem, but then all of the file icons inherit their icon from the app, which I don't want.
I noticed that pdf files were associated with MS Edge on my Win11 machine, but that .pdf files were being displayed with a regular looking 'pdf' icon rather than an Edge one, exactly as I want to do.
I found this ms page that seems to describe how to do it with a DefaultIcon key in the registry, but my icon remains as MyApp's when I try. I also found this page which sounds similar to my problem. Implementing the answer's solution does change something, but all it does is give all of the associated files a shared icon (I pointed it to a 7zip one just for kicks) that is different from MyApp's.
I've concentrated on creating my own fake extension (.qqq) rather than trash settings for others, although I have tried using .pdf with no luck either.
I also noted the existing use of DefaultIcon with 7zip file extensions, but I was unable to replicate their behaviour with MyApp and its associated extensions.
Can anyone point out where I might be going wrong please?
I downloaded an .R file from a zoom chat on desktop to open in Rstudio later.
Well, the .R extension was not part of the name, so I changed the name to something.pdf (of course by mistake).
The icon now looks like a pdf. I replaced the .pdf with .R. But the icon still is a PDF file and Rstudio does not recognize it as an R file.
How can I can change it back to its .R format?
edit. thanks for pointing this out. I am on a windows 10 machine. and the file is on desktop.
Troubleshoot for Windows
You may be trying to add multiple file extensions, which does not allow the file to be ready correctly.
A quick google search.
How do I reveal file extensions?
For Windows 8-10
Start Windows Explorer, you can do this by opening up any folder.
Click the View menu.
Check the box next to "File name Extensions"
Then make sure you have my_file.R as opposed to my_file.R.R.pdf.
If anyone have any clue at all, it would be welcome. I got the same problem last year, and we end up ghosting my computer. 9 month later, I got the problem again ...
Whenever I open a project, if I open a form in my designer, the resx files get automaticly checked-out and modified as I open it.
( we have an auto-check out policy at work that force you to check out a file WHEN YOU MODIFY IT, to avoid 2 programmer working on the same stuff. its not support to check out when I'm just "reading" a file. I just compared with other poeple, and it works correctly for everyone but me.)
The above image is what I saw when I debug the program, I didnt checked-in anything. I just did a getlatest, and debugged.
Whenever I open a form, The width property of the form gets overwritted down to 770 pixel instead of the regular 950. the image data used on our button gets resize smaller too by ±10 pixel width and height.
Another exemple : this is what I saw when I compared my last resx file checked in from last night. I didnt modified the design or moved anything in the designer at all, it just happened to be open while I was working.
remove the .suo file?
while the solution is closed remove the .suo file and then open the solution to recreate it. it may be restoring the screen sizes from when you last opened the file.
Old bug date from vs2003 ...
my screen DPI wasnt the same as the guy who 1st build the winform ... which cause the desginer to replace all the anchors et fonts et whatnot ...
check out this post for more details : DPI
I am working on a college assignment and am having a huge problem.
Everything was fine until I noticed a strange '.DS_Store' file in the main folder containing all my images, html, css and .js files.
Now my webpages look like this:
An old screen grab - I had just finished adding a custom sprite and tweaking a flexslider before this all happened:
I was trying to find some more information about this '.DS_Store' file. I can't find much online. Nor can I find any postings about similar problems. I did find this though but am hesitant to start deleting files from terminal.
However, I strongly suspect it has something to do with this '.DS_Store' file.
I have tried to solve this problem by:
Importing all images back into photoshop and saving to a new folder.
Importing all code and script to a pain-text editor and then back into Coda, Wrangler, Dreamweaver on Mac and Notepad++ on a Windows machine).
I am still getting the same effect when I try to view the pages in Chrome, IE, Mozilla - broken images and no formatting. Not compiling.
Does anyone know anything about this? I would HUGELY appreciate some information on how I can fix this.
.DS_STORE would not have broken your web project at all.
From wikipedia:
DS_Store files are automatically created by Mac OSX Finder in browsed directories. These files contain information about system configuration.
System configuration files would not affect your web project at all.
.DS_store is just a hidden file with info about the system. If you haven't touched it, there is probably another problem. Maybe you moved a folder? Made a typo? Added or removed code?