I'm attempting to output an SVG from Illustrator. My artboard is 256x256 pixels. The top left of the artboard is at 0,0.
When I export my svg, the viewbox
attribute is 0.5 792.5 256 256
. Why isn't it 0 0 256 256
?
All layers/paths/etc are within the 256x256 box. Nothing is outside of it.
Also, I just created a fresh 256x256 document and copy/pasted all my layers from the old file to the new one and the viewbox was 0 0 256 256
as expected. So what was it about the original file that was throwing in that offset in the viewbox
?
Update: I just deleted all the layers except for one, and exported. The viewbox is now: 0.5 536.5 256 256
, which still doesn't make sense. Especially since the artboard is empty now.
Here is the AI file if you want to look: https://www.dropbox.com/s/q0u6r46b3j9sefa/sprites-old.ai?dl=0