philomena-dev / philomena

Next-generation imageboard
GNU Affero General Public License v3.0
92 stars 36 forks source link

Reverse search improvement: store non-transparent intensities of transparent images #331

Open mdashlw opened 4 months ago

mdashlw commented 4 months ago

RGBA PNGs should store an additional instance of intensities without transparency (over white). It'd help with searching images from Twitter or shitty repost sites. image_id is currently a primary key in the image_intensities table so that'd have to be changed.

Related: reverse search page should also convert transparent images and use intensities of both versions for search.