Skip to content

aspose-imaging/Aspose.Imaging-for-Python-Net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

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