step 1: 先到 URL: http://www.imagemagick.org/script/binary-releases.php#windows
下載 windows-x64-dll.exe (Win64 dynamic at 16 bits-per-pixel)
step 2: 點2下 exe 檔, 安裝.
step 3: 執行 regsvr32:
C:\Program Files\ImageMagick-6.7.0-Q16> regsvr32 ImageMagickObject.dll
step 4: 測試縮圖 asp:
dim imObject
set imObject = createobject("ImageMagickObject.MagickImage.1")
dim myInputFile
dim myOutputFile
myInputFile = server.mapPath(".") & "\demo.jpg"
myOutputFile = server.mapPath(".") & "\demo_new.jpg"
imObjectReturn = imObject.Convert(myInputFile, "-resize=200x", myOutputFile)
response.write "Now:" & now()
response.write "轉檔完成囉!"
step 5: 大功告成.
沒有留言:
張貼留言