Making thumbnails and watermarks of pictures with AspJpeg components

Source: Internet
Author: User
Tags net save file
Aspjpeg| thumbnail aspjpeg is a shared software produced by Persits, with a probationary period of 30 days, where you can download: Http://www.persits.com/aspjpeg.exe. The latest version number is 1.3
.

AspJpeg is a very powerful image processing component, with which you can easily make thumbnails of pictures and add watermarks to images. Here is a brief introduction to how to use:


you first perform the downloaded EXE file, install the component


1, make thumbnail images for pictures





<% ' Establish an example


Dim Jpeg,path


Set Jpeg = Server.CreateObject ("Persits.jpeg")


' Picture location


Path = Server.MapPath ("Images") & "\clock.jpg"








' Open


Jpeg.open Path





' Sets the thumbnail size (this ratio is set to 50%)


jpeg.width = Jpeg.originalwidth/2


jpeg.height = JPEG.ORIGINALHEIGHT/2





' save thumbnails to the specified folder


jpeg.save Server.MapPath ("Images") & "\clock_small.jpg"





' Logoff instance


Set Jpeg = Nothing


%>





<img src=http://www.163design.net/a/y/"images/clock.jpg" ><P>


<img src=http://www.163design.net/a/y/"Images/clock_small.jpg" >








2, add the watermark function for the picture


<%


Dim Jpeg


' Establish an example


Set Jpeg = Server.CreateObject ("Persits.jpeg")


' Open the target picture


jpeg.open Server.MapPath ("images/dodge_viper.jpg")





' Add text watermark


Jpeg.Canvas.Font.Color = &hff0000 ' Red


Jpeg.Canvas.Font.Family = "Song Body"


Jpeg.Canvas.Font.Bold = True


Jpeg.Canvas.Print, "Copyright (c) cnmaya.org"





' Save file


jpeg.save Server.MapPath ("images/dodge_viper_framed.jpg")





' Logoff object


Set Jpeg = Nothing


%>














Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.