iWebPhoto 3.0 is an Activex Component which could upload and resizes images with ASP
all right reserved by http://activex.dbstep.com

Introduction:
========================================================================================== 

This ASP component upload and resizes images. Supports JPG, BMP, GIF files and can export to JPG. 

During the web application developing,there might be the moments that we have to magnify or 

contract the images we are dealing with,as a result the size of picture file should be 

changed actually;in fact,our activex component has made use of its advantage to adapt 

this situation,anyway,the picture file tye will be JPG after it has been switched.

note:the demo version can only change the picture whose size is less than 320X240,

but the formal version has no limit,if you want that one,please feel freely to contact with author.




File Composition:
==========================================================================================
1iWebPhoto.Dll
2iWebPhotoFrm.Asp
3iWebPhoto.Asp
4Readme.txt


The environment of O/S:
==========================================================================================
Microsoft Windows 98 & PWS
Microsoft Windows NT & IIS4
Microsoft Windows 2000 & IIS5

Installation Illumination:
==========================================================================================
1.copy file iWebPhoto.Dll into Web Server's directories,for example: your disk:\Inetpub\Wwwroot\Script\iWebPhoto.dll
2.run the register commond RegSvr32 with lines like:your disk:\Inetpub\Wwwroot\Script\iWebPhoto.dll


Product Illumination:
==========================================================================================
1.run the script iWebPhotoFrm.Asp
2.fill in the items in the form
3.click the "submit" button


Parameters Specialization
==========================================================================================
Properties

Copyright--the component's information about the version
Width--the original image's width
Height--the original image's height
FilePath--the file's location directories


Method

function FileName(TagName)  //get the element's file name
function Request(TagName)   //get the element's parameter value
function ExtName(TagName)   //get the element's file extension name
function LoadImage(TagName) //load the image to prepare to set the size
function SetSize(Width, Height) //set the size of image
function SaveImage(FileName) //save the being changed image


How to use:
===========================================================================================
//setup the server image manager object	
      Set ImageObj=Server.CreateObject("DBstep.WebPhoto")

     //upload file name
      ImageObj.Request("filea")

      //file name
      ImageObj.FileName("filea")

      //extension name
      ImageObj.ExtName("filea")

      //load the image to prepare for setting the size
      LoadImage=ImageObj.LoadImage("filea")

      if LoadImage then 
        //file name
        ImgName=ImageObj.FileName("filea")

        //extension name
	ExtName=ImageObj.ExtName("filea")

        //the new file name,the saved type all should be ".jpg"
	JpgName=Left(ImgName,Len(ImgName)-Len(ExtName)) & ".jpg"

        //the width of file
        ImgWidth=ImageObj.Width

        //the height of file
        ImgHeight=ImageObj.Height
        
        //get the original image[size isn't changed]
        mReSize=ImageObj.SetSize(ImgWidth,ImgHeight)
        if mReSize then 
           //set the path of file
           ImageObj.FilePath=Server.MapPath(".") & "\Image\"  

           //save the original image
           ImageObj.SaveImage(JpgName)
        end if

	//set the image as[size *2]
        mReSize=ImageObj.SetSize(ImgWidth*2,ImgHeight*2)
        if mReSize then 
           //set the path of file
           ImageObj.FilePath=Server.MapPath(".") & "\ImageBig\"  
           //save the changed image
	   ImageObj.SaveImage("Big" & JpgName)
        end if

	//set image as[size 100,50]
        mReSize=ImageObj.SetSize(100,50)
        if mReSize then 
           //set the path of file
           ImageObj.FilePath=Server.MapPath(".") & "\ImageSmall\"  
           //save the image
	   ImageObj.SaveImage("Small" & JpgName) & "</td></tr>"
        end if
      end if

      //the information of version
      ImageObj.Copyright

      //free the image component object  
      Set ImageObj=nothing


Special Notes:
==========================================================================================
1.The trial version is limited to change the image whose size is less than 320X240.but the  
final version has not,if you want,please contact with the author.
2.want to know the details of how to use our product,please check out the examples: iWebPhotoFrm.asp & iWebPhoto.asp



Contact Us:
==========================================================================================
WebSite: http://activex.dbstep.com
Email: webmaster@dbstep.com
       dbstep@hotmail.com
       dbstep@21cn.com
