Feature request: Add "includes image" to the Advanced search options

AI-generated summary

A feature request was made to add an “includes image” option to the Advanced search options. The discussion led to a broader consideration of filtering posts with attachments. JagWaugh suggested adding “Includes external link” and “Includes uploaded file” filters, with manual fine-grained filters for specific file types. erlend_sh agreed that the feature should apply to both uploaded and linked images. The feature was implemented, allowing users to search for posts with images by selecting the Includes image(s) filter dmacjam. Additionally, users can search for posts with explicit file extensions by querying <keywords> filetype:pdf. However, david suggested adding this syntax to the advanced search UI for easier discovery. The feature has been completed on master coderberry.

Perhaps in the “Only return topics/posts that…” section?

Sure, this popped up before. Support the ability to search for posts with images, but it is not a trivial change.

4 « J'aime »

I have two questions to this feature:

  • Is it both for uploaded images and images pasted as links?

  • Is there a specific use case for images? I think it might be more general to filter posts with any allowed type of attachment uploaded (e.g. pdf, csv).

3 « J'aime »

Good point. Our site only included images, we’ve added .pdf in the meantime.

How about:
“Includes external link”
“Includes uploaded file”

with
Upload:image, .pdf, xml, .jpg, png

as manual fine grained filters so the user can add very explicit filters as required?

Both.

I think that should be its own filter. People frequently post images from other image sharing resources like imgur.

1 « J'aime »

Resolved with:

10 « J'aime »

This is really useful, but I had to search for a while on meta to find the correct syntax.

Could it be added to the advanced search UI?

6 « J'aime »

Sure, if you feel like adding it! Go for it

6 « J'aime »

This appears to have been completed on master

8 « J'aime »