I'm trying to call the ImageMagick COM object using sp_OAMethod (SQL 2000
SP4) to resize images.

I can't get it to do anything but crash SQL Server. :)

The object is being created okay, but the below convert statement is giving
an error

        EXEC @RE = MASTER.dbo.sp_OAMethod
                  @ptrObject
                , 'convert'
                , @ReturnVal OUTPUT
                , 'D:\Desktop\Downloads\tmp.jpg'
                , '-resize'
                , '640x480!'
                , '-compress'
                , 'JPEG'
                , 'D:\Desktop\Downloads\tmp2.jpg'
ImageMagickObject.MagickImage.1 - convert: 0xC00000FD: stack overflow


I've also tried
        EXEC @RE = MASTER.dbo.sp_OAMethod
                  @ptrObject
                , 'convert'
                , @ReturnVal OUTPUT
                ,
'D:\Desktop\Downloads\tmp.jpg,-resize,640x480!,-compress,JPEG,D:\Desktop\Dow
nloads\tmp2.jpg'
[Microsoft][ODBC SQL Server Driver][DBMSLPCN]ConnectionCheckForData
(CheckforData()).
Server: Msg 11, Level 16, State 1, Line 0
-- sqlserver shuts down --
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to