ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Error in loading SVG file (13.5)

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
perauto Posted - Sep 03 2024 : 04:19:04
Loading the svg file in attachment gives error with ImageEn 13.5 and Delphi 11.3.

9   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 07 2024 : 00:33:02
Hmmm, using ImportFromFileSVG() works fine for me in the latest beta.

Can you try testing it in a new empty project (e.g. with only a TImageEnView and a button).



Nigel
Xequte Software
www.imageen.com
perauto Posted - Sep 06 2024 : 08:25:08
I need to display the svg, and change fill color to some nodes (layers). To display svg imagemagik is fine but i cannot edit the layers/nodes.
xequte Posted - Sep 05 2024 : 16:13:47
Hi

You are importing layers above, rather than rendering (much more memory intensive process). Can you tell me more about your usage here, so I can recommend the best solution (e.g. layer editing and exporting, display of SVG, etc)?



Nigel
Xequte Software
www.imageen.com
perauto Posted - Sep 05 2024 : 10:49:51
with ImageMagik the svg is good, but the image is raster not vectorial!
But importing the svg with the previus code result in an incomprensible image
perauto Posted - Sep 05 2024 : 02:49:27
I have downloaded the ImageMagick Plug-In and unzipped, copied from Demo EXE the file ImageMagik in Binaries 32bit\Core_Files and executed; but i have "32 bit plugin not found".
I have made the same with Binary 64bit with the same message.
What i'm mistaking?
perauto Posted - Sep 05 2024 : 02:36:58
// Prevent downloading of web based files
IEGlobalSettings().SVGParams.AllowWebDownload := False;

// Allow more complex SVG files to be imported (may overwhelm application)
IEGlobalSettings().SVGParams.MaxTagCount   := 15000;
IEGlobalSettings().SVGParams.MaxPointCount := 10000;
IEGlobalSettings().SVGParams.MaxLayerSize  := 20000;

ImageEnView1.IO.ImportFromFileSVG( 'C:\SORGENTI\TriaTel\ViewSVG\Win32\Debug\0050718.svg' );

xequte Posted - Sep 04 2024 : 16:19:22
Hi

It definitely won't be quick, our native code is intended for importing rather than rendering and it not significantly optimized at this time.

If you are looking for rendering you are better to use the ImageMagick plug-in from our download page (or turn on Skia in Delphi 12).

However it should still display correctly. Can you show me your loading code?



Nigel
Xequte Software
www.imageen.com
perauto Posted - Sep 04 2024 : 06:27:46
with the latest beta it loads the svg without problems, but it doesn't draw it well. You can't recognize the drawing and it's very slow.




xequte Posted - Sep 03 2024 : 15:16:23
Hi

Please email me for the latest beta which has many SVG improvements. It loads correctly with the native SVG loading, but there are too many tags to import it all as layers.

You can try increasing the maximum tag count:

http://www.imageen.com/help/TIEGlobalSettings.SVGParams.html

Nigel
Xequte Software
www.imageen.com