The ToGeometry method works in both situations. Just got rid of the variable because you don't really need it. The method is actually really simple: https://github.com/dlemstra/Magick.NET/blob/master/Source/Magick.NET/Core/Types/Density.cs#L227. It just multiplies the width and height you specify with the density.
And I wonder if you really need 600. Setting it to 300 should probably be enough. If you want to keep it at 600 you should probably change the value of
And I wonder if you really need 600. Setting it to 300 should probably be enough. If you want to keep it at 600 you should probably change the value of
settings.Density
to a higher value because you are resizing the image.