0

Sure enough, you can open the Export PNG Image dialog, select custom and type the coordinates manually. But that's crazy.

You can also use the Page export, but that means you'll need to re-adjust the page if you're exporting different images from the same .svg file. Also, again, adjusting page to include proper margin and alignment is extra work.

What I usually do is that I create transparent rectangle and I include it in the selection when exporting, then I select Export->Selection.

Those invisible rectangles are easy to lose. Is there another way of exporting set rectangular area (eg. 64x64) without using any helper rectangles or the page size?

  • What are you planning to use this for? There may be alternatives (e.g. some extensions), but if they are useful to you depends on your scenario. – Moini Nov 12 '18 at 15:31
  • @Moini I have a document that has several icons and logos that share a common theme, which is why I keep them in the same document. However, I want to export them individually, with fixed aspect ratio, margins and alignment. That's what I use the invisible rectangles for, to set up the margin and alignment if the exported png image for each icon/logo. – Tomáš Zato Nov 12 '18 at 16:57
  • I see. There is a 'slicer' extension you could use: Extensions > Export > Guillotine. Then there are a couple of extensions for exporting icons or other objects: this one supports adding margins: gitlab.com/su-v/inx-exportobjects/tree/master ; this one can export multiple sizes: github.com/ChristianBecker/inkscape-android-export (there exist a couple of versions of it on github, just search for it). And then you can do batch exports from the PNG export dialog, but they don't add a margin. – Moini Nov 14 '18 at 1:12

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.