Browse our Products

If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.

 

Aspose.Imaging for Python via .NET 24.9 macOS 10-14 x86 - x64

Download  Support Forum 

File Details

  • Downloads:
  • 1
  • File Size:
  • 82.49MB
  • Date Added:
  • 2/9/2024

Description

It contains Aspose.Imaging for Python via .NET 24.9, MacOS 10-14, x86, x64 release

File Details

With the latest release of Aspose.Imaging for Python via .NET 24.9 on macOS (x64), developers can benefit from a more efficient image processing experience. This version emphasizes better memory management, particularly during large-scale rendering operations.

TIFF Saving Fix

In the latest version of the Python imaging API, we have addressed memory stream issues during TIFF saves by fixing ObjectDisposedException to guarantee effortless file-saving processes.

Code sample:


from aspose.imaging import Image
from aspose.imaging.imageoptions import TiffOptions
from aspose.imaging.sources import StreamSource
from aspose.imaging.extensions import StreamExtensions as streams
from aspose.imaging.fileformats.tiff.enums import TiffExpectedFormat


def save_tiff(stream):
    tiffOptions = TiffOptions(TiffExpectedFormat.TIFF_LZW_RGBA)
	tiffOptions.source = StreamSource(stream)
	with Image.create(tiffOptions, 1000, 1000) as image:
        image.save()

    # does not throw exception
    print(stream.tell())

def tiff_test():
    with streams.create_memory_stream() as ms:
		save_tiff(ms)
		gc.collect(0)
		# does not throw exception
		print(ms.tell())

tiff_test()

Source*

SVG Rendering Accuracy

Obtain optimized SVGs as we have improved rendering for paths and gradients in SVG files using the latest Python library release to guarantee accurate output on macOS x64.

Code sample:


### Example
The sample SVG is exported as an image with an open arc without crossed lines.

from aspose.imaging import Image
from aspose.imaging.imageoptions import SvgRasterizationOptions, PngOptions

inputFilePath = "svgHalfNotch2.svg"
outputFilePath = "svgHalfNotch2.svg.png"
with Image.load(inputFilePath) as image:
	rasterizationOptions = SvgRasterizationOptions()
	rasterizationOptions.page_width = image.width
	rasterizationOptions.page_height = image.height
	pngOptions = PngOptions()
	pngOptions.vector_rasterization_options = rasterizationOptions

	image.save(outputFilePath, pngOptions)

Source*

Memory Efficiency

Aspose.Imaging for Python via .NET 24.9 offers reduced drawing operation memory usage by up to 30%, which increases process efficiency significantly.

Code sample:


from aspose.imaging import Image, LoadOptions
from aspose.imaging.imageoptions import PngOptions, JpegOptions, BmpOptions

load_options = LoadOptions()
load_options.buffer_size_hint = 200
with Image.load("1.emf", load_options) as image:
    image.save("output.png", PngOptions())

with Image.load("1.emf", load_options) as image:
    image.save("output.jpg", JpegOptions())

with Image.load("1.emf", load_options) as image:
    image.save("output.bmp", BmpOptions())

Source*

EMF to SVG Improvements

We have expanded gradient support for enhanced visual fidelity during EMF to SVG conversions within your macOS x64-powered Python applications.

Code sample:


from aspose.imaging import Image
input_file = "input.emf";
with Image.load(input_file) as image:
	image.save(input_file + ".svg")

Source*

You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting Aspose.Imaging for Python via .NET 24.9 Release Notes.

 English