GithubHelp home page GithubHelp logo

adv12 / pshim Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 65 KB

PowerShell Image Manipulation

License: MIT License

C# 100.00%
powershell powershell-module image-manipulation netcore net image-processing imagesharp powershell-image-manipulation

pshim's Introduction

pshim (PowerShell Image Manipulation)

This is a quickly written and poorly tested PowerShell module for image manipulation, basically just a thin set of Cmdlets wrapping the already very friendly ImageSharp .NET API. It's primarily for me to learn about ImageSharp and PowerShell and to have something enjoyable to work on in my spare time. Because ImageSharp is a .NET Core platform-independent library, so is pshim.

Building and Installing

Right now pshim isn't packaged in any way; you just have to grab source, build, and publish to some location and use Import-Module to load it (or publish it to somewhere PowerShell is already looking for modules). The Import-Module command will look something like this:

Import-Module -Name <path_to_publish_directory>/Pshim.dll

Make sure you publish rather than just building, so you get all the dependencies as well as the main DLL.

Sample usage

Get-ChildItem -Path *.jpg | Load-Image | Draw-Text "Hello, World!" -FontStyle Bold -Size 24 -Color White -PenColor Black -RespectDpi -Alignment BottomRight -PadRight 50 | Save-Image -Path { $_.FileInfo.FullName -replace ".jpg","_text.jpg" }

pshim's People

Contributors

adv12 avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.