WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

ImageMagick

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Change Resolution

 Keywords: Convert Resolution PixelsPerInch Units Resample ImageMagickObject.MagickImage

Note: This example was written for ImageMagick version 6.x and may not be compatible with version 7.x.
strMyTestFolder = ShortCutDir ("Local Settings") : "\Temp\Resample\"
intResult = DirMake (strMyTestFolder)

strImg1 = DirHome() : "WBOwl.bmp"
strImg2 = strMyTestFolder : "WBOwl.jpg"

objIM = ObjectCreate ("ImageMagickObject.MagickImage")
strResult = objIM.Convert("NULL:", strImg1, "-units", "PixelsPerInch", "-resample", "90x90", strImg2)
objIM = ""


Article ID:   W18074
Filename:   Change Resolution.txt
File Created: 2019:12:02:11:29:14
Last Updated: 2019:12:02:11:29:14