jindili

Results 14 comments of jindili

just try VectorMask.paths, get error ``` AttributeError: 'PSDImage' object has no attribute 'VectorMask' ``` psd.shape.VectorMask get error too: ``` AttributeError: 'PSDImage' object has no attribute 'shape' ```

This code run's ok, ```python for layer in psd: if layer.has_vector_mask(): print(layer.vector_mask) else: print("No Vector Mask Found") ``` output: ``` No Vector Mask Found No Vector Mask Found ``` but...

I find the paths data format description here: Adobe Photoshop File Formats Specification https://www.adobe.com/devnet-apps/photoshop/fileformatashtml/#50577409_17587 and VectorMask.paths seems to be something similar psd_tools.api.shape — psd-tools 1.9.17 documentation https://psd-tools.readthedocs.io/en/latest/reference/psd_tools.api.shape.html?highlight=paths#psd_tools.api.shape.VectorMask.paths Can we use...

@kyamagu Thanks for the instruction. I was able to parse this two paths to : ``` path1: [, 0, [, , , , , ]] path2: [, 0, [, ,...

I come across almost the same issue, ```python image.get('icc-profile-data') ``` and get ``` b'\x00\x00\x02$appl\x04\x00\x00\x00mntrRGB XYZ \x07\xe1\x00\x07\x00\x07\x00\r\x00\x16\x00 acspAPPL\x00\x00\x00\x00APPL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf6\xd6\x00\x01\x00\x00\x00\x00\xd3-appl\xca\x1a\x95\x82%\x7f\x10M8\x99\x13\xd5\xd1\xea\x15\x82\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ndesc\x00\x00\x00\xfc\x00\x00\x00ecprt\x00\x00\x01d\x00\x00\x00#wtpt\x00\x00\x01\x88\x00\x00\x00\x14rXYZ\x00\x00\x01\x9c\x00\x00\x00\x14gXYZ\x00\x00\x01\xb0\x00\x00\x00\x14bXYZ\x00\x00\x01\xc4\x00\x00\x00\x14rTRC\x00\x00\x01\xd8\x00\x00\x00 chad\x00\x00\x01\xf8\x00\x00\x00,bTRC\x00\x00\x01\xd8\x00\x00\x00 gTRC\x00\x00\x01\xd8\x00\x00\x00 desc\x00\x00\x00\x00\x00\x00\x00\x0bDisplay P3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00text\x00\x00\x00\x00Copyright Apple Inc., 2017\x00\x00XYZ \x00\x00\x00\x00\x00\x00\xf3Q\x00\x01\x00\x00\x00\x01\x16\xccXYZ \x00\x00\x00\x00\x00\x00\x83\xdf\x00\x00=\xbf\xff\xff\xff\xbbXYZ \x00\x00\x00\x00\x00\x00J\xbf\x00\x00\xb17\x00\x00\n\xb9XYZ \x00\x00\x00\x00\x00\x00(8\x00\x00\x11\x0b\x00\x00\xc8\xb9para\x00\x00\x00\x00\x00\x03\x00\x00\x00\x02ff\x00\x00\xf2\xa7\x00\x00\rY\x00\x00\x13\xd0\x00\x00\n[sf32\x00\x00\x00\x00\x00\x01\x0cB\x00\x00\x05\xde\xff\xff\xf3&\x00\x00\x07\x93\x00\x00\xfd\x90\xff\xff\xfb\xa2\xff\xff\xfd\xa3\x00\x00\x03\xdc\x00\x00\xc0n' 2054197595280 ```...

Thanks @jcupitt Just find a module that can extract the profile name ImageCms Module — Pillow (PIL Fork) 8.3.1 documentation https://pillow.readthedocs.io/en/stable/reference/ImageCms.html#PIL.ImageCms.getProfileDescription

After search through Google and Github, I try Ask Claude AI https://claude.ai/ Q: use libnest2d to nesting 100 random rectrangle, the nesting result is a circle, but supposed to nest...

Trying PrusaSlicer-2.6.0 seems arrange Items in circle is the default behavior ![image](https://github.com/Ultimaker/pynest2d/assets/73845/e46adb6c-f1ab-4a19-b3bf-04de32694c7c)

and it's the default arrange behavior of Cura 5.4 ![image](https://github.com/Ultimaker/pynest2d/assets/73845/cdb3ee73-9651-4f2c-90ac-463ae26a6864)

Come across a similar question on libnest2d: Strange "starting_point" behavior in NfpPlacer · Issue #52 · tamasmeszaros/libnest2d https://github.com/tamasmeszaros/libnest2d/issues/52