Return-Path: X-Original-To: apmail-incubator-ooo-issues-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BF23AC04F for ; Fri, 8 Jun 2012 16:09:50 +0000 (UTC) Received: (qmail 44435 invoked by uid 500); 8 Jun 2012 16:09:50 -0000 Delivered-To: apmail-incubator-ooo-issues-archive@incubator.apache.org Received: (qmail 44408 invoked by uid 500); 8 Jun 2012 16:09:50 -0000 Mailing-List: contact ooo-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-issues@incubator.apache.org Delivered-To: mailing list ooo-issues@incubator.apache.org Received: (qmail 44399 invoked by uid 99); 8 Jun 2012 16:09:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jun 2012 16:09:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.123] (HELO sif.zones.apache.org) (140.211.11.123) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jun 2012 16:09:47 +0000 Received: by sif.zones.apache.org (Postfix, from userid 80) id 1CC904980; Fri, 8 Jun 2012 16:09:26 +0000 (UTC) From: bugzilla@apache.org To: ooo-issues@incubator.apache.org Subject: [Bug 119735] SVG Export: missing implementation for com.sun.star.svg.SVGWriter when using GraphicProvider Date: Fri, 08 Jun 2012 16:09:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: drawing X-Bugzilla-Component: code X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Armin.Le.Grand@me.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ooo-issues@incubator.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://issues.apache.org/ooo/ Auto-Submitted: auto-generated MIME-Version: 1.0 https://issues.apache.org/ooo/show_bug.cgi?id=119735 --- Comment #5 from Armin Le Grand --- ALG: Works as expected, should be used. Also needs not much memory since the BitmapAction in the Metafile also uses the original, ref-counted bitmap. When looking at the export another problem arises: In SVGActionWriter::ImplWriteBmp nearly a minute is used (and assertions thrown as crazy) in the following line: ::rtl::OUString aImageData( (sal_Char*) aOStm.GetData(), aOStm.Tell(), RTL_TEXTENCODING_ASCII_US ); No wonder; the Bitmap, exported as PNG (in aOStm which is a SvMemoryStream) is copied to a rtl::OUString (!) and encoded as RTL_TEXTENCODING_ASCII_US (!). Of course a lot of non-ascii characters will be in an exported PNG. That data is then used to create the Base64 encoded string data (of course locally, how many Base64 encoders might we have?). This can of course be done on the original memory stream data, avoiding this unicode conversion and the needed memory. Testing this... -- You are receiving this mail because: You are the assignee for the bug.