Ive been trying to export the layers as a series of png files, but so far not luck at all.
I tried the Jesse save as thing but it has errors and doesent work, looks like some kind of permissions problem as it creates the zip file, but then has an error trying to access one of teh layers???
I also tried the export layers extension, but it has depreciated function calls in the PY file, I dont program in python so have no idea what this needs to be changed to.
I also tried lots of googling and you tube before posting this, I cant find any way to get the layers to export as a png. I have latest version of inkscape (just installed it a few days ago).
Personally I cant believe that such a function is not standard???
I did try export PNG image with batch, but it just exports all the objects as single files, the objects are clipped weird and sometimes there are multiple objects on layers, so not useful. I did try this as well
It has multiple errors about code being out of date, I program in 'C' (long time) so I can read and understand the py file, it does what I want, but I have no experience in python to actually modify the file correctly.
The Jesse save as option also seems to do it, but as mentioned above, it seems to have some sort of permissions error or something, I tried changing various permissions so that it could create the file that it was failing on, but no luck.
Exporting layers as seperate file files as standard == gimp and photoshop. not used other packages, but it just seems like an obvious export option to me?
I have tried Extensions->Images->Extract Image... but it dosent seem to do anything. tried various file paths. I can export a single layer as a PNG using the file->export to PNG option, but that would be very tedious to have to do that every time because I would have to export about 15 layers to individual files every time :(. I am extracting images for Spine2d. I used to do it from photoshop or gimp, which was just one click and all the layers were exported as individual files named the same as the layer name. Inkscape however is a far better program for creating the art, now I just have to find a viable option for getting the art out of inkscape.
I´m not sure why you're referring to PS or GIMP because once you have just raster images in Inkscape (BTW you can generate PNGs from your vector art via Edit->Make a Bitmap Copy) you can export these PNGs (via Extract Image) as described above. Look up the root of your HD-hierarchy or do a search for recently created files. It works here.
Maybe you lack the understanding of vector vs raster graphics. Let me know.
couldn't locate any file recently created by that option... never mind, it dosen't appear that inkscape can perform this task. I will have to investigate other software. Thanks for trying to help.
As you may know, many Inkscape extensions are generously contributed by independent developers, who may (or may not) have the opportunity to maintain the extensions.
I have contacted the extension's author with a request to have the extension updated.
Ill keep my fingers crossed that this feature is fixed as I really like inkscape. The code to do this was all in that export py file, I read through it and tweaked it, but my knowledge of python is to limited to understand all of the errors it had. Im sure someone who is familiar with python could probably fix it in little time. If you could, please post here if a viable solution comes up, I will keep an eye on it.
Ive been trying to export the layers as a series of png files, but so far not luck at all.
I tried the Jesse save as thing but it has errors and doesent work, looks like some kind of permissions problem as it creates the zip file, but then has an error trying to access one of teh layers???
I also tried the export layers extension, but it has depreciated function calls in the PY file, I dont program in python so have no idea what this needs to be changed to.
I also tried lots of googling and you tube before posting this, I cant find any way to get the layers to export as a png. I have latest version of inkscape (just installed it a few days ago).
Personally I cant believe that such a function is not standard???
Have you tried Export PNG Image-> with checked "Batch export of x selected objects"?
Where have you seen this before?
I did try export PNG image with batch, but it just exports all the objects as single files, the objects are clipped weird and sometimes there are multiple objects on layers, so not useful. I did try this as well
Inkscape-export-layers extension - Inkspace the Inkscape Gallery | Inkscape
It has multiple errors about code being out of date, I program in 'C' (long time) so I can read and understand the py file, it does what I want, but I have no experience in python to actually modify the file correctly.
The Jesse save as option also seems to do it, but as mentioned above, it seems to have some sort of permissions error or something, I tried changing various permissions so that it could create the file that it was failing on, but no luck.
Exporting layers as seperate file files as standard == gimp and photoshop. not used other packages, but it just seems like an obvious export option to me?
As for GIMP/PS as raster image editors Inkscape can extract images as per layers via: Extensions->Images->Extract Image...
If that's what you're after...
PS: the extension is probably outdated and just for Linux.
I have tried Extensions->Images->Extract Image... but it dosent seem to do anything. tried various file paths. I can export a single layer as a PNG using the file->export to PNG option, but that would be very tedious to have to do that every time because I would have to export about 15 layers to individual files every time :(. I am extracting images for Spine2d. I used to do it from photoshop or gimp, which was just one click and all the layers were exported as individual files named the same as the layer name. Inkscape however is a far better program for creating the art, now I just have to find a viable option for getting the art out of inkscape.
I´m not sure why you're referring to PS or GIMP because once you have just raster images in Inkscape (BTW you can generate PNGs from your vector art via Edit->Make a Bitmap Copy) you can export these PNGs (via Extract Image) as described above. Look up the root of your HD-hierarchy or do a search for recently created files. It works here.
Maybe you lack the understanding of vector vs raster graphics. Let me know.
couldn't locate any file recently created by that option... never mind, it dosen't appear that inkscape can perform this task. I will have to investigate other software. Thanks for trying to help.
Please let us know what you find.
The extension still works fine in Inkscape v 0.92.x, if that helps. (It can also be tweaked for greater speed.)
Speaking of versions... I'll assume that the OP is using the latest, since it wasn't mentioned.
As you may know, many Inkscape extensions are generously contributed by independent developers, who may (or may not) have the opportunity to maintain the extensions.
I have contacted the extension's author with a request to have the extension updated.
I have at least one SVG editor which exports svg-elements to PNG/JPG/SVG/PDF layer based in a batch manner:
Ill keep my fingers crossed that this feature is fixed as I really like inkscape. The code to do this was all in that export py file, I read through it and tweaked it, but my knowledge of python is to limited to understand all of the errors it had. Im sure someone who is familiar with python could probably fix it in little time. If you could, please post here if a viable solution comes up, I will keep an eye on it.
If anyone is using linux ( I'm using Lubuntu 20.04 ).
This bash script should do what you want. ( chmod +x required before running )
readarray array <<< cut -d ' ' -f 3 <<< $(inkscape --actions="select-all:layers;select-list;" $1)
for i in "${array[@]}"
do
echo $(cut -d ' ' -f 1 <<< $i)
myLayer=$(cut -d ' ' -f 1 <<< $i)
$(inkscape --actions="export-id:$myLayer;export-filename:$myLayer.png;export-do;" $1)
done
Give it a go with the test file attached.
./layers2png.sh ./layer_test.svg