Bug 149453

Lukas 1lukas1 at gmail.com
Fri Apr 15 14:37:54 CEST 2011


>
> aspect ratio (CD case), pictures found on the web will vary wildly.
>

 Cropping images to the required aspect ratio always was a nasty job. One
way could be to use openCV to detect faces (like in digiKam or
http://sourceforge.net/projects/autocrop/), and use most fitting area. But
that might not work well with artists with a lot of makeup :D. Another way
can by use of some statistical methods to to identify hotspots in the image
(e.g. by the level of how much surrounding colors differs from our pixel).
The faces, or "areas of interest" usually are more colorful than the
background. Than crop around them.

However that's probably out of scope of the Amarok. Anyway, it would be
really cool to have some thumbs auto-cropping tool as KDE wide, E.g. it
would be great to have thumbs in Dolphin as large as possible.

In case of lack of websites providing API's to fetch artists photos, you can
take a look at http://framework.zend.com/manual/en/zend.dom.query.html so
images could be extracted using css selectors :)

Lukas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/amarok-devel/attachments/20110415/751119ca/attachment.htm 


More information about the Amarok-devel mailing list