My site has been using ASPImage for a long time. Recently, Yash and I have been exchaning messages on the amount of RAM my site was using. JH staff have been recycling my site in an attempt to minimize the amount of RAM used by my site. To my knowledge, this has only impacted the effort required by JH admin's and have not caused adverse affects on other sites.
My site has an average of 65000 page hits/day, 85000 hits/day and traffic of 280M/day. ASPImage was being used a lot.
I just recently switch from ASPImage to ASPJPEG. The actual changes in code were minimal and easy to make. Apparently this change has totally eliminated the RAM usage problem. This suggests to me that ASPImage basically sux. (If I had known that ASPImage was the cause of such a problem, I would not have used it in the first place.)
I urge everyone to not use ASPImage and use ASPJPEG instead. This will help ensure stability of the JH servers and allow the JH admins to look into and resolve more serious problems.
As to a guide to switching, here are the changes to my code:
server.createobject("aspimage.image") becomes server.createobject("persits.jpeg")
i.loadimage becomes i.open
i.loadblob becomes i.openbinary
i.maxy becomes i.originalheight
i.maxx becomes i.originalwidth
i.resizer becomes i.width = x and i.height = y
i.cropimage x,y,w,h becomes i.crop x1,y1,x2,y2
i.fontname becomes i.canvas.font.family
i.bold becomes i.canvas.font.bold
i.fontcolor becomes i.canvas.font.color
i.threedcolor becomes i.canvas.font.shadowcolor and i.canvas.font.shadowxoffset = 1 and i.canvas.font.shadowyoffset
i.textangle becomes i.canvas.font.rotation
i.italic becomes i.canvas.font.italic
i.fontsize becomes i.canvas.font.size
i.textout copytext becomes i.canvas.printtext
More details about the methods and properties of ASPJPEG can be found at http://www.aspjpeg.com/objectreference.html.
I hope this helps make your conversion to ASPJPEG
My site has an average of 65000 page hits/day, 85000 hits/day and traffic of 280M/day. ASPImage was being used a lot.
I just recently switch from ASPImage to ASPJPEG. The actual changes in code were minimal and easy to make. Apparently this change has totally eliminated the RAM usage problem. This suggests to me that ASPImage basically sux. (If I had known that ASPImage was the cause of such a problem, I would not have used it in the first place.)
I urge everyone to not use ASPImage and use ASPJPEG instead. This will help ensure stability of the JH servers and allow the JH admins to look into and resolve more serious problems.
As to a guide to switching, here are the changes to my code:
server.createobject("aspimage.image") becomes server.createobject("persits.jpeg")
i.loadimage becomes i.open
i.loadblob becomes i.openbinary
i.maxy becomes i.originalheight
i.maxx becomes i.originalwidth
i.resizer becomes i.width = x and i.height = y
i.cropimage x,y,w,h becomes i.crop x1,y1,x2,y2
i.fontname becomes i.canvas.font.family
i.bold becomes i.canvas.font.bold
i.fontcolor becomes i.canvas.font.color
i.threedcolor becomes i.canvas.font.shadowcolor and i.canvas.font.shadowxoffset = 1 and i.canvas.font.shadowyoffset
i.textangle becomes i.canvas.font.rotation
i.italic becomes i.canvas.font.italic
i.fontsize becomes i.canvas.font.size
i.textout copytext becomes i.canvas.printtext
More details about the methods and properties of ASPJPEG can be found at http://www.aspjpeg.com/objectreference.html.
I hope this helps make your conversion to ASPJPEG