Picture Quality

Mar 31, 2011 at 8:52 AM


Are you using the user profiles to get the pictures from?

If so, how did you improve the quality of those pictures?


Apr 12, 2011 at 11:21 AM

Yes, by default I use profile _LTumbnail pictures.

You can use any pictures if you change picture urls in XSLT (accessible via webpart properties).

Aug 5, 2011 at 8:54 PM

Hello Maxim,

Can you let me know where to change the URLs in the XSLT?  I'm getting data from profiles, but no pictures and I suspect is is how we have My Sites configured.


Aug 15, 2011 at 2:20 PM
Edited Aug 15, 2011 at 2:21 PM

By default I utilize User profile picture large. open Xsl file from WebPart properties and find this fragment:

<xsl:template name="GetPicUrl">
    <xsl:param name="PicUrl"/>
    <xsl:param name="PlaceHolderUrl"/>
      <xsl:when test="string-length($PicUrl) &lt; 1 or starts-with($PicUrl, 'file:') or starts-with($PicUrl, '\\') or starts-with($PicUrl, '//')">
        <xsl:value-of select="$PlaceHolderUrl"/>
        <xsl:call-template name="replace-text">
          <xsl:with-param name="text" select="$PicUrl"  />
          <xsl:with-param name="replace" select="'_MThumb'" />
          <xsl:with-param name="by" select="'_LThumb'" />

You can change logic to any custom.