0

I have a SharePoint2013 url, i need to download two image files and compare its size in powershell.

Is it possible to compare two image file's size and dimensions without downloading it to local

Or

If we have to download how to do it using current user credentials in powershell or management shell. I don't want to use Get-credentials to have a popup. Also i cannot hard code password due to security.

Thanks in advance, Gokul

0

Option A (not tested)

With metadata extraction on images (for jpg, png) it should work to directly compare the images.

Create a column with the name "wic_YResolution" and "wic_XResolution" (you can rename those later). This guy got it working: Link 1

Option B

You can modify this script to download images. I used it to download all the images from a library. It doesn't ask for credentials. Link 2

Bonus

You can use Export-CliXml to save credentials securely. Link 3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.