Svg Do Not Scale. Usepackagesvg beginfigureht centering includesvgwidth07textwidthsomeimage captionfoo labelbar endfigure. Use sed in bash to remove width and height attributes in SVG files As per this answer on Stackoverflow the issue can be resolved by removing just the width and height attributes.
If you dont SVG wont scale at all. Do not force uniform scaling. Does anyone know how I can scale the boxes and the text so it matches the second image.
Methods To Resize SVG.
This attribute isnt in the SVG we exported so lets add it after all the attributes on the SVG element. Scale the graphic content of the given element non-uniformly if necessary such that the elements bounding box exactly matches the viewport rectangle. Photoshop will scale the SVG file to a raster layer that size no paths vector mask or anything resembling a vector will be in the document opened. In order to prevent the uniform scaling of our SVG graphic we need to add the preserveAspectRatio attribute with the value of none.