Home What's New |
AspJpeg 1.1 - High-Quality JPEG Thumbnail Component
If you are developing an online photo album or any other web-based
application where users can upload their digital pictures
to the server, AspJpeg can be used in tandem with AspUpload
to create thumbnails of the images as they are being uploaded.
AspJpeg makes a great companion to the Persits Software upload suite.
AspJpeg features include:
What's New in AspJpeg 1.1
AspJpeg 1.1 offers image sharpening functionality via the Sharpen(radius, amount) method.
The image on the left (see below) is a regular thumbnail with no sharpening applied.
The image on the right is sharpened via the method call
Jpeg.Sharpen 1, 120
Cropping
AspJpeg 1.1 enables you to crop image thumbnails via the method Crop(x0, y0, x1, y1):
Flipping
With AspJpeg 1.1, you can also flip an image vertically and/or horizontally
via the methods FlipV and FlipH, respectively.
Code Sample 1: Simple Resizing
<%
' Compute path to source image
' Open source image
' Decrease image size by 50%
' Optional: apply sharpening
' Create thumbnail and save it to disk
Code Sample 2: Sending a Thumbnail Directly to Browser
<IMG SRC="resize.asp?path=c:\dir\myimage.jpg&width=100">
The script resize.asp may look like this:
<%
jpeg.Open( Request("path") )
' Set new width
' Set new height, preserve original width/height ratio
' Send thumbnail data to client browser
Check Out the AspJpeg Live Demo!
Download & Purchase AspJpeg
Purchase AspJpeg with your credit card on-line. We accept Visa, MasterCard
and American Express.
Copyright © 1998 - 2001 Persits Software, Inc. All Rights Reserved AspUpload® is a registered trademark of Persits Software, Inc. Questions? Comments? Write us! |