Re: SVG Images Showing Up with Black Backgrounds

2014-08-11 Thread Jane Shevtsov
On Sun, Aug 10, 2014 at 2:15 PM, Paul A. Rubin ru...@msu.edu wrote:

 Jane Shevtsov jane.eco at gmail.com writes:

  I am running LyX 2.1.1 on Ubuntu 14.04 and am running into a problem with
 SVG images. These images show up fine in LyX itself, but when I export a
 PDF, the images have a black background instead of a white one, which makes
 them illegible. (The same images worked fine on earlier versions of LyX and
 Ubuntu.) Can someone help me figure out what's going on?

 1. How are you generating the PDFs (pdflatex, dvipdfm, ...)?


I'm using pdflatex.


 2. How are you configured to convert SVGs? Please check Tools  Preferences
 ...  File Handling  Converters, look for the converter from SVG to your
 output format (e.g., SVG - PDF (graphics) or SVG - PNG), and report
 the contents of the Converter and Extra flags boxes. If you're not sure
 which one you're using, please report them all.


Here's what I found:
SVG - EPS
Converter: inkscape --file=$$i --export-area-drawing --without-gui
--export-eps=$$o
No extra flags

SVG - PDF (graphics)
Converter: inkscape --file=$$i --export-area-drawing --without-gui
--export-pdf=$$o
No extra flags

SVG - PNG
Converter: inkscape --without-gui --file=$$i --export-png=$$o
No extra flags

Thanks,
Jane


Re: SVG Images Showing Up with Black Backgrounds

2014-08-11 Thread Paul A. Rubin


On 08/11/2014 02:45 AM, Jane Shevtsov wrote:
On Sun, Aug 10, 2014 at 2:15 PM, Paul A. Rubin ru...@msu.edu 
mailto:ru...@msu.edu wrote:



1. How are you generating the PDFs (pdflatex, dvipdfm, ...)?


I'm using pdflatex.

2. How are you configured to convert SVGs? Please check Tools 
Preferences
...  File Handling  Converters, look for the converter from SVG
to your
output format (e.g., SVG - PDF (graphics) or SVG - PNG), and
report
the contents of the Converter and Extra flags boxes. If you're
not sure
which one you're using, please report them all.


Here's what I found:
SVG - EPS
Converter: inkscape --file=$$i --export-area-drawing --without-gui 
--export-eps=$$o

No extra flags

SVG - PDF (graphics)
Converter: inkscape --file=$$i --export-area-drawing --without-gui 
--export-pdf=$$o

No extra flags

SVG - PNG
Converter: inkscape --without-gui --file=$$i --export-png=$$o
No extra flags

Those settings seem to work fine for me (using Inkscape 0.48.4). I don't 
know what's going on, but here are some options:


1. You could try adding --export-background-opacity=0 to the converter 
lines. That should not be necessary, but then you should not be seeing 
black backgrounds.


2. You could install librsvg2-bin (and any dependencies) from 
Canonical's repos, and use that instead of Inkscape. Once it is 
installed, I believe that reconfiguring LyX will cause LyX to choose it 
in preference to Inkscape. If not, I can supply the converter lines.


3. You could post one of the images causing problems to the list, in 
case it's something peculiar to those images. (You might want to run the 
conversion commands above against one of the images in a terminal and 
see if one of them coughs up a result with a black background.)


Paul



Re: SVG Images Showing Up with Black Backgrounds

2014-08-11 Thread Rich Shepard

On Mon, 11 Aug 2014, Paul A. Rubin wrote:

Those settings seem to work fine for me (using Inkscape 0.48.4). I don't know 
what's going on, but here are some options:


  Excuse me for joining this thread late, but I have a comment that might be
pertinent. I have found that some .pdf files display a black box where
images should appear when I use xpdf, but not when I use mupdf, epdfview, or
acroread.

  The the view the same regardless of pdf viewer? If so, then my comment is
not useful.

Rich



Re: SVG Images Showing Up with Black Backgrounds

2014-08-11 Thread Jane Shevtsov
On Sun, Aug 10, 2014 at 2:15 PM, Paul A. Rubin ru...@msu.edu wrote:

 Jane Shevtsov jane.eco at gmail.com writes:

  I am running LyX 2.1.1 on Ubuntu 14.04 and am running into a problem with
 SVG images. These images show up fine in LyX itself, but when I export a
 PDF, the images have a black background instead of a white one, which makes
 them illegible. (The same images worked fine on earlier versions of LyX and
 Ubuntu.) Can someone help me figure out what's going on?

 1. How are you generating the PDFs (pdflatex, dvipdfm, ...)?


I'm using pdflatex.


 2. How are you configured to convert SVGs? Please check Tools  Preferences
 ...  File Handling  Converters, look for the converter from SVG to your
 output format (e.g., SVG - PDF (graphics) or SVG - PNG), and report
 the contents of the Converter and Extra flags boxes. If you're not sure
 which one you're using, please report them all.


Here's what I found:
SVG - EPS
Converter: inkscape --file=$$i --export-area-drawing --without-gui
--export-eps=$$o
No extra flags

