Resample JPG and PNG
Posted: 2017-11-15T07:13:50-07:00
Hi,
For JPG and PNG, I use the command Resample to change the DPI. The original image has a size of 1920 * 1080 (96 dpi). For JPG works well. For PNG, I get the image of 15242 * 8574 (762 dpi)
Path of code:
Image. Read ("D:\artscope\96dpi\screenshots\96.png")
Image. Resample (300, 300)
Image. Write ("D:\artscope\96dpi\screenshots\96to300.png")
Command line works corrrect.
Version:ImageMagick-7.0.7-11-Q16-x86-dll
What's wrong?
For JPG and PNG, I use the command Resample to change the DPI. The original image has a size of 1920 * 1080 (96 dpi). For JPG works well. For PNG, I get the image of 15242 * 8574 (762 dpi)
Path of code:
Image. Read ("D:\artscope\96dpi\screenshots\96.png")
Image. Resample (300, 300)
Image. Write ("D:\artscope\96dpi\screenshots\96to300.png")
Command line works corrrect.
Version:ImageMagick-7.0.7-11-Q16-x86-dll
What's wrong?