Hi, I have a few SVGs I drew for creating a cursor theme stored in a single folder. To build the cursor theme, these images need to be PNGs of various sizes ( Page Export of 256x256 - 32x32 ). I drew them all using a 128x128 px canvas. Is there any method using which I can export each of the SVG as Page Export from 256x - 32x?
The requirement is actually to use a single cursor file in various sizes. A single cursor file will have layers ranging from 256 x- 32x px for each SVG/item.
It sounds like a great option. Thanks for the effort. Had no idea we can do this.
The reason I am trying to find a batch process is the size needs to be experimented a lot. ie, the cursor could end up too big or too small. In that case, I need to make the pointer big or small inside the canvas. And then export it to sizes from 32 to 256 (in this case). That is why I am trying to find a sed command or something that can work on a single canvas and give multiple size PNG.
Hi, I have a few SVGs I drew for creating a cursor theme stored in a single folder. To build the cursor theme, these images need to be PNGs of various sizes ( Page Export of 256x256 - 32x32 ). I drew them all using a 128x128 px canvas. Is there any method using which I can export each of the SVG as Page Export from 256x - 32x?
The requirement is actually to use a single cursor file in various sizes. A single cursor file will have layers ranging from 256 x- 32x px for each SVG/item.
Any help would be great. Thanks.
Maybe you have seen this: https://wiki.inkscape.org/wiki/index.php?title=Release_notes/1.2#Batch_Export
Thanks @TylerDurden
Maybe I missed something. I am ok with adding all of them into a single SVG file. But how to get them Page exported in different canvas sizes?
Say I have pointer, busy and working cursors, each of them are meant to be in 32, 48, 64, 128 and 256 canvas, mostly centred.
Maybe this:
It sounds like a great option. Thanks for the effort. Had no idea we can do this.
The reason I am trying to find a batch process is the size needs to be experimented a lot. ie, the cursor could end up too big or too small. In that case, I need to make the pointer big or small inside the canvas. And then export it to sizes from 32 to 256 (in this case). That is why I am trying to find a sed command or something that can work on a single canvas and give multiple size PNG.
Give this a go:
Requires Inkscape 1.2+
Will throw a harmless error msg in Windows - might fix that later.
https://gitlab.com/inklinea/icon-export
Thanks @inklinea
You are awesome 👑
Just tried on Ubuntu 22.04. Works great.
Exports to 16x16 to 256x356 and .ico if we choose it. Opened .ico in GIMP, and it's working great.
If I may, it only exports the selection, will it be possible to export the canvas? Thanks
Attaching the output folder and base drawing