New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pycrop

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pycrop

Methods to manipulate images

  • 1.0.1
  • PyPI
  • Socket score

Maintainers
1

PyCrop

  1. What it does
  2. functions
    1. Contain
    2. Cover
  3. Installation

What it does

Methods to manipulate images

Functions

1.Cover

  • params:
    • path:str - image absolute path
    • size:list - output image size (width:int, height:int)
    • point:list - point from where image is cropped and resized
    • savepath:str - image destination path
    • quality:int - output image quality (from 0 to 100%)
  • returns:
    • (resize status, output image path):tuple

Based on size, it will crop evenly distributed rectagle from point coordinates (in percentage).

2.Contain

  • params:
    • path:str - image absolute path
    • size:list - output image size (width:int, height:int)
    • savepath:str - image destination path
    • quality:int - output image quality (from 0 to 100%)
  • returns:
    • (resize status, output image path):tuple

Function will fit source image in rectagle which has same dimensions as size.

Installation

To install the package by pip run following command

$ pip install pycrop

or

$ pip install git+https://github.com/giorgi94/pycrop.git

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc