Images in posts versus topic-list-previews

I managed to edit the plugin to replace links with images ( Linkify words in post) but there is a conflict with another plugin.

Thumbnail generation for topic-list-previews does not work for the image created in the post via src tag. Can anyone direct where to look for the problem ?

Does the problem still occur when you install the TC version of Topic List Previews and uninstall the plugin? That only uses the core generation logic and does not change anything in that regard.

If so it’s not TLP that’s the issue.

See this code which details the inclusion criteria:

https://github.com/paviliondev/discourse-topic-previews/blob/6064a5940a80e69ed56a7cbe67f8ded8e33e5d67/lib/cooked_post_processor_edits.rb#L4

which is slightly broader than core (plugin only, TLP TC uses core logic so long as you don’t install the sidecar plugin). As you can see it includes any img with a src attribute except those that fit the exclusion criteria. This code is identical to core bar the end.

Please remove the plugin, install the TC, and confirm if the problem persists or not.