1. What is AspJpeg?
AspJpeg is a powerful image processing component based on Microsoft IIS environment. There are not many Chinese articles on the Internet that provide detailed and in-depth introductions to it. Even if there are general ones, they only involve picture thumbnails and picture watermarks, which is closely related to its English version.
AspJpeg can use very little code to create high-quality thumbnails dynamically on your ASP/ASP.Net application. The supported image formats are: JPEG, GIF, BMP, TIFF, PNG
AspJpeg can mainly do:
Generate thumbnail images
Generate watermark pictures
Picture merge
Picture cutting
Database support
Security code technology
2. AspJpeg function summary
Supports JPEG, GIF, BMP, TIFF and PNG format pictures. The output format is always JPEG
Source images can be from disk, memory, or record set (database)
Thumbnail images can be saved to disk, memory, or HTTP streams
Three ways to change the size are supported: nearest-neighbor, bilinear, andbicubic.
You can add pictures or text on top of the pictures.
Support picture-in-picture
Supports copy, inversion, rotation, sharpening, and grayscale adjustment.
The compression ratio can be adjusted to get the best output effect and size.
Extract EXIF and IPTC data from Jpeg images.
CMYK-RGB conversion
Read/writeaccesstoindividualpixelsofanimage. (Read/write access to any pixel from the image.)
3. AspJpeg system requirements
Windows95/98/NT/2000/XP/2003, and
IIS4.0+andASP/ASP.NET, or
Visual Basic 5.0+, or
VisualC++5.0+, or
anydevelopmentenvironmentsupportingCOM.
4. AspJpeg installation
Brand new installation:
Enter the serial number during the AspJpeg installation process. If the disk format of the installation location is NTFS, access permissions may occur. You need to manually set the installation directory to have access permissions to Everyone.
Update installation:
If you have installed other versions of AspJpeg components before, you need to uninstall the original components first and then install the new version.
Stop IIS first
NetStopiisadmin/y
Uninstall legacy components
regsvr32/uPath/aspjpeg.dl (Path is the installation path)
Restart IIS
NetStartw3svc
Then perform a fresh installation or copy the AspJpeg.dll file to the installation directory for manual installation:
regsvr32Path/aspjpeg.dll (Path is the installation path)
If you do not enter a serial number or manually install it during normal installation, you must include the following keys in the registry. For convenience, you can directly save the following code as a .reg document and import it into the registry:
WindowsRegistryEditorVersion5.00
[HKEY_LOCAL_MACHINE/SOFTWARE/PersitsSoftware/AspUpload3/RegKey]
@="21764-40765-60456"
5. How to create an AspJpeg instance?
SetJpeg=Server.CreateObject("Persits.Jpeg")
6. How to check the expiration time (whether the registration is successful)?
SetJpeg=Server.CreateObject("Persits.Jpeg")