8000 Feedback: About SEO · Issue #12 · andrelandgraf/openimg · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Feedback: About SEO #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
NicolasCharpentier opened this issue May 13, 2025 · 1 comment
Open

Feedback: About SEO #12

NicolasCharpentier opened this issue May 13, 2025 · 1 comment

Comments

@NicolasCharpentier
Copy link

Hi, just read your code, went through the same adventure as you writing an optimization endpoint and a image component for a painting gallery website (but going less further) so I want to give you a feedback from my thoughts, take it as is.

I had a problem where Google would not index my images, even if given in the sitemap.xml

So if not already ensured, I think you should ensure that images generated from your library are indexed by Google.

FYI for me the problem have been fixed after I added following changes :

  • Used a simple URL for the image (no "api" or many paths parts) (this looks the default for you so great).
  • Used a src with no query parameters.
  • Added a "content-length" header (this looks already done for you so great).
@andrelandgraf
Copy link
Owner
andrelandgraf commented May 27, 2025

Hey @NicolasCharpentier, thanks for the heads-up. I appreciate it! Also apologies for the late response, I've been super busy over the past few weeks, but I finally released v1 of openimg! 🥳

I assume you believe that the query parameter approach may result in worse indexing performance?

  • openimg: src="/img?src=/cat.png&w=100&h=100&format=webp"
  • alternative (potentially better): src="/img/cat/100/100/webp"

Doubling checking just so I understand correctly! I can't find any information about this in the Google guidelines (which of course doesn't mean it's not true).

Have you looked into providing structured data as part of your HTML response from the server? I've found that this is the best way to get images and other data indexed by Google: https://developers.google.com/search/docs/appearance/structured-data/sd-policies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0