none
thumbnail photos inAD

    Question

  • I keep hearing talk about adding thumbnail photos into active directory.  I see scripts/gui's that  will do this.  Some utilities compress the image before it is inserted into the thumbnail field.  Are there limitations to the size of the thumbnail photo (KB).  It will obviously make the DIT database huge.  Is there a best practice recomendation on thu,bnail photos and what the specifications are?
    Wednesday, July 18, 2012 1:29 AM

Answers

  • Hi,

     

    I would like to confirm what is the current situation? If there is anything that I can do for you, please do not hesitate to let me know, and I will be happy to help.

    Regards,

    Arthur Li

    TechNet Subscriber Support

    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.


    Arthur Li

    TechNet Community Support

    • Marked as answer by MOFMAN Tuesday, July 24, 2012 11:57 AM
    Tuesday, July 24, 2012 3:51 AM
    Moderator

All replies

  • The thumbnailPhoto attribute size limit is 100K & and the recommended size is 96 x 96 pixels.
    http://cjwdev.wordpress.com/2010/11/03/the-thumbnailphoto-attribute-explained/

    You  can add a picture to the thumbnailphoto attribute in Active Directory and it will be displayed in Outlook and Lync. You could also achieve this on SharePoint.
    First we need to add a picture to accounts in Active Directory. This can be achieved in many ways. One way is to use the dll from oLID: http://www.dewdney.co.uk/adext/adext.zip (readme inside zip file), another way is to use this tool: http://www.cjwdev.co.uk/Software/ADPhotoEdit/Info.html. A Third option is to use PowerShell. In order to import a picture using powershell you can use this code (you need Active directory modules):

    $photo = [byte[]](Get-Content C:\pictures\oddvar.jpg -Encoding byte)
    Set-ADUser oddvar -Replace @{thumbnailPhoto=$photo}
    Refernce link:http://msitpros.com/?p=1036

    I recommend using one of the gui methods, because they shrink the size of the image before they are written to the thumbnailphoto attribute.

    Taken from Refernce link:http://msitpros.com/?p=1036

    More on Using Pictures from Active Directory
    http://blogs.dirteam.com/blogs/jorge/archive/2011/06/14/pictures-photos-in-active-directory.aspx
    http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010general/thread/1977e14b-2154-4570-8eaf-588a311c95a5/
    http://blogs.technet.com/b/ilvancri/archive/2009/11/17/upload-picture-in-outlook-2010-using-the-exchange-management-shell-exchange-2010.aspx

    Hope this helps


    Best Regards,

    Sandesh Dubey.

    MCSE|MCSA:Messaging|MCTS|MCITP:Enterprise Adminitrator | My Blog

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    Wednesday, July 18, 2012 1:42 AM
  • Hi,

    The picture file should be 10kb or less in size and its dimensions should be 96 x 96 pixels if you are saving the photo to thumbnailPhoto attribute, jpeg Photo attribute does accept larger images up to 200 x 200 pixels.

    However, The thumbnailPhoto attribute size limit is not 10 KB. It is 100 KB and it always has been since it was introduced in Windows 2000 Active Directory. Note that the Powershell cmdlets that come with Exchange 2010 do not let you upload an image larger than 10 KB.

    http://sysnetadmin.changar.com/2011/02/10/using-outlook-2010-and-thumbnailphoto-in-active-directory/

    How to import Photos into Active Directory
    Importing Photos with AD PowerShell:
    http://www.mikepfeiffer.net/2010/05/manage-exchange-2010-thumbnail-photos-with-a-powershell-based-gui/

    How i can update thumbnailPhoto AD attribute with powershell?
    http://social.technet.microsoft.com/Forums/en/ITCG/thread/403cda19-7a63-4d95-a273-8f7885e836cd


    Best Regards,

    Abhijit Waikar.
    MCSA 2003 | MCSA:Messaging | MCTS | MCITP:Server Administrator | Microsoft Community Contributor | My Blog

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    Wednesday, July 18, 2012 2:11 AM
  • that  is great information, thank you,  My only confusion is the size limit.  The article you listed states 100 K and I have seen a few referances to it being 10 K.  Is the 10 K limitation an exchange or sharepoint 2010 thing. 
    Wednesday, July 18, 2012 2:12 AM
  • Hi,

    Powershell cmdlets that come with Exchange 2010 do not let you upload an image larger than 10 KB.

    This is the greate article which talks about picture size in SharePoint 2010, Outlook 2010, and Exchange 2010
    http://blogs.msdn.com/b/natebaum/archive/2010/06/16/pictures-pictures-everywhere.aspx


    Best Regards,

    Abhijit Waikar.
    MCSA 2003 | MCSA:Messaging | MCTS | MCITP:Server Administrator | Microsoft Community Contributor | My Blog

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.




    Wednesday, July 18, 2012 2:20 AM
  • I keep hearing talk about adding thumbnail photos into active directory.  I see scripts/gui's that  will do this.  Some utilities compress the image before it is inserted into the thumbnail field.  Are there limitations to the size of the thumbnail photo (KB).  It will obviously make the DIT database huge.  Is there a best practice recomendation on thu,bnail photos and what the specifications are?

    I haven't seen any documents from MS stating best practices for using thumbnail photo, but its mostly introduced as an additional feature people who prefer to use thumbnail photo into Lync, Office 2010 & above. Since, it wasn't possible with down-level OSes as apps. There is nothing wrong in using this feature, but you should be only aware of the requirements as well as slight increase in the AD database size. Even, my organization is using such feature. thumbnail photo is part of the personal attribute which allow domain users to update their photo into the AD database.

    http://blogs.technet.com/b/harmeetw/archive/2011/09/10/importing-thumbnail-photos-from-ad-active-directory-into-sharepoint-2010.aspx


    Awinish Vishwakarma - MVP - Directory Services

    My Blog: awinish.wordpress.com

    Disclaimer This posting is provided AS-IS with no warranties/guarantees and confers no rights.

    Wednesday, July 18, 2012 9:47 AM
    Moderator
  • that  is great information, thank you,  My only confusion is the size limit.  The article you listed states 100 K and I have seen a few referances to it being 10 K.  Is the 10 K limitation an exchange or sharepoint 2010 thing. 

    Hello,

    See this article from MS Exchange Team Blog: http://blogs.technet.com/b/exchange/archive/2010/03/10/gal-photos-in-exchange-2010-and-outlook-2010.aspx

    thumbnailPhoto attribute can accomodate photos of up to 100K in size and the recommended thumbnail photo size in pixels is 96x96 pixels.


    This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.   

    Microsoft Student Partner 2010 / 2011
    Microsoft Certified Professional
    Microsoft Certified Systems Administrator: Security
    Microsoft Certified Systems Engineer: Security
    Microsoft Certified Technology Specialist: Windows Server 2008 Active Directory, Configuration
    Microsoft Certified Technology Specialist: Windows Server 2008 Network Infrastructure, Configuration
    Microsoft Certified Technology Specialist: Windows Server 2008 Applications Infrastructure, Configuration
    Microsoft Certified Technology Specialist: Windows 7, Configuring
    Microsoft Certified Technology Specialist: Designing and Providing Volume Licensing Solutions to Large Organizations
    Microsoft Certified IT Professional: Enterprise Administrator
    Microsoft Certified IT Professional: Server Administrator
    Microsoft Certified Trainer

    Wednesday, July 18, 2012 9:55 AM
  • Hi,

     

    I would like to confirm what is the current situation? If there is anything that I can do for you, please do not hesitate to let me know, and I will be happy to help.

    Regards,

    Arthur Li

    TechNet Subscriber Support

    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.


    Arthur Li

    TechNet Community Support

    • Marked as answer by MOFMAN Tuesday, July 24, 2012 11:57 AM
    Tuesday, July 24, 2012 3:51 AM
    Moderator
  • Hi Arthur,

    I came across this post and wanted to find out whether it is possible to use two different resolution images in AD..

    The reason being - we need to use these images for account pictures at windows logon as well as the people pane in Outlook. The problem is the image at 400x400 pixels looks perfectly fine on lock screens but in outlook is appears compressed and pix elated.

    What would you suggest for this?

    Thanks in advance,

    Adam

    Friday, January 22, 2016 5:14 PM
  • See this more recent article for uploading pictures into the user's Exchange mailbox. http://www.msexchange.org/kbase/ExchangeServerTips/ExchangeServer2013/OutlookOWA/user-photo-exchange-lync-and-active-directory.html

    Exchange will resize the photos up to three different dimensions for use in different products, depending on the resolution of the original image. It imports the smallest in to AD.

    Thursday, May 26, 2016 5:14 AM