Re: [Tutor] question about manipulate images!

2011-01-17 Thread Corey Richardson
On 01/17/2011 10:34 AM, zhengqing gan wrote:
> Hi,
>Thanks for the reply.
>But I found that there are some website which can convert images
> into iphone icon style images, there should be an kind of algorithm to
> manipulate.
>Thanks!
> 
> 

>From playing with
http://wizardtoolkit.com/shooter/iPhone-Icon-Generator, it appears all
that needs to be done is add a semi- or completely-transparent ovalish
blob on the top, and possibly a metallic looking frame. While I'm sure
you could take the (probably) tens to hundreds of hours finding a
mathematical formula to define that, you can probably just whip up some
semi-transparent blobs in GIMP/Photoshop/what-have-you and a metallic
frame. Then you can use PIL to combine them. Try:
http://python-forum.com/pythonforum/viewtopic.php?f=3&t=3462&start=0
http://stackoverflow.com/questions/3374878/with-the-python-imaging-library-pil-how-does-one-compose-an-image-with-an-alph

~Corey
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] question about manipulate images!

2011-01-17 Thread Eduardo Vieira
Hi. Try to find a tutorial on the steps to achieve such effect in a graphic
program. Then map it to the scrpting steps to do the same with pil, python
for gimp, for inkscape or simply Imagemagick.

On 2011-01-17 8:37 AM, "zhengqing gan"  wrote:

Hi,
  Thanks for the reply.
  But I found that there are some website which can convert images
into iphone icon style images, there should be an kind of algorithm to
manipulate.
  Thanks!



On Mon, Jan 17, 2011 at 3:33 AM, Elwin Estle 
wrote:
>
>
> --- On Sun,...
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] question about manipulate images!

2011-01-17 Thread zhengqing gan
Hi,
   Thanks for the reply.
   But I found that there are some website which can convert images
into iphone icon style images, there should be an kind of algorithm to
manipulate.
   Thanks!


On Mon, Jan 17, 2011 at 3:33 AM, Elwin Estle  wrote:
>
>
> --- On Sun, 1/16/11, zhengqing gan  wrote:
>
>> From: zhengqing gan 
>> Subject: [Tutor] question about manipulate images!
>> To: tutor@python.org
>> Date: Sunday, January 16, 2011, 11:37 PM
>> Hi, All:
>>      I have a question about
>> manipulating images.
>>      If I have a image, is there a kind
>> of algorithm to convert it
>> into kind of Iphone icon style? part transparent,
>> gradient
>>      Thanks!
>
> You might be better off using a program like Photoshop, The Gimp, or perhaps 
> even Inkscape for this.
>
>
>
>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] question about manipulate images!

2011-01-17 Thread Alan Gauld

"zhengqing gan"  wrote

I have a question about manipulating images.


In Python that usually translates to use PIL...


If I have a image, is there a kind of algorithm to convert it
into kind of Iphone icon style? part transparent, gradient


PIL can do most of that but you will need to understand 
exactly which transformations you need to apply which will 
require some background research on your part.


wikipedia is always a good starting point.

HTH

--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] question about manipulate images!

2011-01-17 Thread Elwin Estle


--- On Sun, 1/16/11, zhengqing gan  wrote:

> From: zhengqing gan 
> Subject: [Tutor] question about manipulate images!
> To: tutor@python.org
> Date: Sunday, January 16, 2011, 11:37 PM
> Hi, All:
>      I have a question about
> manipulating images.
>      If I have a image, is there a kind
> of algorithm to convert it
> into kind of Iphone icon style? part transparent,
> gradient
>      Thanks!

You might be better off using a program like Photoshop, The Gimp, or perhaps 
even Inkscape for this.


  
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor