writer icon indicating copy to clipboard operation
writer copied to clipboard

AutoCAD ignore inserted image

Open menshykovAS opened this issue 1 year ago • 1 comments

Hello, i have a problem when i use : let imgRef = this.dxf.addImage('map.png', 'map.png',{x:10,y:10,z:0},800,800,1,0) I also try: let imgRef = this.dxf.addImage('.\\map.png', 'map.png',{x:10,y:10,z:0},800,800,1,0) But when i try to open file in Autodesk TrueView get this in autodesk log: image Please help

menshykovAS avatar May 28 '24 06:05 menshykovAS

Try with classVersion: 0, it worked for me.

dxf.addImage('map.png', 'map', { x: 10, y: 10, z: 0 }, 800, 800, 1, 0, {
   classVersion: 0,
})

I don't know what it means but I found it in a dxf file with a working image and it turned out that adding it to the file exported with this library fixed the image.

alessiocancian avatar Jul 02 '24 13:07 alessiocancian