Certainly! The main issue is that your SVG's viewBox is set to 0 0 192.756 192.756, but the actual content is much narrower and shorter, causing clipping when scaled down to 32 pixels.
What to fix:
- Adjust the
viewBox to tightly fit the actual content bounds.
- Adjust the
width and height attributes accordingly (or remove them to let the SVG scale naturally).
- Ensure no clipping happens by matching the viewBox to the content.
Step 1: Determine the actual bounding box of the content
Your path is transformed by:
transform="matrix(3.4419077,0,0,3.4419077,-226.26284,-0.1604714)"
This means the path coordinates are scaled by ~3.44 and translated by -226.26 on X.
The path's coordinates range roughly from 0 to ~170 in X (before transform), so after transform:
- X range: (0 * 3.44 - 226.26) = -226.26 (left edge)
- X max: (170 * 3.44 - 226.26) ≈ 584.8 - 226.26 = 358.54 (right edge)
Similarly for Y, the path coordinates go roughly from 0 to ~55, so:
- Y range: (0 * 3.44 - 0.16) = -0.16 (top edge)
- Y max: (55 * 3.44 - 0.16) ≈ 189.2 - 0.16 = 189.04 (bottom edge)
So the actual bounding box of the visible content is approximately:
x: -226.26 to 358.54
y: -0.16 to 189.04
width: 584.8
height: 189.2
Step 2: Adjust the SVG viewBox to this bounding box
Change:
viewBox="0 0 192.756 192.756"
to
viewBox="-226.26 -0.16 584.8 189.2"
Step 3: Adjust width and height to 32 pixels
If you want the SVG to be exactly 32 pixels wide and keep the aspect ratio, set:
width="32"
height="32 * (189.2 / 584.8)" <!-- height scaled proportionally -->
Calculate height:
32 * (189.2 / 584.8) ≈ 32 * 0.323 = 10.34
So:
width="32"
height="10.34"
Final fixed SVG snippet (only the root <svg> tag changed):
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="32"
height="10.34"
viewBox="-226.26 -0.16 584.8 189.2"
id="svg2"
sodipodi:version="0.32"
inkscape:version="0.46"
sodipodi:docname="ASDA logo.svg"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
version="1.0">