I just like the images that I want to share in the image from the page. I can take a 1024x768 image and do it
<img src="1024x768.jpg" width="400" height="300"/>
or i can do it
<img src="1024x768.jpg" style="width:400px; height:300px"/>
and the image will be scaled without cropping. How can I do the same with svg? Note. I do not want to embed svg directly in the page. That would be as stupid as using dataURL for all my images. My artists are editing images, other people are editing html, so I need them to be separate.
<embed src="somefile.svg" width="400" height="300"></embed>
Does not scale svg, it just grows. CSS width / height does not work. Is this a way to make it look like images?
source share