gzip -c model.svg > model.svgz
example:
[[#fig2]]%center% %apply=img width=600px% Attach:model_ABP_output.svgz | '''Fig. 2:''' SUT Model : ABP output (:iconlinks name=model_ABP_output ext=pdf,svgz,xml:)
inkscape --without-gui --export-plain-svg=out.svg model.pdf ==> better than pdf2svg command on ubuntu!!
IMPORTANT: need inkscape version=>0.91 (older inkscape versions forgot to add viewbox)
convert -density 300 model.pdf PNG8:model.png
---
`-> dpi for printable documents => also needed if you want text to remain readable in image (after optional zoom in!!)
note: in web browser the screen resolution is 96 dpi anyway
so even if image has 300 dpi resolution the text gets blurred when viewing it
however if zooming in the image the text is not blurred because it is 300 dpi!!
=> also needed to support nice browser zoom in to image=> text still readable!!!
=> NEED 300 dpi otherwise text very uggly!!