Picture Quality

Mar 31, 2011 at 7:52 AM

Hello,

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

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

Thanks!

Coordinator
Apr 12, 2011 at 10:21 AM

Hi,
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 7: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.

Thanks,
Mike

Coordinator
Aug 15, 2011 at 1:20 PM
Edited Aug 15, 2011 at 1:21 PM

Hello!
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:choose>
      <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:when>
      <xsl:otherwise>
        <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'" />
        </xsl:call-template>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>

You can change logic to any custom.