.svg files too large

474 views
Skip to first unread message

Michael Lodato

unread,
Apr 1, 2014, 4:34:18 PM4/1/14
to igv-...@googlegroups.com
Hi,

I am having a problem outputting images from IGV 2.3.32 (37) in the .svg format.  For some regions, the files are really large (13,000 kb), and illustrator is having issues manipulating them.  For other regions, the files are ~300 kb and everything is working fine.  The problem region is not at a higher coverage than the OK regions, and a .png for the same region is of normal size.  Not sure what I am doing wrong.

Thanks for any help

Jim Robinson

unread,
Apr 1, 2014, 6:26:19 PM4/1/14
to igv-...@googlegroups.com
Its hard to say, but could you try "eps" format and see if its better?  It takes a little setup, instructions are in this thread:  https://groups.google.com/forum/#!searchin/igv-help/eps/igv-help/d5V3t1A9RsY/RWbSGalCXFIJ.  

Jim

Michael Lodato

unread,
Apr 1, 2014, 6:53:34 PM4/1/14
to igv-...@googlegroups.com
Thanks for the suggestion!  I followed the link, extracted the archive, made a new directory, 'plugins', in 'C:/Users/"My_NAME"/igv', and moved the file epsgraphics.1-2.jar into the plugins directory.  After reopening IGV, I can now export .eps files, and they are much smaller and can be edited in Illustrator.  The only issue is that the numbers and letters in the image are rendered as drawn objects instead of text, so they look a little funny.  Thanks for the help!

Andreas Lindner

unread,
Jul 25, 2023, 9:28:04 AM7/25/23
to igv-help
Hi,

We recently had also troubles with larger saved SVG files from IGV-Web. Issue was less the file size but that it was practically impossible to edit the SVG files in Inkscape or Illustrator (most likely to the amount of elements). 

I solved the issue converting the files from SVG to PDF using "rsvg-convert" of the "librsvg2-bin" (2.52.5+dfsg-3) package (e.g. "rsvg-convert -f pdf -o fixed_file.pdf file_with_issues.svg"; using Ubuntu 22.04)

Reduced the file size from MB to KB, and the PDF files opened without issues in other software and with no larger delay manipulating them. 

Aware that it is an old post, but maybe above helps someone.

Best regards,
Andreas
Reply all
Reply to author
Forward
0 new messages