SVG - PDF (graphics)
Converter: inkscape --file=$$i --export-area-drawing --without-gui
--export-pdf=$$o
No extra flags

SVG - PNG
Converter: inkscape --without-gui --file=$$i --export-png=$$o
No extra flags

Thanks,
Jane


Re: SVG Images Showing Up with Black Backgrounds

2014-08-11 Thread Paul A. Rubin


On 08/11/2014 02:45 AM, Jane Shevtsov wrote:
On Sun, Aug 10, 2014 at 2:15 PM, Paul A. Rubin ru...@msu.edu 
mailto:ru...@msu.edu wrote:



1. How are you generating the PDFs (pdflatex, dvipdfm, ...)?


I'm using pdflatex.

2. How are you configured to convert SVGs? Please check Tools 
Preferences
...  File Handling  Converters, look for the converter from SVG
to your
output format (e.g., SVG - PDF (graphics) or SVG - PNG), and
report
the contents of the Converter and Extra flags boxes. If you're
not sure
which one you're using, please report them all.


Here's what I found:
SVG - EPS
Converter: inkscape --file=$$i --export-area-drawing --without-gui 
--export-eps=$$o

No extra flags

SVG - PDF (graphics)
Converter: inkscape --file=$$i --export-area-drawing --without-gui 
--export-pdf=$$o

No extra flags

SVG - PNG
Converter: inkscape --without-gui --file=$$i --export-png=$$o
No extra flags

Those settings seem to work fine for me (using Inkscape 0.48.4). I don't 
know what's going on, but here are some options:


1. You could try adding --export-background-opacity=0 to the converter 
lines. That should not be necessary, but then you should not be seeing 
black backgrounds.


2. You could install librsvg2-bin (and any dependencies) from 
Canonical's repos, and use that instead of Inkscape. Once it is 
installed, I believe that reconfiguring LyX will cause LyX to choose it 
in preference to Inkscape. If not, I can supply the converter lines.


3. You could post one of the images causing problems to the list, in 
case it's something peculiar to those images. (You might want to run the 
conversion commands above against one of the images in a terminal and 
see if one of them coughs up a result with a black background.)


Paul



Re: SVG Images Showing Up with Black Backgrounds

2014-08-11 Thread Rich Shepard

On Mon, 11 Aug 2014, Paul A. Rubin wrote:

Those settings seem to work fine for me (using Inkscape 0.48.4). I don't know 
what's going on, but here are some options:


  Excuse me for joining this thread late, but I have a comment that might be
pertinent. I have found that some .pdf files display a black box where
images should appear when I use xpdf, but not when I use mupdf, epdfview, or
acroread.

  The the view the same regardless of pdf viewer? If so, then my comment is
not useful.

Rich



Re: SVG Images Showing Up with Black Backgrounds

2014-08-11 Thread Jane Shevtsov
On Sun, Aug 10, 2014 at 2:15 PM, Paul A. Rubin  wrote:

> Jane Shevtsov  gmail.com> writes:
>
> > I am running LyX 2.1.1 on Ubuntu 14.04 and am running into a problem with
> SVG images. These images show up fine in LyX itself, but when I export a
> PDF, the images have a black background instead of a white one, which makes
> them illegible. (The same images worked fine on earlier versions of LyX and
> Ubuntu.) Can someone help me figure out what's going on?
>
> 1. How are you generating the PDFs (pdflatex, dvipdfm, ...)?
>

I'm using pdflatex.


> 2. How are you configured to convert SVGs? Please check Tools > Preferences
> ... > File Handling > Converters, look for the converter from SVG to your
> output format (e.g., "SVG -> PDF (graphics)" or "SVG -> PNG"), and report
> the contents of the "Converter" and "Extra flags" boxes. If you're not sure
> which one you're using, please report them all.
>

Here's what I found:
SVG -> EPS
Converter: inkscape --file=$$i --export-area-drawing --without-gui
--export-eps=$$o
No extra flags

SVG -> PDF (graphics)
Converter: inkscape --file=$$i --export-area-drawing --without-gui
--export-pdf=$$o
No extra flags

SVG -> PNG
Converter: inkscape --without-gui --file=$$i --export-png=$$o
No extra flags

Thanks,
Jane


Re: SVG Images Showing Up with Black Backgrounds

2014-08-11 Thread Paul A. Rubin


On 08/11/2014 02:45 AM, Jane Shevtsov wrote:
On Sun, Aug 10, 2014 at 2:15 PM, Paul A. Rubin > wrote:



1. How are you generating the PDFs (pdflatex, dvipdfm, ...)?


I'm using pdflatex.

2. How are you configured to convert SVGs? Please check Tools >
Preferences
... > File Handling > Converters, look for the converter from SVG
to your
output format (e.g., "SVG -> PDF (graphics)" or "SVG -> PNG"), and
report
the contents of the "Converter" and "Extra flags" boxes. If you're
not sure
which one you're using, please report them all.


