Joined: Apr 16, 2014
Post Count: 22
Status:
Offline
SVG Export Setup (pixel width, height)
I am working with 4.2 source, and I need a way to set the pixel width and height to a static size, like 500px by 500px when my SVG is exported. I have been opening the SVG manually and changing (width="500px" height="500px") but it is becoming impossibly time consuming with a large batch. It would be much simpler if I could just set the pixel dimensions into the export operation. If any developers could help with a location, and possible method to achieve this, it would be greatly appreciated. Spent an hour or so digging through the thousands of lines of code, realizing without a point in the right direction I could lose days at this. Thanks in advance.
Joined: May 12, 2013
Post Count: 1545
Status:
Offline
Re: SVG Export Setup (pixel width, height)
I agree that it could be useful to adjust scaling and other parameters in the SVG export. If someone is looking into this, please note me for a wish for an option to export without the embedded images (smaller files, easier to embed in html).
ok
PS I guess an editor that can search-replace through many files would not really solve your problem?
Joined: Apr 16, 2014
Post Count: 22
Status:
Offline
Re: SVG Export Setup (pixel width, height)
I guess what I am really looking for overall is output control by any means necessary. A png export feature for the plan view would be nice, and so would being able to set pixel dimensions on SVG output. If I have to make a couple of builds of SweetHome with the common output settings I use, that would not be a problem. I realize there are other programs to convert files as needed, and I use them, but I really don't want to. I would rather just stay right in SweetHome producing everything I need from it without all the extra time and hassle.
PS.. Not sure it would help too much. What are you working on?
Joined: May 12, 2013
Post Count: 1545
Status:
Offline
Re: SVG Export Setup (pixel width, height)
Not working on anything - just using a good text editor for batch editing. But I agree it is not a perfect solution.
As for PNG export - you are aware that you can select-copy plan items and paste as image to other software? In addition to screenshot, that is why I am not too concerned with SVG export.
Joined: Apr 16, 2014
Post Count: 22
Status:
Offline
Re: SVG Export Setup (pixel width, height)
Dug this project up again. It looks like Sweethome is using freehep graphics library. If so, it seems like the easiest way to get my desired image would be if the freehep export dialog was displayed. Might not be so hard. Any thoughts on this?