<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

aspect ratio (CD case), pictures found on the web will vary wildly.<br></blockquote><div><br> 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 <a href="http://sourceforge.net/projects/autocrop/">http://sourceforge.net/projects/autocrop/</a>), 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 &quot;areas of interest&quot; usually are more colorful than the background. Than crop around them. <br>

<br>However that&#39;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.<br><br>

In case of lack of websites providing API&#39;s to fetch artists photos, you can take a look at <a href="http://framework.zend.com/manual/en/zend.dom.query.html">http://framework.zend.com/manual/en/zend.dom.query.html</a> so images could be extracted using css selectors :)<br>

<br>Lukas<br></div></div>