Skip to content

Instantly share code, notes, and snippets.

@ESidenko
Created November 19, 2019 06:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ESidenko/2bff5c26321d6d3fb35dffce2c4033d3 to your computer and use it in GitHub Desktop.
Save ESidenko/2bff5c26321d6d3fb35dffce2c4033d3 to your computer and use it in GitHub Desktop.
Resizing Images : Svg native resize
String inputFileName = "Logotype.svg";
try (Image image = Image.load(inputFileName))
{
image.resize(image.getWidth() * 10,image.getHeight() * 15);
image.save("Logotype_10_15.png", new PngOptions()
{{
setVectorRasterizationOptions(new SvgRasterizationOptions());
}});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment