Inkscape always opens new blank doc at 35% zoom - why?

This is NOT a support forum. You are welcome to discuss software issues here, but all issues should be reported on Launchpad if you want them fixed.
User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Inkscape always opens new blank doc at 35% zoom - why?

Postby brynn » Thu Mar 11, 2010 6:52 am

Hi Friends,
This is something that has annoyed me since I opened Inkscape for the very first time. New blank documents always open at 35% zoom. I don't know why in the world a new blank doc should be anything but 100% for the default. I assume it happens like this because 35% allows the whole image border to fit in one window. But I rarely...no, I never have, and never would expect to try and start creating an image at 35%. Now I wouldn't mind if saved docs opened this way, however it seems that saved docs open at whatever was the zoom when last saved.

Is this the same for everyone? Or is it some byproduct of my screen resolution (800 x 600) or something else about my system (Windows XP Home sp3) or other?

Or is there some either system setting or Inkscape setting that I can change? I've tried changing the Window Geometry setting in Inkscape Preferences, even though I don't think window geometry should affect the new document zoom or size.

Would this solution work to get 100% zoom on new docs? I'm thinking not, since the zoom isn't controlled by Doc Prop.
https://answers.launchpad.net/inkscape/+question/44047

I haven't found any requests for a change in this respect, at Launchpad (although my searches aren't often successful there). But I may submit one, if there isn't a solution.

Thanks for your help :D

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Inkscape always opens new blank doc at 35% zoom - why?

Postby microUgly » Thu Mar 11, 2010 7:47 am

In the Inkscape Preferences, under Windows, there's a setting that controls how the window size and geometry is restored. By default, Inkscape saves this information into each document and then loads it from the document. So your zoom factor is actually stored in the default template. So all you need to do change the zoom then save the template again.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Inkscape always opens new blank doc at 35% zoom - why?

Postby brynn » Thu Mar 11, 2010 12:28 pm

Hhm?...I tried that....but I've been having some trouble with version 0.47 Inkscape Prefs where I have to restart before a change I've made takes effect. I started a topic about it, because a couple of members that I've helped with their issues had noticed the same thing. But the topic didn't result in a solution, or even enough support that I felt good about reporting at Launchpad.

I'll do some more tinkering and see if I can get it to stick.
Thanks micro :D

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Inkscape always opens new blank doc at 35% zoom - why?

Postby ~suv » Thu Mar 11, 2010 12:31 pm

Initial zoom factor (and the center point of the zoomed document) is stored within each SVG file, not in the global preferences:

The default template for example has these values:

Code: Select all

  <sodipodi:namedview
     id="base"
     pagecolor="#ffffff"
     bordercolor="#666666"
     borderopacity="1.0"
     inkscape:pageopacity="0.0"
     inkscape:pageshadow="2"
     inkscape:zoom="0.35"
     inkscape:cx="375"
     inkscape:cy="520"
     inkscape:document-units="px"
     inkscape:current-layer="layer1" />


If you want your default new document to use a different initial zoom level, you can either
  • edit the default template stored system-wide as 'Inkscape\share\templates\default.svg' (in the install directory of inkscape), or
  • create your personal default template with custom settings and save it as 'default.svg' in '%APPDATA%\Inkscape\templates\' ('templates' is a sub-folder in the Inkscape profile folder - the location of 'preferences-xml')
    ('%APPDATA%' is 'C:\Documents and Settings\[USERNAME]\Application Data' on XP)

somewhat related request on Launchpad (allow custom values based on default template):
Bug #314569 “File->New->Custom
Blueprint “'New from template' dialog
Blueprint specification "NewFromTemplateSpec"

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Inkscape always opens new blank doc at 35% zoom - why?

Postby brynn » Thu Mar 11, 2010 1:00 pm

Wow, thanks ~suv.
I will dive into that tomorrow (getting late here).
Thanks again :D


Return to “Discuss Software Issues”