Hello,
First of all: what an awesome tool is IM!
I created an SVG file with size 96,030 x 433,260 which is 180Mb large.
The file itself is very simple: it contains blocks of 30x30 pixels with a specific color and a text inside (see below for example).
There's 120M possible blocks, but only 500K blocks are defined in the file; the others have background color.
There is no software that allows me to view this large SVG file efficiently.
I want to create a raster file out of this and using an hierarchical tiling to 1) view color on high level and 2) zoom in to details in desired. I have software for the tiling.
My first goal: convert the SVG into 1 large JPG.
I have tried many ways to convert (convert msvg:vehicle_matrix.svg res2.jpg see below for more), but either
1) I get "No space left on device" (I have 300Gb temp dir allocated)
2 I get a file that has not the desired resolution (text not readable)
What is the right way to convert this data into a raster image.
I'm also open to use the canvas create option right away, rather than creating a SVG first.
Thanks a lot!
Olav
-------------------------------------------------------------------------------------------------------------
One block:
<rect height='30' width='30' x='0' y='168600' style='fill:rgb(254,0,255)'/>
<text x='3' y='168605' font-size='1' fill='rgb(219,0,220)'>prodnr:11111</text>
<text x='3' y='168700' font-size='1' fill='rgb(219,0,220)'>mmy:MERCEDES_BENZ_240D_1981</text>
convert msvg:vehicle_matrix.svg -size 3000 -density 100 -depth 8 -quality 100 res2.jpg --->no space left on device
convert -size 9603x43326 -density 100 -depth 8 msvg:vehicle_matrix.svg res2.jpg ---> result unreadable
C:\Users\IBM_ADMIN\Desktop>identify -list resource
File Area Memory Map Disk Thread Throttle Time
--------------------------------------------------------------------------------
1536 25.663GB 11.95GiB 23.901GiB unlimited 8 0 unlimited
I use Q16 on Windows.
SVG too large to convert
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: SVG too large to convert
If I understand correctly, you are tring to create a raster file with 96,030 x 433,260 pixels.
This is 40,549 million pixels. For Q16, this takes 6 bytes per pixel, thus 243 GB.
I'm not surprise you exaust your 300 GB disk.
This is 40,549 million pixels. For Q16, this takes 6 bytes per pixel, thus 243 GB.
I'm not surprise you exaust your 300 GB disk.
snibgo's IM pages: im.snibgo.com
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: SVG too large to convert
If you have less than 256 different colors total, then you could write to GIF or PNG8 so that the file format is pseudocolor. That might save quite some space. JPG is a lossy format and is not well suited for flat color sections. Nevertheless, you need enough space to hold the original image and the output image.
Also see
http://www.imagemagick.org/Usage/files/#massive
Also see
http://www.imagemagick.org/Usage/files/#massive
Re: SVG too large to convert
Add -density 5 to your command-line (right after the convert command).