Вопрос

При загрузке изображения до 300x300 для профилей в SharePoint 2013 - SP автоматически создает миниатюры для изображения для использования вокруг сайта;Браузер орг, поиск людей и т. Однако, если изображение для 300px высокий, а только 200px широкий миниатюр плохо обрезан (народные половики / вершины их головы отсутствуют).

Я реализую, что есть не так много, я могу сделать, чтобы изменить путь SP работает, но если вы знаете инструмент, который будет разместить копии изображения (добавление белого заполнения на изображение), которое было бы чрезвычайно полезно, что и около 1000 изображений для решенияс.

Это было полезно?

Решение 2

In the end I used a tool called imagemagick from www.imagemagick.org

First I created a simple white square 300x300 for the background image to be under the actual user image - I realise there are other ways of using imagemagick to achieve the same thing but this seemed the simplest approach for me. The next step is to resize the images to a suitable size (i.e. 300px wide or 300px tall)

mogrify -path "c:\temp\Resized photos" -resize 300x300 "c:\temp\Resized photos"\*.*
for /f %%a IN ('dir /b /s "c:\temp\resize~1\*.*"') do call composite -gravity center %%a     "c:\temp\background.png" %%a

Once that was complete I was able to run my profile image import as normal and have the user images not cropped incorrectly.

Другие советы

goto site settings, under look and feel select image renditions.

here you can fiddle around to choose what you want to show with an image when sharepoint renders the profile image.

its found here:

rendition click here

select the image (thumbnail) by hovering over and click on edit renditions

edit image

these are the sizes to change to your liking:

image size types

click on the selected size to edit (scale is available)

change image prop

now select your rendition that you want as default

select default type

unfortunatly, once the rendering has started it cant be saved. What i mean is when you upload an image to sharpeoint it saves three scales and those a saved and used... the origional image is not saved. so if it saved the images cropped than it will be using the cropped images. You would need to reupload the image otherwise!

full details can be found here:

http://blog.mastykarz.nl/image-renditions-sharepoint-2013/

Лицензировано под: CC-BY-SA с атрибуция
Не связан с sharepoint.stackexchange
scroll top