⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aspjpeg.html

📁 aspupload
💻 HTML
字号:
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Developer Studio">
<META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="KEYWORDS" content="ASP UPLOAD ASPUPLOAD PWS BLOB Personal Web Server IIS Internet Information Server ASP UPLOADING UPLOAD DEC ALPHA AlphaServer AspUpload Persits Software Persits Web ASP Active Server Pages Active Server Component Upload browser TYPE=FILE TYPE FILE Windows NT Web ACL ACE Access Control List Directory Listing Export Attribute FILE FREE RFC ie3 ie4 posting acceptor posting acceptor RFC1867 RFC-1867 1867 Component ENCTYPE multipart/form-data multipart SA-FileUp ActiveFile Database Multiple software artisans activefile vbscript activex jscript netscape internet explorer download downloading unique form limit size">
<meta name="KEYWORDS" content="ASP, UPLOAD, ASPUPLOAD, PWS, BLOB, Personal Web Server, IIS, Internet Information Server, ASP, UPLOADING, UPLOAD, DEC, ALPHA, AlphaServer, AspUpload, Persits Software, Persits, Web, ASP, Active Server Pages, Active Server Component, Upload, browser, TYPE=FILE, TYPE, FILE, Windows, NT, Web, ACL, ACE, Access Control List, Directory, Listing, Export, Attribute, FILE, FREE, RFC, ie3, ie4, posting acceptor, posting, acceptor, RFC1867, RFC-1867, 1867, Component, ENCTYPE, multipart/form-data, multipart, SA-FileUp, ActiveFile, Database, Multiple, software, artisans, activefile, vbscript, activex, jscript, netscape, internet, explorer, download, downloading, unique, form, limit, size">
<meta name="DESCRIPTION" content="AspUpload.com - the home of the most advanced upload solution for a Windows NT/ASP-based Web environment">
<TITLE>AspUpload.com - AspJpeg JPEG Image Resizing Component</TITLE>
</HEAD>
<BODY BACKGROUND="bk.gif" LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0">
<BASEFONT FACE="Helvetica, Arial" SIZE=1>

<!-- Main Data table -->
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="730">
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="160">
<FONT FACE="arial narrow" Size=2>
<B>
	<IMG SRC="spacer.gif" BORDER="0" HEIGHT="15"><BR>
	<IMG SRC="sq.gif"><IMG SRC="square.gif"> <A HREF="index.html">Home</A>
	<BR>
	<IMG SRC="sq.gif"><IMG SRC="square.gif"> <A HREF="whatsnew.html">What's New</A>
	<P>
	<IMG SRC="sq.gif"><IMG SRC="square.gif"> <A HREF="manual.html">User Manual</A>
	<BR>	
	<IMG SRC="sq.gif"><IMG SRC="square.gif"> <A HREF="objectreference.html">Object Reference</A>
	<BR>
	<IMG SRC="sq.gif"><IMG SRC="square.gif"> <A HREF="livedemo.html">Live Demos</A>
	<BR>
	<IMG SRC="sq.gif"><IMG SRC="square.gif"> <A HREF="support.html">Support</A>
	<P>
	<IMG SRC="sq.gif"><IMG SRC="square.gif"> <A HREF="xupload.html">XUpload</A><BR>
	<IMG SRC="sq.gif"><IMG SRC="square.gif"> <A HREF="jupload.html">JUpload</A><BR>
	<IMG SRC="sq.gif"><IMG SRC="square_pressed.gif"> AspJpeg</A><BR>
	<P>
	<IMG SRC="sq.gif"><IMG SRC="square.gif"> <A HREF="download.html">Download</A>
	<BR>
	<IMG SRC="sq.gif"><IMG SRC="square.gif"> <A HREF="purchase.html">Purchase</A>
	<P>
	<IMG SRC="sq.gif"><IMG SRC="square.gif"> <A HREF="clients.html">Clients</A>
	<BR>
	<IMG SRC="sq.gif"><IMG SRC="square.gif"> <A HREF="otherproducts.html">Other Products</A>
	<BR>
	<IMG SRC="sq.gif"><IMG SRC="square.gif"> <A HREF="contact.html">Contact Us</A>


	<FORM TARGET="_new" ACTION="http://support.persits.com/emails/signup.asp">
	<FONT FACE="Arial Narrow" SIZE="2" COLOR="#9C3131"><IMG SRC="sq.gif"><B>Newsletter Signup</B></FONT><BR>
	<IMG SRC="sq.gif"><INPUT TYPE="TEXT" NAME="email" SIZE="15" VALUE="e-mail address"></FORM>
