I always want to open inkscape with a checkerboard background but when I open different images it gets reverted to default white eye-straining background. Is there a way to change its default settings?
As I said, you need to make either a custom template, which uses the checkboard background, or you need to make a custom default document, which uses the checkerboard. Then you can always open that template or custom default doc, and it will always have the checkerboard.
If you're talking about opening existing files (rather than a new blank file) it's because that file does not have a checkboard background. There is no way to collect all your exising SVG files and tell them all to have a checkerboard background.
There's no way to fix existing files, except one by one. At least, not that I know of. Maybe someone else knows some kind of trick?
If you're talking about opening existing files (rather than a new blank file) it's because that file does not have a checkboard background. There is no way to collect all your exising SVG files and tell them all to have a checkerboard background.
Yes, that is what I'm talking about. I hope there's a way to change the setting by default.
You could probably use a script (and/or Inkscape's commandline) and do some kind of batch operation on all the files. But I don't know anything about writing scripts.
The "<sodipodi:namedview>" element in the SVG tree is what you want to be looking at. It's not that hard to modify "by hand" (or a simple script or search&replace operation) once you know what you're looking for.
I always want to open inkscape with a checkerboard background but when I open different images it gets reverted to default white eye-straining background. Is there a way to change its default settings?
Haha! To me, the checkerboard background is eye straining!
You can make either a custom template, or a custom default document. Here's a good tutorial: https://libregraphicsworld.org/blog/entry/using-templates-in-inkscape
But we're here if you have questions.
It gets reverted back when I open svg with inkscape.
As I said, you need to make either a custom template, which uses the checkboard background, or you need to make a custom default document, which uses the checkerboard. Then you can always open that template or custom default doc, and it will always have the checkerboard.
If you're talking about opening existing files (rather than a new blank file) it's because that file does not have a checkboard background. There is no way to collect all your exising SVG files and tell them all to have a checkerboard background.
There's no way to fix existing files, except one by one. At least, not that I know of. Maybe someone else knows some kind of trick?
Yes, that is what I'm talking about. I hope there's a way to change the setting by default.
No way that I know of.
You could probably use a script (and/or Inkscape's commandline) and do some kind of batch operation on all the files. But I don't know anything about writing scripts.
Don't we have any available scripts that can do that already?
The "<sodipodi:namedview>" element in the SVG tree is what you want to be looking at. It's not that hard to modify "by hand" (or a simple script or search&replace operation) once you know what you're looking for.
Is python the scripting language of inkscape?
The primary, yes, although in principle you can also use perl, ruby, or anything you can do or call from shell, see also https://wiki.inkscape.org/wiki/index.php/Extension_Interpreters
Aah, yes. I didn't think of writing an extension for this. But definitely is possible.