Browse our Products
Aspose.PSD for Python via .NET 26.10 - Release Notes
This page contains release notes for Aspose.PSD for Python via .NET 26.10
| Key | Summary | Category |
|---|---|---|
| PSDPYTHON-346 | Out of Memory Error When Saving PSD File After Editing. | Bug |
| PSDPYTHON-347 | Implement Bevel & Emboss Layer Effect. | Feature |
| PSDPYTHON-348 | Fix handling of IsRawDataAvailable property and related LoadRawData functionality. | Feature |
Public API Changes
Added APIs:
- None
Removed APIs:
- T:Aspose.PSD.FileFormats.Psd.Layers.LayerEffects.BevelEmbossEffect
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerEffects.BevelEmbossEffect.BlendMode
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerEffects.BevelEmbossEffect.EffectType
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerEffects.BevelEmbossEffect.IsVisible
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerEffects.BevelEmbossEffect.Opacity
- M:Aspose.PSD.FileFormats.Psd.Layers.LayerEffects.BevelEmbossEffect.GetEffectBounds(Aspose.PSD.Rectangle,System.Int32)
Usage examples:
PSDPYTHON-346. Out of Memory Error When Saving PSD File After Editing.
fileName = "Lower Ground Floor.psd"
out_fileName = "out_LowerGroundFloor.psd"
loadOpt = PsdLoadOptions()
with PsdImage.load(fileName, loadOpt) as img:
psdImage = cast(PsdImage, img)
for layer in psdImage.layers:
if layer.name != "Layer 1":
fillLayer = cast(FillLayer, layer)
if fillLayer is not None:
settings = cast(IColorFillSettings, fillLayer.fill_settings)
if settings is not None:
settings.color = Color.from_name("White")
fillLayer.update()
break
psdImage.save(out_fileName, True)PSDPYTHON-347. Implement Bevel & Emboss Layer Effect.
sourceFile = "file.psd"
outputFilePng = "output.png"
loadOpt = PsdLoadOptions()
loadOpt.load_effects_resource = True
with PsdImage.load(sourceFile, loadOpt) as img:
psdImage = cast(PsdImage, img)
bevelEmbossEffect = cast(BevelEmbossEffect, psdImage.layers[1].blending_options.effects[0])
bevelEmbossEffect.opacity = 0
bevelEmbossEffect.blend_mode = BlendMode.DARKER_COLOR
pngOpt = PngOptions()
pngOpt.color_type = PngColorType.TRUECOLOR_WITH_ALPHA
psdImage.save(output_file_png, PngOptions())PSDPYTHON-348. Fix handling of IsRawDataAvailable property and related LoadRawData functionality.
test_cases = [
{"srcFileName": "HasCompositeData.psd", "hasCompositeData": True},
{"srcFileName": "NoCompositeData.psd", "hasCompositeData": False},
]
for tc in test_cases:
source_file = tc["srcFileName"]
with PsdImage.load(source_file) as img:
psd_image = cast(PsdImage, img)
assert psd_image.is_raw_data_available == tc["hasCompositeData"]