Firebase Hosting: gifs are not loading - html

For whatever reason the gifs & pngs on my site for a friend are not working and I cant seem to figure out why. If you take a look: https://saadmetla.com/portfolios/3d-gif.html There are no relative path problems because its the same location as many of the other images.
Only jpg images are loading successfully. Are there any direct reasons for this ?

It looks as though the GIFs uploaded to your site are empty or corrupt.
For example, downloading
https://saadmetla.com/assets/Website/gifs/conway2.gif and opening it locally in Firefox shows me a "cannot be displayed because it contains errors" message.

Related

Why do Webp images not load in VScode but they load in Repl.it?

Why do Webp images display this error on VScode:
error
But they work fine on another IDE such as Repl.it? I did not change anything. The paths to the pictures are the exact same but for some reason the images work fine on repl.it but on VScode they display that error. Anyone know why this happens?
I cant share any code since its a whole project but to basically link an image, I do this both on VScode and Repl.it: ./assets/img/image.webp
assets is a folder in the root
Can VScode render Webp images or is that ability not supported as of right now?

Images being found on website load but not loaded correctly (broken)

Have this weird case when my images are being found in sources, linked correctly, src url is okay, but still not being displayed. Other images in that same folder are being loaded and displayed just fine, but my new uploaded images are not. I'm using open cart and upload images via ftp. Permissions are fine 644 like the others. I asked other developers in my team and no one has any clue why is that. Guys tried downlaoding and opening the image on their computer and can't even open it, whereas I'm using MAC and can open the same images on my computer without any problems. Images are saved as .jpg from Photoshop. What's the deal here? Here is how it looks in Mozilla:
This can happen because of corrupted image file. Most likely it is the extension problem of the file. Instead of doing save as in Photoshop, try exporting the image through export settings and choose png or jpg format there. It should work fine now, it worked for me.
Just to make sure on this front - Are you uploading them as .JPG or .jpg? If so, the problem may lie there...
If you link to a file that is .jpg and you put .JPG into the code for the link, the link will not work.
Make sure you're not using uppercase JPG as some servers will not read/detect them, and you will not able to see the pictures until you change the extension to lower case jpg.
Also, make sure the color mode, if saving them from Photoshop directly to jpg, is RGB format. If you use any other color mode, it may not display at all. CMYK files for example will not display correctly.

AWS Website Images not loading

I manage a website for a school magazine and I have been doing some work on it, however I have noticed that suddenly some of the images are not loading and giving error 404 messages when just a day ago it was working fine. I thought it might just be my web browser (chrome) and so I tried changing the browser and used edge and while some of the pictures loaded when they did not before some other ones now did not load.
The website is hosted on AWS using elastic beanstalk and S3. Here is a link to the website: Ink Magazine
Here are some pictures of the problems I am getting:
Ink Featured Missing Image
Any insight into why this is happening would be greatly appriciated, I have checked and the images are still on the S3 server and can be downloaded and opened fine, plus the same images still work when the article is opened.
Thanks
Your image URLs look weird to me. For example this:
http://inkstudents.co.uk/image/pictureThumbnail-photos-from-the-royal-visit.png/true/x2016-06-19T20,3A13,3A49Z.pagespeed.ic.EdDYAbdtI_.webp
If I remove everything after the .png then the image loads, like this:
http://inkstudents.co.uk/image/pictureThumbnail-photos-from-the-royal-visit.png
It looks like you may have tried adding Google PageSpeed to your site, but it isn't configured properly?

Did I just create a real animated .JPG file?

It all started with this GIF image I found online: https://media.giphy.com/media/9fbYYzdf6BbQA/giphy.gif
I downloaded it to my computer, which runs Windows 10, put it on my desktop, and edited the file name to change ".gif" to ".jpg." The conversion ended up working fine, and I opened the image saved to my computer in my internet browser, Opera, just to see if it would still animate. It opened a file:// URL, and it showed the jpg normally, animating like a GIF would. So, I decided to see if other people saw the JPG animating like a gif, and on a forum site I am an admin for, I uploaded the image as an attachment to a thread. I made the thread, this was the image file I now had, basically just a normal JPG but animated: s4224.storage.proboards.com/5644224/t/crq4LpxP3rTT6eTORg1o.jpg
When I opened the image in Firefox, and got info on the image, Firefox still thought it was a gif in one area showing the file type, though. Internet Explorer said nothing about it being a GIF when I opened the image in that browser. I then saved the page as a JPG, uploaded it to vgy.me, and still got a .JPG result: vgy.me/dX1KGD.jpg
So, have I created a normal, animated .JPG image? Or is it still just a .GIF file that tricks internet browsers? I remember while I was inspecting the image in Opera that it showed the file/image type as "image/jpeg" as well. Seems to be keeping that metadata!
If you serve a file with a .jpg extension, web servers will normally serve that with a media type of image/jpeg, hence that what will get reported in the browser.
But in practice, image files have very different formats, and it's easy for browsers to inspect the file data itself to decide whether it's a JPG or GIF file and process it accordingly. The process that browsers use for doing this is defined in the MIME Sniffing Standard, which includes the MIME sniffing in an image context algorithm.
So, as Xufox says in their comment, it's still a GIF file regardless of its extension.
https://answers.microsoft.com/en-us/windows/forum/apps_windows_10-photos-winpc/living-images-in-windows-10-photo-app/15736942-9fa7-48eb-bfd4-2152acb582ce
"If you copy the file to a computer and then change the extension to .zip, and open the zip file, you will be able to see the separate jpeg and MP4 files inside. This is what you were asking I assume?"

.png images not displaying

I have a issue of displaying .png images on web my web page. Other image types excluding .png just work fine. The issue is .png. The web site is located in a sub domain. In the root, a wordpress site is running.
In firebug, I can see a 403 error. But I can assure that I have set 0777 permissions for all images. It couldn't be a permission issue.
Rarely, .pngs are loading. But the second request gives a broken image. I have applied different cache removal techniques including <FilesMatch> directive in .htaccess, appending version attributes to image link, using # ...etc. But nothing works.
The most complicated point is that when copy & paste the image link in browser it shows the .png. However not within a web page.
Can anybody help me resolve this?
Thanks in advance.
Even I tried executing it in a browser. But the .png image doesn't showup for me.
Try changing the image folder permission to 755 or 644.