Just tested with or without this patch:
[test_result.zip](https://github.com/algoo/preview-generator/files/4930704/test_result.zip)
For cairosvg:
- Based on svg "view"
- Preserve ratio, if ratio doesn't match file size, will change the view and also show elements outside of the "standard" view.
For inkscape:
- Based on drawing view.
- setting both height and width make inkscape don't preserve ratio anymore.
Not sure what should be the correct behavior here.
Behaviour for svg builder is unclear:
Originally posted by @inkhey in https://github.com/algoo/preview-generator/pull/184#issuecomment-659308321*
We do need to make decision about what should be a preview of svg, how we handle the ratio issue, etc...