Page MenuHomePhabricator

PageImages: configuration option omit og:image / compatibility with WikiSEO
Closed, ResolvedPublic

Description

Feature request:
Could you add a configuration option please to not add an og:image?

What's the point of that?
I'd like to use Extension:Popups which lists Extension:PageImage as a dependency. The wiki where I would like to use it, has already og:image configured in all important places using Extension:WikiSEO.

Extension:WikiSEO currently points out a known issue:

Extension:PageImages will add an og:image tag if an image is found on the page. If another image was set using WikiSEO, both og:image will be added to the page.

If Extension:PageImages had an option to disable og:image creation by Extension:PageImages then it could be compatible with Extension:WikiSEO.

Event Timeline

adrelanos renamed this task from configuration option omit og:image / compatibility with WikiSEO to PageImages: configuration option omit og:image / compatibility with WikiSEO.Jan 31 2022, 11:17 PM

Would it help if a patch was provided? Is this something that could potentially get accepted?

T301588 seems to address this issue on REL1_38 and newer versions of Extension:PageImages

T301588 seems to address this issue on REL1_38 and newer versions of Extension:PageImages

Then all images wiki wide would need to be added class=notpageimage. That would be a crazy amount of work. I don't think that this is a good solution.

This ticket is a feature request for a global configuration option.

I don't disagree with this.

T301588 seems to address this issue on REL1_38 and newer versions of Extension:PageImages

Then all images wiki wide would need to be added class=notpageimage. That would be a crazy amount of work. I don't think that this is a good solution.

This ticket is a feature request for a global configuration option.

What's your use case for PageImages apart from populating og:image?

I don't disagree with this.

Glad to hear! :)

T301588 seems to address this issue on REL1_38 and newer versions of Extension:PageImages

Then all images wiki wide would need to be added class=notpageimage. That would be a crazy amount of work. I don't think that this is a good solution.

This ticket is a feature request for a global configuration option.

What's your use case for PageImages apart from populating og:image?

I am not after PageImages for populating og:image at all.

Extension:Popups (which looks really nice) has declared a dependency on Extension:PageImages. And that seems to make sense.

(Using Extension:WikiSEO to populate og:image among other tags.)

Such a configuration exists on MediaWiki 1.39, added to solve T217307

Set $wgPageImagesOpenGraph = false;