Coder Social home page Coder Social logo

aspose-imaging / aspose.imaging-for-python-net Goto Github PK

View Code? Open in Web Editor NEW
3.0 14.0 0.0 52.51 MB

Aspose.Imaging for Python examples, plugins and showcase projects

Home Page: https://products.aspose.com/imaging/python-net

License: MIT License

crop exif-remover image-compression image-conversion image2pdf imageformats library linux macos python

aspose.imaging-for-python-net's Introduction

GitHub all releases GitHub

API for Image Processing

Aspose.Imaging for Python via .NET is Another Python Imaging Library offering advanced image processing features. Developers can create, edit or convert images in their own application. Also Aspose.Imaging library supports drawing and work with graphic primitives. Image exporting and conversion (including uniform multi-page image processing) is the one of API core features along with image transformations (resize, crop, flip&rotate, binarization, grayscale, adjust), advanced image manipulation features (filtering, dithering, masking, deskewing) and memory optimization strategies.

Directory Description
Examples A collection of Python examples that help you learn the product features.

Imaging Features

Load & Save Image Formats

Raster Formats: JPEG2000, JPEG, BMP, TIFF, GIF, PNG, DICOM, TGA, ICO
Metafiles: EMF, WMF
Compressed metafiles: EMZ, WMZ
Other: WebP, Svg, Svgz (compressed Svg), DXF
Animation: Apng

Save Images As

Fixed-layout: PDF
Photoshop: PSD
Web: Html5 Canvas

Load Images

Various: DjVu, DNG, ODG, EPS, CMX, CDR, DIB, OTG, FODG

Platform Independence

Aspose.Imaging for Python via .NET can be used to develop applications on Windows Desktop (x86, x64), Windows Server (x86, x64), Windows Azure, as well as Linux x64, macOS 10.14 (x86_64), and macOS 11.0 (arm64) . Aspose.Imaging for Python is based on .NET Core 6.0 platform, so you need install it as well.

Get Started with Aspose.Imaging for Python via .NET

Are you ready to give Aspose.Imaging for Python via .NET a try? Simply execute run this command: pip install aspose-imaging-python-net.

Resize a JPG Image

with Image.load("template.jpg") as image:
    image.resize(300, 300)
    image.save("output.jpg")

Create & Manipulate PNG via API

# image width and height
width = 500
height = 300

# where created image to store
path = "createdImage.png"
# create options
options = PngOptions()
options.source = FileCreateSource(path, False)
with Image.create(options, width, height) as image:
    # create and initialize an instance of Graphics class 
    # and clear Graphics surface
    graphic = Graphics(image)
    graphic.clear(Color.green)
    # draw line on image
    graphic.draw_line(Pen(Color.blue), 9, 9, 90, 90)  

    # resize image
    new_width = 400
    image.resize_width_proportionally(new_width, ResizeType.LANCZOS_RESAMPLE);  

    # crop the image to specified area
    area = Rectangle(10, 10, 200, 200)
    image.crop(area)
   
    image.save()
}

Home | Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License | Package page

aspose.imaging-for-python-net's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aspose.imaging-for-python-net's Issues

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.