Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jul 05, 2009 10:40 AM by akhhttar
0 Points
2 Posts
Jul 03, 2009 06:59 AM|LINK
Hi all,
I tried to search for this topic but could not find anything that can match with what I tried to do. Below are the requirements:
1. I will upload the image in TIF, GIF or JPG format. I need to convert to PNG. How to do this?
2. Once convert to PNG, I need to crop it so it is a squared image (crop means the longer edge will be cut from both side evenly)
3. I also need to make 3 corners rounded with 5px radius in 80x80 size. The rounded corners must be transparent (that's why I need PNG)
If you can help me with either one of three above, that would be great. Thanks!
Contributor
6506 Points
963 Posts
Jul 03, 2009 05:08 PM|LINK
Hi,
There is lots of stuff available on internet to convert an image format and cropping using .NET,
Please see following link for Image Format Convertion,
http://www.codeproject.com/KB/GDI-plus/dotnet_convertimage.aspx
Please see following link for Imange Cropping
http://www.codeplex.com/webcropimage/Wiki/View.aspx?title=Home
Hope it will work for you,
Thank You
Muhammad Akhtar Shiekh
Jul 03, 2009 05:41 PM|LINK
Hi Muhammad
Thanks so much. I was able to do 1 and 2. But how to do 3 especially the transparent corners. I made it rounded but it was black.
Jul 05, 2009 10:40 AM|LINK
Which browser you are using? It is a problem with IE6 that it doesn't support PNG's transparent background. There are some CSS and javascript based workarround available to display transparent background of PNG images in IE6.
Please see
http://www.twinhelix.com/css/iepngfix/
Thanks
quanghoc
0 Points
2 Posts
Rounded Corners PNG Thumbnail Image
Jul 03, 2009 06:59 AM|LINK
Hi all,
I tried to search for this topic but could not find anything that can match with what I tried to do. Below are the requirements:
1. I will upload the image in TIF, GIF or JPG format. I need to convert to PNG. How to do this?
2. Once convert to PNG, I need to crop it so it is a squared image (crop means the longer edge will be cut from both side evenly)
3. I also need to make 3 corners rounded with 5px radius in 80x80 size. The rounded corners must be transparent (that's why I need PNG)
If you can help me with either one of three above, that would be great. Thanks!
akhhttar
Contributor
6506 Points
963 Posts
Re: Rounded Corners PNG Thumbnail Image
Jul 03, 2009 05:08 PM|LINK
Hi,
There is lots of stuff available on internet to convert an image format and cropping using .NET,
Please see following link for Image Format Convertion,
http://www.codeproject.com/KB/GDI-plus/dotnet_convertimage.aspx
Please see following link for Imange Cropping
http://www.codeplex.com/webcropimage/Wiki/View.aspx?title=Home
Hope it will work for you,
Thank You
Muhammad Akhtar Shiekh
My Blog
quanghoc
0 Points
2 Posts
Re: Rounded Corners PNG Thumbnail Image
Jul 03, 2009 05:41 PM|LINK
Hi Muhammad
Thanks so much. I was able to do 1 and 2. But how to do 3 especially the transparent corners. I made it rounded but it was black.
akhhttar
Contributor
6506 Points
963 Posts
Re: Rounded Corners PNG Thumbnail Image
Jul 05, 2009 10:40 AM|LINK
Hi,
Which browser you are using? It is a problem with IE6 that it doesn't support PNG's transparent background. There are some CSS and javascript based workarround available to display transparent background of PNG images in IE6.
Please see
http://www.twinhelix.com/css/iepngfix/
Thanks
Muhammad Akhtar Shiekh
My Blog