Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #55470 > unrolled thread

Image manipulation

Started bymarkotaht@gmail.com
First post2013-10-04 03:52 -0700
Last post2013-10-08 07:57 -0700
Articles 9 — 5 participants

Back to article view | Back to comp.lang.python


Contents

  Image manipulation markotaht@gmail.com - 2013-10-04 03:52 -0700
    Re: Image manipulation Gary Herron <gary.herron@islandtraining.com> - 2013-10-04 09:14 -0700
    Re: Image manipulation markotaht@gmail.com - 2013-10-06 06:19 -0700
      Re: Image manipulation Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2013-10-06 15:24 +0200
    Re: Image manipulation markotaht@gmail.com - 2013-10-08 07:15 -0700
      Re: Image manipulation Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-10-08 14:26 +0000
        Re: Image manipulation markotaht@gmail.com - 2013-10-08 07:55 -0700
          How to help us to help you (was: Image manipulation) Ben Finney <ben+python@benfinney.id.au> - 2013-10-09 08:05 +1100
    Re: Image manipulation markotaht@gmail.com - 2013-10-08 07:57 -0700

#55470 — Image manipulation

Frommarkotaht@gmail.com
Date2013-10-04 03:52 -0700
SubjectImage manipulation
Message-ID<67342b91-2ca5-46e9-b887-cda31fe96697@googlegroups.com>
Is there a way using the python 3.3.2 whidout any additional downloaded moduls, to get a pixels RGB value?

[toc] | [next] | [standalone]


#55482

FromGary Herron <gary.herron@islandtraining.com>
Date2013-10-04 09:14 -0700
Message-ID<mailman.724.1380903700.18130.python-list@python.org>
In reply to#55470
On 10/04/2013 03:52 AM, markotaht@gmail.com wrote:
> Is there a way using the python 3.3.2 whidout any additional downloaded moduls, to get a pixels RGB value?

No (I guess).


If you want a better answer, then you'll have to give us a *much* better 
question.   Get a pixel from *what*?  (screen?  image on disk?  image on 
web page?  printed image on paper?  ...?) On what operating system?  
Using what kind of a graphics/imaging hardware/software?   How are said 
pixels being written?

Please understand how broad the term pixel is and how little information 
your question has provided.   Try again with a full description of what 
you want, and we'll try to provide a useful answer.

Gary Herron

[toc] | [prev] | [next] | [standalone]


#56254

Frommarkotaht@gmail.com
Date2013-10-06 06:19 -0700
Message-ID<db8cde32-611a-461f-9227-7701bb1cf4bc@googlegroups.com>
In reply to#55470
Image consists of pixels. Each pixel has its RGBA values. In python whidout any extra downloadable modules, is there a way to get those values. I know PIG has it but i hav Python 3.3.2 so PIG wont do. In java under swingx there is a command called .getRGB() and whit some manipulation to that value i can get the R G B and A. Is there something similar in python?

[toc] | [prev] | [next] | [standalone]


#56255

FromChris “Kwpolska” Warrick <kwpolska@gmail.com>
Date2013-10-06 15:24 +0200
Message-ID<mailman.780.1381065878.18130.python-list@python.org>
In reply to#56254
On Sun, Oct 6, 2013 at 3:19 PM,  <markotaht@gmail.com> wrote:
> Image consists of pixels. Each pixel has its RGBA values. In python whidout any extra downloadable modules, is there a way to get those values. I know PIG has it but i hav Python 3.3.2 so PIG wont do.

PIG?  Did you mean PIL?  In that case, go use Pillow, the Python
3-compatible fork.
-- 
Chris “Kwpolska” Warrick <http://kwpolska.tk>
PGP: 5EAAEA16
stop html mail | always bottom-post | only UTF-8 makes sense

[toc] | [prev] | [next] | [standalone]


#56400

Frommarkotaht@gmail.com
Date2013-10-08 07:15 -0700
Message-ID<ddcaf850-15b6-47e0-88db-4058d48495bd@googlegroups.com>
In reply to#55470
First helpful advice i have gotten from this forum

[toc] | [prev] | [next] | [standalone]


#56402

FromSteven D'Aprano <steve+comp.lang.python@pearwood.info>
Date2013-10-08 14:26 +0000
Message-ID<52541618$0$29984$c3e8da3$5496439d@news.astraweb.com>
In reply to#56400
On Tue, 08 Oct 2013 07:15:46 -0700, markotaht wrote:

