Page 1 of 1

Feed icon recognition - experimental

Posted: 29 Mar 2012, 07:25
by gmargo
Attached is a patch that I've been using for over a month.
It checks the feed icon image content, instead of using the Mime Content-Type header, using simple pattern matching derived from the "file(1)" program.

I know there are image recognition functions provide by PHP, but I wrote this before I knew it (You guessed it - I'm a PHP beginner.)

Comments requested....

Re: Feed icon recognition - experimental

Posted: 29 Mar 2012, 12:08
by fox
This actually makes more sense than ImageMagick-based functions because I'd like to keep tt-rss without that huge dependency, thanks!