[Gambas-user] Image.Save method How to specify the DPI?

Martin Belmonte mbelmonte at belmotek.net
Mon Feb 21 10:44:21 CET 2022


Hi,
When save method is called it require 2 arguments the file name and 
optionally the quality 0:100 or -1:100 depends if qt or gtk.
I wan to save an image as 600x900 px in 96 dpi but... where specify the 
dpi? The result is always 300 dpi.
Don't see any property in the image object to set the resolution.

img = Image.Load("/tmp/input.jpeg").Stretch(600, 900)
img.Save("/tmp/output.jpeg")

Regards.
Martin.


More information about the User mailing list