</B>
</FONT>
</TD>
<TD VALIGN=TOP WIDTH=570 ALIGN="LEFT">
<!-- Right Column with data -->
	<IMG SRC="sq.gif"><BR>
	<img SRC="aspjpeg.gif"><BR>
	<TABLE WIDTH=540 HEIGHT=2 CELLSPACING=0 CELLPADDING=0 BORDER=0>
	<TD BGcolor="#FFCE00"><spacer type=block width=540 height=2></TD>
	</TABLE>
	<P>

	<FONT SIZE="2" FACE="Arial">

	<FONT SIZE=3 FACE=ARIAL COLOR="#0000FF">
	<B>AspJpeg 1.1 - High-Quality JPEG Thumbnail Component</B>
	</FONT>
	<BLOCKQUOTE>
	<FONT SIZE=2 FACE=ARIAL>
	If you need to resize JPEG images on the fly, consider AspJpeg 1.1.
	This easy-to-use component enables you to create high-quality image thumbnails
	in just a few lines of code.
	<P>
	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.
	<P>
	AspJpeg features include:
	<B>
	<UL>
	<LI>Support for three popular image resizing algorithms: Nearest-Neighbor, 
	Bilinear and Bicubic.
	<LI>Resultant thumbnails can be saved to disk or sent directly to client browser
	for better performance.		
	<LI>Image sharpening, cropping and flipping <FONT COLOR="#FF0000"><I>New in 1.1</i></FONT>
	<LI>Access to the size information of source images.
	<LI>Adjustable degree of JPEG compression.
	<LI>Currently, only the JPEG format is supported.
	</UL>
	</B>
	</FONT>
	</BLOCKQUOTE>
	<P>
	<FONT SIZE=3 FACE=ARIAL COLOR="#0000FF">
	<B>What's New in AspJpeg 1.1</B>
	</FONT>
	<BLOCKQUOTE>
	<FONT SIZE=2 FACE=ARIAL>
	<B><U>Image Sharpening</U></B><P>
	AspJpeg 1.1 offers image sharpening functionality via the <B>Sharpen</B>(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
	<P>
	<FONT FACE="Courier New"><B>Jpeg.Sharpen 1, 120</B></FONT>
	<P>
		<TABLE CELLSPACING=0 CELLPADDING=1>
		<TR><TD><IMG SRC="porsche1.jpg"></TD><TD><IMG SRC="porsche2.jpg"></TD></TR>
		</TABLE>
	<P>
	<B><U>Cropping</U></B><P>
	AspJpeg 1.1 enables you to crop image thumbnails via the method <B>Crop</B>(x0, y0, x1, y1):
	<P>
	<IMG SRC="porsche4.gif">
		<P>
	<B><U>Flipping</U></B><P>
	With AspJpeg 1.1, you can also flip an image vertically and/or horizontally
	via the methods <B>FlipV</B> and <B>FlipH</B>, respectively.


	</FONT>
	</BLOCKQUOTE>

	<P>
	<FONT SIZE=3 FACE=ARIAL COLOR="#0000FF">
	<B>Code Sample 1: Simple Resizing</B>
	</FONT>
	<BLOCKQUOTE>
	<FONT SIZE=2 FACE=ARIAL>
	 The following script opens a JPEG image on the hard drive, resizes it and saves
	 the resultant thumbnail back to disk.<P>

	 <FONT FACE="Courier New" SIZE="2">
	 <B>
	&lt;%<BR>
	</B><I>' Create an instance of AspJpeg</I><B><BR>
	Set Jpeg = Server.CreateObject("Persits.Jpeg")<P>
	
	</B><I>' Compute path to source image</I><B><BR>
	Path = Server.MapPath("images") & "\test.jpg"<P>

	</B><I>' Open source image</I><B><BR>
	Jpeg.Open Path<P>

	</B><I>' Decrease image size by 50%</I><B><BR>
	Jpeg.Width = Jpeg.OriginalWidth / 2<BR>
	Jpeg.Height = Jpeg.OriginalHeight / 2<P>

	</B><I>' Optional: apply sharpening</I><B><BR>
	Jpeg.Sharpen 1, 150<P>

	</B><I>' Create thumbnail and save it to disk</I><B><BR>
	Jpeg.Save Server.MapPath("images") & "\test_small.jpg"<BR>
	%>
	 </B>
	 </FONT>


	</FONT>
	</BLOCKQUOTE>
	<P>
	<FONT SIZE=3 FACE=ARIAL COLOR="#0000FF">
	<B>Code Sample 2: Sending a Thumbnail Directly to Browser</B>
	</FONT>
	<BLOCKQUOTE>
	<FONT SIZE=2 FACE=ARIAL>
	 AspJpeg is capable of sending a thumbnail directly to
	 the client browser rather than saving it to disk. 
	 An image resizing script can be invoked via the <B>SRC</B>
	 attribute of an <B>&lt;IMG></B> tag as follows:
	 <P>
	 <FONT FACE="Courier New" SIZE="2"><B>
	 &lt;IMG SRC="resize.asp?path=c:\dir\myimage.jpg&width=100">
	 </B></FONT>
	 <P>
	The script <B>resize.asp</B> may look like this:
	<P>

	<FONT FACE="Courier New" SIZE="2"><B>
	&lt;%<BR>
		</B><I>' IMPORTANT: This script must not contain any HTML tags</i><B><BR>

		</B><I>' Create an instance of AspJpeg object</i><B><BR>
		Set jpeg = Server.CreateObject("Persits.Jpeg")<P>
		jpeg.Open( Request("path") )<P>

		</B><I>' Set new width</i><B><BR>
		jpeg.Width = Request("width")<P>

		</B><I>' Set new height, preserve original width/height ratio</i><B><BR>
		jpeg.Height = _<BR>
		&nbsp;&nbsp;jpeg.OriginalHeight * jpeg.Width / jpeg.OriginalWidth<P>

		</B><I>' Send thumbnail data to client browser</i><B><BR>
		jpeg.SendBinary<BR>
	%>
	</B></FONT>

	</FONT>
	</BLOCKQUOTE>

	<P>
	<FONT SIZE=3 FACE=ARIAL COLOR="#0000FF">
	<B>Check Out the <A HREF="http://support.persits.com/jpeg/pick_jpeg.asp" TARGET="_new">AspJpeg Live Demo!</A></B>
	</FONT>
	<BLOCKQUOTE>
	<FONT SIZE=2 FACE=ARIAL>
	<!--<FONT COLOR="#FF0000"><B>Sorry, our live demo is currently down. We are working to resolve the problem.
	Please check back later. We apologize for the inconvenience.</B></FONT><P>-->
	 Why wait? Put AspJpeg to work now! Upload a JPEG image to our server
	 and let the AspJpeg component show you what it can do.
	</FONT>
	</BLOCKQUOTE>

	<P>
	<FONT SIZE=3 FACE=ARIAL COLOR="#0000FF">
	<B>Download & Purchase AspJpeg</B>
	</FONT>
	<BLOCKQUOTE>
	<FONT SIZE=2 FACE=ARIAL>
	 The AspJpeg setup comes with many more code samples and 
	 a complete user manual. <A HREF="http://www.persits.com/aspjpeg.exe"><B>Download</B></A>
	 your free 30-day trial version now (1.23MB).
	 <P>
	 Purchase AspJpeg with your credit card on-line. We accept Visa, MasterCard
	 and American Express.
	 <P>
	 <A NAME="purchase">
	<TABLE CELLSPACING="0" CELLPADDING="2" BORDER="1" WIDTH="450">

	<FORM METHOD="post" TARGET="_new" ACTION="https://www.cwshost.com/aspuser/ccform_aspjpeg.asp">
	<INPUT TYPE="HIDDEN" NAME="ProductType" VALUE="1">
	<TR><TD VALIGN="TOP" BGCOLOR="#DDDDDD"><FONT FACE="Arial" SIZE="2"><B>Single Server License</B></FONT></TD><TD VALIGN="TOP" BGCOLOR="#DDDDDD"><FONT FACE="Arial" SIZE="2"><B>$150.00</B></FONT></TD><TD VALIGN="TOP" BGCOLOR="#DDDDDD"><INPUT TYPE="SUBMIT" VALUE="Purchase"></TD></TR>
	</FORM>
	
	<FORM METHOD="post" TARGET="_new" ACTION="https://www.cwshost.com/aspuser/ccform_aspjpeg.asp">
	<INPUT TYPE="HIDDEN" NAME="ProductType" VALUE="2">
	<TR><TD BGCOLOR="#EEEEEE" VALIGN="TOP"><FONT FACE="Arial" SIZE="2"><B>Enterprise License</B><BR>
	(component can be installed on any number of servers within a single 
	organization)</FONT></TD><TD BGCOLOR="#EEEEEE" VALIGN="TOP"><FONT FACE="Arial" SIZE="2"><B>$450.00</B></FONT></TD><TD BGCOLOR="#EEEEEE" VALIGN="TOP"><INPUT TYPE="SUBMIT" VALUE="Purchase"></TD></TR>
	</FORM>
	</TABLE>
	</FONT>
	</BLOCKQUOTE>
	

	<TABLE WIDTH=540 HEIGHT=2 CELLSPACING=0 CELLPADDING=0 BORDER=0>
	<TD BGcolor="#FFCE00"><spacer type=block width=540 height=2></TD>
	</TABLE>	
	<P>
	<CENTER>
	<A HREF="index.html"><IMG SRC="logo_small.gif" BORDER=0></A>
	<BR>
	<FONT Face=arial size=1>
	Copyright &copy; 1998 - 2001 <A HREF="http://www.persits.com">Persits Software, Inc.</A><BR>
	All Rights Reserved<BR>
	AspUpload&reg; is a registered trademark of Persits Software, Inc.<BR>
	Questions? Comments? <A HREF="MAILTO:info@aspupload.com">Write us!</A>
	</CENTER>
</TD>
</TABLE>

</BASEFONT>
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -