Hey everyone! I’m struggling to add a picture from my Google Drive to my GitHub README. I’ve got this cool image I want to show off, but I can’t figure out how to make it appear in the markdown file. I tried using the shared link from Drive, but no luck. The image just won’t show up. Does anyone know a trick to make this work? Maybe there’s a special way to format the link or a different method altogether? I’d really appreciate any help or tips you can share. Thanks in advance!
hey there! i had the same problem before. what i did was upload the pic to imgur instead. its super easy, just drag n drop. then copy the direct link they give u and use it in ur readme like this: . works like a charm every time!
I’ve faced this issue before, and I can share what worked for me. Unfortunately, GitHub doesn’t directly support embedding Google Drive images in README files. The easiest workaround I found is to upload the image to GitHub itself. You can do this by creating an ‘images’ folder in your repo and adding the picture there. Then, use a relative path in your markdown like this:
Another option is to use a third-party image hosting service like Imgur. They provide direct links that work well with GitHub markdown. Just upload your image there, copy the direct link, and use it in your README.
If you absolutely must use Google Drive, you’ll need to make the image publicly accessible and use the direct link format. But honestly, I’d recommend sticking with GitHub or Imgur for simplicity and reliability.
While the other suggestions are valid, there’s another approach worth considering. You can use a service like Raw.githubusercontent.com. Here’s how:
- Upload your image to your GitHub repository.
- Navigate to the image and click on ‘Raw’.
- Copy the URL from your browser.
- Use this URL in your README markdown.
The advantage here is that you maintain control over your image within your GitHub ecosystem. It’s particularly useful for project-specific images or diagrams. Just remember, any changes to the image will require a new commit to update it in your README.
This method has served me well in numerous projects, offering a clean, professional look without relying on external services.