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. |
- Draw raster images with graphics.
- Draw vector images.
- Convert images to various formats.
- Apply masking as well as Median & Wiener filters.
- Crop, rotate & resize images via API.
- De-skew & transform images.
- Set image properties.
- Work with multipage 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
Fixed-layout: PDF
Photoshop: PSD
Web: Html5 Canvas
Various: DjVu, DNG, ODG, EPS, CMX, CDR, DIB, OTG, FODG
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.
Are you ready to give Aspose.Imaging for Python via .NET a try? Simply execute run this command: pip install aspose-imaging-python-net
.
with Image.load("template.jpg") as image:
image.resize(300, 300)
image.save("output.jpg")
# 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