< Back

Search-Image

Mon Jan 13, 2020 11:59 pm

NAME Search-Image



SYNOPSIS

Uses an input image to query Google Image Search.





SYNTAX

Search-Image [-ImagePath] <FileInfo> [<CommonParameters>]





DESCRIPTION

The Search-Image cmdlet reads the image and use this image to query Google Image Search. This cmdlet can be piped

to the Get-ChildItem cmdlet for a batch processing.





PARAMETERS

-ImagePath <FileInfo>

Specifies a Path to a image file. The input can be a string or a valid instance of the System.IO.FileInfo

class.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String

System.IO.FileInfo





OUTPUTS

A system query to the default web browser with the input image.





NOTES





- This cmdlet uses non-standard way how to query Google Image Search. Do not use it for automatization.



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Search-Image -ImagePath C:\\Pictures\\SomeImageToSearch.jpg



Reads the image SomeImageToSearch.jpg in C:\\Pictures Path and use this image to query Google Image Search.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-ChildItem -Path 'C:\\Pictures' -Filter '*.jpg' | Search-Image



Reads all images in C:\\Pictures and pipes them into Search-Image where are used to query Google Image Search.











RELATED LINKS

https://github.com/KUTlime/PowerShell-G ... rch-Module