Can't export PNG image on Windows
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
High
|
Patrick Storz | ||
0.92.x |
Fix Released
|
Medium
|
Patrick Storz |
Bug Description
version: Rev 15625 built by myself, and Rev 15615 downloaded from http://
OS: Windows 7 64bit
To export the document to PNG image, when I pressed the "Export" button, Inkscape showed a message box "Could not export to filename XXX.png" and couldn't save the file.
"Export PNG Image" failed, but "Cairo PNG" in "Save a Copy" worked.
I have seen the codes. In sp_png_
fp = Inkscape:
And in fopen_utf8name(), io/sys.cpp, I found these lines, in an #ifndef block and only be executed on Windows.
Glib::ustring how( mode );
how.append("b");
DEBUG_MESSAGE( .... );
fp = g_fopen(utf8name, how.c_str());
So 'how' became "wbb" and g_fopen() returned NULL. If I changed 2nd parameter of fopen_utf8name() to "w", PNG file was saved properly.
But these lines exist in the stable release 0.92.1 too. Not sure why 0.92.1 doesn't have this problem.
And I checked further and found 2 other lines called fopen_utf8name() with mode "rb" or "wb", in sp_file_
description: | updated |
Changed in inkscape: | |
importance: | Undecided → High |
milestone: | none → 0.93 |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
not reproduced on Windows 10, Inkscape 0.92+devel 15626
could you try exporting to a different drive and directory to see if that changes anything?