Floor have huge size in svg (tens of Mb)

This topic has been viewed 10711 times and has 21 replies
Thread status: Active
Still a problem with your graphic card? [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
User avatar
Daniels118
Posts: 503
Joined: Wed Nov 17, 2021 9:04 pm
Country: Italy

Re: Floor have huge size in svg (tens of Mb)

Post by Daniels118 »

Hi Stephen,
I've released version 1.1 which is definitely faster, it can export your test file in about 1 second with 1.3 MB of size.

The problem was not the compression algorithm, it was the way the PNG encoder from FreeHEP reads the pixels from the source image (a very inefficient way), so I have replaced the critical code with a most efficient one.

I've aso changed the default compression level from 9 to 5, although it doesn't much difference.

In regards to the repeating pattern you're right, unfortunately fixing it would require a huge work and I don't think is worth the effort.
sjb007
Posts: 300
Joined: Tue May 18, 2021 1:49 pm

Re: Floor have huge size in svg (tens of Mb)

Post by sjb007 »

Sweet! My CPU thanks you [:D]
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest