Inkscape does not remember "Page" area in PNG export, always fall back to "Drawing"

Bug #1642154 reported by Nutchanon Wetchasit
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Committed
Undecided
Unassigned

Bug Description

I have run into some quirk in Export PNG Image panel in current devel
and 0.91 version of Inkscape: the dialog will always "forget" that last time
I have set it to export the whole page, and insisted that I export the current
drawing area instead.

This does not happen if I forced it to use "Custom" export area and enter
coordinates manually; or simply refrain from touching any object in the SVG
and just start the export panel again.

The problem is kind of minor, but is really annoying as I always export PNG
with the whole-page area (save for very rare circumstances). This bug also
bit me several times testing Inkscape 0.92 prereleases.

Exact steps to reproduce:
- Start Inkscape.
- Open some random SVG file that is larger than 2x2 px
  and contains some objects.
- Go to File > Export PNG Image.
- Set export area to "Page", and enter 200 DPI resolution.
- Export image.
- Close Export PNG Image panel.
- Select some object in the drawing.
- Press ESC key to deselect all.
- Go to File > Export PNG Image.
- **You will see that export area is set to "Drawing".**
  Though export resolution is still remain as 200 DPI.
- Select export area "Custom".
- Enter custom area:
  - x0: 0
  - x1: 1
  - y0: 0
  - y1: 1
- Export image (and answer "Replace" if the confirmation dialog appears).
- Close Export PNG Image panel.
- Select some object in the drawing.
- Press ESC key to deselect all.
- Go to File > Export PNG Image.
- **You will see that export area remained at "Custom"**,
  and custom area parameters are still the same as previously entered.

If user didn't select any object between each export panel run,
the "Page" export area will be remembered correctly.

This bug affects stable Inkscape 0.91 and current Inkscape 0.92pre3,
but does not affect Inkscape 0.48; so it might be considered a regression.

Inkscape: 0.92pre3 r15195 (binary 7-Zip release)
Inkscape: 0.91 r13725 (portable)
Inkscape: 0.48.2 r9819
System: Microsoft Windows XP SP3

jazzynico (jazzynico)
tags: added: bitmap exporting preferences
removed: export
Revision history for this message
Altreus (altreus) wrote :

May I add that it appears to default to "Drawing", which in my opinion defeats the purpose of having a page in the first place.

If the user has a page border visible then this sort of implies they're using it as a bounding box for their work, which is exactly how I use it all the time. The "Drawing" export area is basically never useful to me, although sometimes it happens to be equivalent to "Page".

Revision history for this message
Nathan Lee (nathan.lee) wrote :

Closing as fixed by https://gitlab.com/inkscape/inkscape/-/merge_requests/1587 for the upcoming 1.1-release

Changed in inkscape:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.