Forum Moderators: open

Message Too Old, No Replies

Automatically crop images

         

danielm28

2:21 pm on Jan 11, 2006 (gmt 0)

10+ Year Member



I am currently building an ecommerce website.

In the administration tool, you can upload images of pets.
I need the code to be able to crop the image that I just uploaded and place it on the homepage in a small circle.

Any suggestions on how to do this?
I've been told that this can be done with AspCanvas but I haven't been able to figure out the code for this.

<Sorry, no personal URLs.
See Terms of Service [webmasterworld.com]>

[edited by: tedster at 1:17 am (utc) on Jan. 12, 2006]

defanjos

10:25 pm on Jan 11, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



See if your hosting company offers an ASP component like ASPjpeg or ASPimage - they both can do it for you.

Look for examples of the code online.
Use a search like "aspimage examples"

danielm28

1:17 am on Jan 12, 2006 (gmt 0)

10+ Year Member



They do provide AspImage. I'm having a difficult time finding an example similar to defining an image path, then modifying the image. Do you have any examples of that?

Thanks for your help

mrMister

8:46 am on Jan 13, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This can also be done from within ASP.Net.

What exactly are you trying to acheive. Are you wanting to reduce the physical dimensions of the image or are you just wanting to change a square/rectangle image in to a circle/oval image?

If it's the latter, it would probably be easier and quicker to use HTML layers or tables in your output to mask out the corners.

danielm28

7:42 pm on Jan 15, 2006 (gmt 0)

10+ Year Member



mrMister,

I want to reduce dimensions of uploaded images and change the image into a circle. To see an example of the manual modifications I've made, see petsponsor site (asp coded). Any advice on how to do both of these things when local image is uploaded?