Zim

Can't insert SVG image

Bug #1424829 reported by Ari
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zim
Confirmed
Undecided
Brendan Kidwell

Bug Description

ZIM 0.62
Windows 7

When copying/pasting PNG images that have a transparent background, ZIM shows them with a black background instead, rendering the image useless.

Example:
browse to this page with firefox,

http://en.wikipedia.org/wiki/System_Architecture_Evolution#mediaviewer/File:Evolved_Packet_Core.svg

 - trying to copy/paste this into ZIM will give you a bad-looking PNG (this is the first problem)

 - right click on the image and download the SVG to a temp folder. Then using ZIM's attachment browser in a note, drop the file as an attachment.

 - do: Image > Insert: the dialog lists the images in the folder but not the SVG.

 - in the previous file chooser dialog select "All files" instead of images so that at least you can see the SVG in the folder; select the file and click open

 - you get an error "File type not supported: application/octet-stream"

I note that: I have Inkscape installed in this PC and when I double click on an SVG file it opens automatically.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Both issues do not occur when testing with version 0.65 on linux. Will try to test on windows as well.

Revision history for this message
Ari (ari-reads) wrote : Re: [Bug 1424829] Re: Can't insert SVG image

Just tested on 0.63 and got the same error "File type not supported:
image/svg+xml", on Windows 7

Before upgrading to 0.65, do you know if "Ctrl-home to go to Top" issue has
a workaround? I'm a bit hesitant to update my work laptop (I literally use
zim all the time at work, and I know I have this issue in my home linux
desktop and it's annoying)

On Mon, Feb 22, 2016 at 4:53 PM, Jaap Karssenberg <
<email address hidden>> wrote:

> Both issues do not occur when testing with version 0.65 on linux. Will
> try to test on windows as well.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1424829
>
> Title:
> Can't insert SVG image
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/zim/+bug/1424829/+subscriptions
>

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Verified on windows 7 with zim 0.64

- Copy image from firefox - OK ,white background as expected
- Insert image dialog - OK, svg shown with "images" filter
- Insert image - OK svg work

Looks like your system does not have svg support compiled in. What install do you use for zim / gtk ?

Changed in zim:
status: New → Invalid
Revision history for this message
Ari (ari-reads) wrote :

I'm using the one from Brendan, http://www.glump.net/software/zim-windows
Did you have to install GTK or or SVG libraries separately?

If I download and then double-click on the SVG file (the one I linked to
earlier), internet explorer opens and the svg is displayed.

On Tue, Feb 23, 2016 at 5:33 AM, Jaap Karssenberg <
<email address hidden>> wrote:

> Verified on windows 7 with zim 0.64
>
> - Copy image from firefox - OK ,white background as expected
> - Insert image dialog - OK, svg shown with "images" filter
> - Insert image - OK svg work
>
> Looks like your system does not have svg support compiled in. What
> install do you use for zim / gtk ?
>
> ** Changed in: zim
> Status: New => Invalid
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1424829
>
> Title:
> Can't insert SVG image
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/zim/+bug/1424829/+subscriptions
>

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Yes, Gtk needs it's own SVG library to support SVG, this is not related to
the SVG support in e.g. internet explorer.

Due to installation procedure on windows both zim and inkscape probably
ship their own Gtk runtime environment. It might well be that the one
included in the zim package misses the SVG library.

Regard,s

Jaap

On Tue, Feb 23, 2016 at 3:30 PM, Ari <email address hidden> wrote:

> I'm using the one from Brendan, http://www.glump.net/software/zim-windows
> Did you have to install GTK or or SVG libraries separately?
>
> If I download and then double-click on the SVG file (the one I linked to
> earlier), internet explorer opens and the svg is displayed.
>
> On Tue, Feb 23, 2016 at 5:33 AM, Jaap Karssenberg <
> <email address hidden>> wrote:
>
> > Verified on windows 7 with zim 0.64
> >
> > - Copy image from firefox - OK ,white background as expected
> > - Insert image dialog - OK, svg shown with "images" filter
> > - Insert image - OK svg work
> >
> > Looks like your system does not have svg support compiled in. What
> > install do you use for zim / gtk ?
> >
> > ** Changed in: zim
> > Status: New => Invalid
> >
> > --
> > You received this bug notification because you are subscribed to the bug
> > report.
> > https://bugs.launchpad.net/bugs/1424829
> >
> > Title:
> > Can't insert SVG image
> >
> > To manage notifications about this bug go to:
> > https://bugs.launchpad.net/zim/+bug/1424829/+subscriptions
> >
>
> --
> You received this bug notification because you are subscribed to Zim.
> https://bugs.launchpad.net/bugs/1424829
>
> Title:
> Can't insert SVG image
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/zim/+bug/1424829/+subscriptions
>

Revision history for this message
Ari (ari-reads) wrote :

Thanks. Will ask Brendan on the mailing list

On Wed, Feb 24, 2016 at 5:18 AM, Jaap Karssenberg <
<email address hidden>> wrote:

> Yes, Gtk needs it's own SVG library to support SVG, this is not related to
> the SVG support in e.g. internet explorer.
>
> Due to installation procedure on windows both zim and inkscape probably
> ship their own Gtk runtime environment. It might well be that the one
> included in the zim package misses the SVG library.
>
> Regard,s
>
> Jaap
>
>
> On Tue, Feb 23, 2016 at 3:30 PM, Ari <email address hidden> wrote:
>
> > I'm using the one from Brendan,
> http://www.glump.net/software/zim-windows
> > Did you have to install GTK or or SVG libraries separately?
> >
> > If I download and then double-click on the SVG file (the one I linked to
> > earlier), internet explorer opens and the svg is displayed.
> >
> > On Tue, Feb 23, 2016 at 5:33 AM, Jaap Karssenberg <
> > <email address hidden>> wrote:
> >
> > > Verified on windows 7 with zim 0.64
> > >
> > > - Copy image from firefox - OK ,white background as expected
> > > - Insert image dialog - OK, svg shown with "images" filter
> > > - Insert image - OK svg work
> > >
> > > Looks like your system does not have svg support compiled in. What
> > > install do you use for zim / gtk ?
> > >
> > > ** Changed in: zim
> > > Status: New => Invalid
> > >
> > > --
> > > You received this bug notification because you are subscribed to the
> bug
> > > report.
> > > https://bugs.launchpad.net/bugs/1424829
> > >
> > > Title:
> > > Can't insert SVG image
> > >
> > > To manage notifications about this bug go to:
> > > https://bugs.launchpad.net/zim/+bug/1424829/+subscriptions
> > >
> >
> > --
> > You received this bug notification because you are subscribed to Zim.
> > https://bugs.launchpad.net/bugs/1424829
> >
> > Title:
> > Can't insert SVG image
> >
> > To manage notifications about this bug go to:
> > https://bugs.launchpad.net/zim/+bug/1424829/+subscriptions
> >
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1424829
>
> Title:
> Can't insert SVG image
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/zim/+bug/1424829/+subscriptions
>

Revision history for this message
Brendan Kidwell (bkidwell) wrote :

I'm claiming ownership of this bug; if GTK 2.x for Windows does support SVG I should be able to fix the problem in the packaging.

Changed in zim:
assignee: nobody → Brendan Kidwell (bkidwell)
status: Invalid → Confirmed
Revision history for this message
Andreas Wehler (andreas-wehler) wrote :

Hi.
Some mate and me are observing the same problem: svg files will not be rendered under Windows 7 and Windows 8 with zim 0.65, we have installed from here:

Desktop version;
http://www.glump.net/software/zim-windows
http://www.glump.net/files/release/zim-windows/Zim-setup-0.65_2016-01-18.exe

Thanks,

    Andreas

Revision history for this message
Andreas Wehler (andreas-wehler) wrote :

Hi.
Add on:

I just tried the standalone portable zim version 0.65 and the problem exists there also:

Desktop version;
http://www.glump.net/software/zim-windows
http://www.glump.net/files/release/zim-windows/ZimDesktopWikiPortable_0.65.paf.exe

  Andreas

Revision history for this message
Andreas Wehler (andreas-wehler) wrote :

Hi.

In the hope that Gtk+Svg dll from inkscape could help I've also installed inkscape 0.91 on Windows 7 (after zim), but with no success. svg files are not rendered.

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.