When I add images, they don't display. I get the broken link icon.
I have images that I've added today. I've never experienced this issue before on a 2 yr old WP site. They display as broken links. But when I view the live page and click, they properly show the image in Lightbox.
At first I thought it was a cache issue, but I can't seem to resolve this.
-
Update: the images I was trying to use were titled like "Image 1 Name.JPG". I changed them to "image-1-name-.jpg" and it solved the problem. I had one new image with ".jpg" instead of ".JPG" and it worked, whereas the others didn't. That was my clue.
So it seems that the image will upload with ".JPG" but it won't show properly in a gallery without renaming the file extension to ".jpg". It WOULD show up in lightbox, but the thumbnail wasn't displaying properly until I renamed the files and re-uploaded them to my media library.
0 -
Hi Craig
Thank you for the update.
The issue you ran into is actually related to how different systems treat file names. Some servers, especially those running on Linux, are case-sensitive, so ".JPG" and ".jpg" are seen as different file types. That’s why the image worked in the lightbox but didn’t show properly in the gallery until you renamed it.
Also, using spaces or special characters in file names can sometimes cause problems because they’re not always recognized by all systems. That’s why it's a good idea to stick to lowercase letters and hyphens for better compatibility.
I’m glad to hear the renaming worked, and it’s definitely a good practice to keep using this format going forward.
Best regards,
Ariel0
Please sign in to leave a comment.
Comments
2 comments