Here's what I found:
SVG -> EPS
Converter: inkscape --file=$$i --export-area-drawing --without-gui 
--export-eps=$$o

No extra flags

SVG -> PDF (graphics)
Converter: inkscape --file=$$i --export-area-drawing --without-gui 
--export-pdf=$$o

No extra flags

SVG -> PNG
Converter: inkscape --without-gui --file=$$i --export-png=$$o
No extra flags

Those settings seem to work fine for me (using Inkscape 0.48.4). I don't 
know what's going on, but here are some options:


1. You could try adding "--export-background-opacity=0" to the converter 
lines. That should not be necessary, but then you should not be seeing 
black backgrounds.


2. You could install librsvg2-bin (and any dependencies) from 
Canonical's repos, and use that instead of Inkscape. Once it is 
installed, I believe that reconfiguring LyX will cause LyX to choose it 
in preference to Inkscape. If not, I can supply the converter lines.


3. You could post one of the images causing problems to the list, in 
case it's something peculiar to those images. (You might want to run the 
conversion commands above against one of the images in a terminal and 
see if one of them coughs up a result with a black background.)


Paul



Re: SVG Images Showing Up with Black Backgrounds

2014-08-11 Thread Rich Shepard

On Mon, 11 Aug 2014, Paul A. Rubin wrote:

Those settings seem to work fine for me (using Inkscape 0.48.4). I don't know 
what's going on, but here are some options:


  Excuse me for joining this thread late, but I have a comment that might be
pertinent. I have found that some .pdf files display a black box where
images should appear when I use xpdf, but not when I use mupdf, epdfview, or
acroread.

  The the view the same regardless of pdf viewer? If so, then my comment is
not useful.

Rich



Re: SVG Images Showing Up with Black Backgrounds

2014-08-10 Thread Paul A . Rubin
Jane Shevtsov jane.eco at gmail.com writes:

 I am running LyX 2.1.1 on Ubuntu 14.04 and am running into a problem with
SVG images. These images show up fine in LyX itself, but when I export a
PDF, the images have a black background instead of a white one, which makes
them illegible. (The same images worked fine on earlier versions of LyX and
Ubuntu.) Can someone help me figure out what's going on?

1. How are you generating the PDFs (pdflatex, dvipdfm, ...)?

2. How are you configured to convert SVGs? Please check Tools  Preferences
...  File Handling  Converters, look for the converter from SVG to your
output format (e.g., SVG - PDF (graphics) or SVG - PNG), and report
the contents of the Converter and Extra flags boxes. If you're not sure
which one you're using, please report them all.

FWIW, I just tested a sample doc with an SVG image (funky stuff on white
background) on Linux Mint 16 Cinnamon (equivalent to Ubuntu 13.10?) using
rsvg-convert as the converter, and the PDF had a seamless white background
for the image.

Paul




Re: SVG Images Showing Up with Black Backgrounds

2014-08-10 Thread Paul A . Rubin
Jane Shevtsov jane.eco at gmail.com writes:

 I am running LyX 2.1.1 on Ubuntu 14.04 and am running into a problem with
SVG images. These images show up fine in LyX itself, but when I export a
PDF, the images have a black background instead of a white one, which makes
them illegible. (The same images worked fine on earlier versions of LyX and
Ubuntu.) Can someone help me figure out what's going on?

1. How are you generating the PDFs (pdflatex, dvipdfm, ...)?

2. How are you configured to convert SVGs? Please check Tools  Preferences
...  File Handling  Converters, look for the converter from SVG to your
output format (e.g., SVG - PDF (graphics) or SVG - PNG), and report
the contents of the Converter and Extra flags boxes. If you're not sure
which one you're using, please report them all.

FWIW, I just tested a sample doc with an SVG image (funky stuff on white
background) on Linux Mint 16 Cinnamon (equivalent to Ubuntu 13.10?) using
rsvg-convert as the converter, and the PDF had a seamless white background
for the image.

Paul




Re: SVG Images Showing Up with Black Backgrounds

2014-08-10 Thread Paul A . Rubin
Jane Shevtsov  gmail.com> writes:

> I am running LyX 2.1.1 on Ubuntu 14.04 and am running into a problem with
SVG images. These images show up fine in LyX itself, but when I export a
PDF, the images have a black background instead of a white one, which makes
them illegible. (The same images worked fine on earlier versions of LyX and
Ubuntu.) Can someone help me figure out what's going on?

1. How are you generating the PDFs (pdflatex, dvipdfm, ...)?

2. How are you configured to convert SVGs? Please check Tools > Preferences
... > File Handling > Converters, look for the converter from SVG to your
output format (e.g., "SVG -> PDF (graphics)" or "SVG -> PNG"), and report
the contents of the "Converter" and "Extra flags" boxes. If you're not sure
which one you're using, please report them all.

FWIW, I just tested a sample doc with an SVG image (funky stuff on white
background) on Linux Mint 16 Cinnamon (equivalent to Ubuntu 13.10?) using
rsvg-convert as the converter, and the PDF had a seamless white background
for the image.

Paul