Tomxe, I did a test with that with that version viewBox="-80 -80 160 160"
I set the png size to 200 pixels. It seemed to shift the picture on the canvas a bit, but not correctly.Setting the size of the png to 160 pixels (which is the veiwbox upper limit) produced a perfect svg to png conversion.Attached are the results below.
Also noticed a cumulative error on Windows10:
The form gets bigger and the controls keep on moving to the left and getting smaller with each use of the program.
I fixed the resize problem by adding:
procedure TMainDialog.FormCreate(Sender: TObject);
begin
Constraints.MinWidth := Width;
Constraints.MinHeight := Height;
Constraints.MaxWidth := Width;
Constraints.MaxHeight := Height;
Scaled := False;
if Application.HasOption('f', '') then begin
OpenDialog.InitialDir := Application.getOptionValue('f');
end;
end;
I just mentioned that source to others Lazarus forum members, just in case they wanted to try it out.