Using Persits ASPJpeg
Posted by Paul Woodland (Import) on 02 December 2006 04:35 AM

Persits ASPJpeg is a server-side component that allows you to modify image data in your ASP scripts. LiquidSix offers you the ability to use our registered version of ASPJpeg.

How do you use Persits ASPJpeg?
The following is an example of using the ASPJpeg component to resize and rotate an image:

        'Create an instance of our ASPJpeg object.
        Set jpegObj = Server.CreateObject("Persits.Jpeg")

        'Open an image from the same directory.
        jpegObj.Open Server.MapPath(".") & "\myimage.jpg"

        'Resize the image.
        jpegObj.Width = 100
        jpegObj.Height = 100

        'Rotate our image left.

        'Send our new image to the client.

Why would I use Persits ASPJpeg?
ASPJpeg allows you to resize images dynamically, whilst keeping the original intact, many coders will use such a component to display thumbnail images, using something similar to the following:

    <img src="<thumbnail_page.asp>" />
    ...where <thumbnail_page.asp> is the page which contains a script like above, passing any parameters you need to.

(312 vote(s))
Not helpful

Comments (0)