> First helpful advice i have gotten from this forum

If you insist on dropping cryptic comments with bad spelling, incoherent 
sentences, and a complete lack of any context, it might be the last 
advice you get too.

Please help us to help you. We are not mind readers, we cannot read your 
mind and magically understand what you are talking about. Please include 
content when replying to an posts. Please take the time to try to explain 
your questions, with proper grammar and syntax and spelling. We will make 
allowances if English is not your native language, but we won't make 
allowances if you are just being lazy.

Please show small code snippets that demonstrate the problem. You should 
read this site: even though it is written for Java, the basic ideas hold 
for Python as well.

http://sscce.org


Remember that we are volunteers and we are not being paid to help you. 
The harder you make it for us to understand your posts, the less likely 
we are to solve your problem.


-- 
Steven

[toc] | [prev] | [next] | [standalone]


#56411

Frommarkotaht@gmail.com
Date2013-10-08 07:55 -0700
Message-ID<76c0f0ac-1135-4860-85f1-abbba09b54bc@googlegroups.com>
In reply to#56402
teisipäev, 8. oktoober 2013 17:26.33 UTC+3 kirjutas Steven D'Aprano:
> On Tue, 08 Oct 2013 07:15:46 -0700, markotaht wrote:
> 
> 
> 
> > First helpful advice i have gotten from this forum
> 
> 
> 
> If you insist on dropping cryptic comments with bad spelling, incoherent 
> 
> sentences, and a complete lack of any context, it might be the last 
> 
> advice you get too.
> 
> 
> 
> Please help us to help you. We are not mind readers, we cannot read your 
> 
> mind and magically understand what you are talking about. Please include 
> 
> content when replying to an posts. Please take the time to try to explain 
> 
> your questions, with proper grammar and syntax and spelling. We will make 
> 
> allowances if English is not your native language, but we won't make 
> 
> allowances if you are just being lazy.
> 
> 
> 
> Please show small code snippets that demonstrate the problem. You should 
> 
> read this site: even though it is written for Java, the basic ideas hold 
> 
> for Python as well.
> 
> 
> 
> http://sscce.org
> 
> 
> 
> 
> 
> Remember that we are volunteers and we are not being paid to help you. 
> 
> The harder you make it for us to understand your posts, the less likely 
> 
> we are to solve your problem.
> 
> 
> 
> 
> 
> -- 
> 
> Steven

Well english isnt my native language, and there are things i just dont know how to explain in any language. And i cant give all the codes i am using, since there are loads of pieces i do not own, but i know the people who made them.

[toc] | [prev] | [next] | [standalone]


#56443 — How to help us to help you (was: Image manipulation)

FromBen Finney <ben+python@benfinney.id.au>
Date2013-10-09 08:05 +1100
SubjectHow to help us to help you (was: Image manipulation)
Message-ID<mailman.873.1381266363.18130.python-list@python.org>
In reply to#56411
markotaht@gmail.com writes:

> Well english isnt my native language, and there are things i just dont
> know how to explain in any language.

I sympathise with attempting to explain things in a foreign language.
Sorry that you have that difficulty here.

But the rest of Steven's advice is sound: you need to help us to help
you.

One way to do that: Please don't use Google Groups to post here, it
mangles your replies in ways that make it difficult for you to be
understood <URL:https://wiki.python.org/moin/GoogleGroupsPython>.

> And i cant give all the codes i am using, since there are loads of
> pieces i do not own, but i know the people who made them.

So you need to present examples that are short, self-contained, correct,
compilable <URL:http://sscce.org/>. That may entail you writing the
examples for the purpose of posting them here; but do run them yourself
before posting!

You'll often learn about the problem without needing our input if you do
it that way. And if you don't, then you have a tool that will definitely
get you better responses here.

-- 
 \        “The problem with television is that the people must sit and |
  `\    keep their eyes glued on a screen: the average American family |
_o__)                 hasn't time for it.” —_The New York Times_, 1939 |
Ben Finney

[toc] | [prev] | [next] | [standalone]


#56412

Frommarkotaht@gmail.com
Date2013-10-08 07:57 -0700
Message-ID<dbd19529-91c3-43aa-9642-a7eee3b094d2@googlegroups.com>
In reply to#55470
I rembembered a bit too late, are there any good tutorials for Pillow? 
ImageTk.PhotoImage() keeps giving me error that there isnt such a method.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web