diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2018-11-19 23:01:17 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2018-11-19 23:01:17 +0000 |
| commit | 37c3590e5665344578d8053e420b5de14e586b0c (patch) | |
| tree | e09459964394ee8018e0ff06179ecb9c0b56ee1e /src/io/file-export-cmd.cpp | |
| parent | Allow any valid Verb to be used in "--actions". (diff) | |
| download | inkscape-37c3590e5665344578d8053e420b5de14e586b0c.tar.gz inkscape-37c3590e5665344578d8053e420b5de14e586b0c.zip | |
Send background color/dpi info to std::cerr to allow piping PNG export to file.
Diffstat (limited to '')
| -rw-r--r-- | src/io/file-export-cmd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/io/file-export-cmd.cpp b/src/io/file-export-cmd.cpp index 459b1377d..46e758e88 100644 --- a/src/io/file-export-cmd.cpp +++ b/src/io/file-export-cmd.cpp @@ -343,7 +343,7 @@ InkFileExportCmd::do_export_png(SPDocument *doc, std::string filename_in) items.push_back(SP_ITEM(o)); if (export_id_only) { - std::cout << "Exporting only object with id=\"" + std::cerr << "Exporting only object with id=\"" << object << "\"; all other objects hidden." << std::endl; } @@ -517,8 +517,8 @@ InkFileExportCmd::do_export_png(SPDocument *doc, std::string filename_in) } // Do we really need to print this? - std::cout << "Background RRGGBBAA: " << std::hex << bgcolor << std::dec << std::endl; - std::cout << "Area " + std::cerr << "Background RRGGBBAA: " << std::hex << bgcolor << std::dec << std::endl; + std::cerr << "Area " << area[Geom::X][0] << ":" << area[Geom::Y][0] << ":" << area[Geom::X][1] << ":" << area[Geom::Y][1] << " exported to " << width << " x " << height << " pixels (" << dpi << " dpi)" << std::endl; |
