[issue33283] Mention PNG as a supported image format by Tcl/Tk

2018-04-15 Thread Ned Deily
Change by Ned Deily : -- Removed message: https://bugs.python.org/msg315333 ___ Python tracker ___

[issue33283] Mention PNG as a supported image format by Tcl/Tk

2018-04-15 Thread Ned Deily
Ned Deily added the comment: (As a side note to Sehiy and others, as of 2.7.15, we no longer ship any python.org macOS binary installers that link with Tcl/Tk 8.4 and we also now ship at least one installer variant for 2.7.x and 3.6.x that provides Tcl/Tk 8.6. 3.7.0 will be

[issue33283] Mention PNG as a supported image format by Tcl/Tk

2018-04-15 Thread Ned Deily
Ned Deily added the comment: (As a side note to Serhiy and others, as of 2.7.15, we no longer ship any python.org macOS binary installers that link with Tcl/Tk 8.4 and we also now ship at least one installer variant for 2.7.x and 3.6.x that provides Tcl/Tk 8.6. 3.7.0 will

[issue33283] Mention PNG as a supported image format by Tcl/Tk

2018-04-15 Thread Andrés Delfino
Andrés Delfino added the comment: I have updated the PR. Hopefully, it addreses Serhiy's comments. -- ___ Python tracker ___

[issue33283] Mention PNG as a supported image format by Tcl/Tk

2018-04-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, the minimal version of Tcl/Tk for supporting PNG should be mentioned. -- ___ Python tracker

[issue33283] Mention PNG as a supported image format by Tcl/Tk

2018-04-15 Thread Andrés Delfino
Andrés Delfino added the comment: This brings the question: should the documentation follow what Python provides, or the minimum supported version? Maybe a compromise is to have a "requires Tcl/Tk 8.6" note? -- ___ Python

[issue33283] Mention PNG as a supported image format by Tcl/Tk

2018-04-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The minimal supported version is 8.4 in 3.x and 8.3 in 2.7, which don't support PNG. -- components: +Tkinter nosy: +serhiy.storchaka, terry.reedy versions: +Python 2.7, Python 3.6, Python 3.7

[issue33283] Mention PNG as a supported image format by Tcl/Tk

2018-04-15 Thread Andrés Delfino
Change by Andrés Delfino : -- keywords: +patch pull_requests: +6179 stage: -> patch review ___ Python tracker ___

[issue33283] Mention PNG as a supported image format by Tcl/Tk

2018-04-15 Thread Andrés Delfino
ention PNG as a supported image format by Tcl/Tk type: enhancement versions: Python 3.8 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33283> ___ _

[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-08 Thread R. David Murray
R. David Murray added the comment: Thanks, nitishch. As I said, I'm not going to backport this unless someone advances an argument in favor that discusses the possible backward compatibility issue. (I'm not sure there are any significant ones, but someone needs to

[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-08 Thread R. David Murray
R. David Murray <rdmur...@bitdance.com> added the comment: New changeset ede157331b4f9e550334900b3b4de1c8590688de by R. David Murray (Nitish Chandra) in branch 'master': bpo-22589 Changed MIME type of .bmp to "image/bmp" (#4756) https://github.com/pytho

[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-08 Thread Nitish
Change by Nitish : -- nosy: +nitishch ___ Python tracker ___ ___

[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-08 Thread Nitish
Change by Nitish : -- keywords: +patch pull_requests: +4659 stage: -> patch review ___ Python tracker ___

[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-05 Thread R. David Murray
R. David Murray added the comment: That's the basis, but its a bit more complicated than that (NEWS item, putting bpo-22589 in the issue title, the question of signing a CLA, though a CLA doesn't really matter for this kind of change IMO). If you can't do it one of

[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-05 Thread Jonathan Watt
Jonathan Watt added the comment: I'm unfamiliar with the Python contribution procedures. If it's simply a case of cloning from github.com and putting up a PR then I can do that. I'm overloaded currently though, so if it's more involved than that it may take me a while to

[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-05 Thread Jonathan Watt
Jonathan Watt <jw...@jwatt.org> added the comment: > If image/bmp is now[*] the official IANA type You can find image/bmp here: https://www.iana.org/assignments/media-types/media-types.xhtml#image -- ___ Python tracker <rep...@bug

[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-05 Thread R. David Murray
R. David Murray <rdmur...@bitdance.com> added the comment: If image/bmp is now[*] the official IANA type, mimetypes should use that. However, because this is a change with possible backward compatibility issues, it should probably only go into 3.7, but I'm open to arguments

[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-05 Thread Jonathan Watt
Jonathan Watt <jw...@jwatt.org> added the comment: I should note that while Chrome will refuse to open an image/x-ms-bmp file directly, when loaded as an image embedded in a document (e.g. via HTML's ) then Chrome doesn't care what MIME type it has. It will sniff the image stream and

[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-05 Thread Jonathan Watt
Jonathan Watt <jw...@jwatt.org> added the comment: Using image/x-ms-bmp because that's all that IE7 supports makes no sense. Chrome doesn't support image/x-ms-bmp (it only supports the official IANA type image/bmp), so if the concern is over browser support then it's clear that

how to get image url from django form

2017-04-15 Thread Xristos Xristoou
i have create a simple django form where the authentication user can select one of personal images where have upload before and i want do something with that request in my views.py. but i dont know how to take the image url from that request in my view because first i using request.user

Re: closing image automatically in for loop , python

2017-04-12 Thread William Ray Wing
ameters. I have two request: > > 1- my Problem is that for Showing successive Images in for Loop I have to > Close the Image MANAULLY each time to read next sdf file. can anyone please > tell me which command do I have to use so the code Close the Images > automatically. > I n

Re: closing image automatically in for loop , python

2017-04-12 Thread Frank Miles
On Wed, 12 Apr 2017 04:18:45 -0700, Masoud Afshari wrote: > filename ="Ex_resample" +'_sdf_'+ str(n)+'.dat' > with open(filename, 'rb') as f: #read binary file data = np.fromfile(f, > dtype='float64', count=nx*ny) #float64 for Double precision float numbers > Ex = np.reshape(data, [ny, nx],

closing image automatically in for loop , python

2017-04-12 Thread Masoud Afshari
the Image MANAULLY each time to read next sdf file. can anyone please tell me which command do I have to use so the code Close the Images automatically. 2- more over, can anyone please tell me how can I create a movie with this code. in the following you can see my code

Re: Pillow ImportError: No module named Image

2017-04-10 Thread Jon Ribbens
On 2017-04-10, jorge.conr...@cptec.inpe.br <jorge.conr...@cptec.inpe.br> wrote: > I installed the Pillow in my computer. The I did: > > import Image, ImageMath > > ImportError: No module named Image Try: from PIL import Image, ImageMath -- https://mail.python.org/ma

Pillow ImportError: No module named Image

2017-04-10 Thread jorge . conrado
Hi, I installed the Pillow in my computer. The I did: import Image, ImageMath ImportError: No module named Image Please, what can I do to solve this. Conrado -- https://mail.python.org/mailman/listinfo/python-list

DJANGO image processing

2017-02-11 Thread Xristos Xristoou
I want to create a django app with the base64 help where the users can upload images(specific ".tiff" ext) using DJANGO forms without model and without that images store in my server. and i will the users can be get back new processing image. i have success with encode/decode image w

image handling(donwloading/display) in django using html and form

2017-02-04 Thread Xristos Xristoou
i want to do some image processing using Django and now work and on the image handling(donwloading/display) using Django. first on my task i dont want to store that images on my server. but i have some problems. that my code : urls.py from django.conf.urls import url from . import views

[issue29276] HTMLParser in Python 2.7 doesn't recognize image tags wrapped up in link tags

2017-01-14 Thread Ari
Ari added the comment: Sorry, it was a false alarm. I had a poorly constructed testcase. I was trying to grab all image links from html markup while simultaneously substituting image links to somesite.com with links to anothersite.com. I had handle_starttag and handle_startendtag defined

[issue29276] HTMLParser in Python 2.7 doesn't recognize image tags wrapped up in link tags

2017-01-14 Thread Brendan Donegan
Brendan Donegan added the comment: I even get the correct behaviour in 2.7.12: Python 2.7.12+ (default, Sep 17 2016, 12:08:02) [GCC 6.2.0 20160914] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from HTMLParser import HTMLParser >>> class

[issue29276] HTMLParser in Python 2.7 doesn't recognize image tags wrapped up in link tags

2017-01-14 Thread Xiang Zhang
Xiang Zhang added the comment: I can get the expected behaviour with the lastest 2.7 build. Python 2.7.13+ (2.7:0d4e0a736688, Jan 15 2017, 00:51:57) [GCC 5.2.1 20151010] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from HTMLParser import HTMLParser >>>

[issue29276] HTMLParser in Python 2.7 doesn't recognize image tags wrapped up in link tags

2017-01-14 Thread Ari
countered a start tag:", tag) parser = MyHTMLParser() parser.feed('http://somesite.com/large_image.jpg;>http://somesite.com/small_image.jpg; width="800px" />') -- components: Library (Lib) messages: 285490 nosy: Ari priority: normal severity: normal status: open title: HTMLParser

Re: need help to get my python image to move around using tkinter

2016-11-18 Thread Thomas Grops via Python-list
thankyou so much, that is the exact help I required to put me in the right direction :D -- https://mail.python.org/mailman/listinfo/python-list

Re: need help to get my python image to move around using tkinter

2016-11-18 Thread Peter Otten
twgrops--- via Python-list wrote: > Hi I am new here and to python, > > I am currently studying towards my degree in computer science and have to > build a program but I have hit a brick wall. I am trying to make an image > move around the canvas. I can make a rectangle move usin

need help to get my python image to move around using tkinter

2016-11-18 Thread twgrops--- via Python-list
Hi I am new here and to python, I am currently studying towards my degree in computer science and have to build a program but I have hit a brick wall. I am trying to make an image move around the canvas. I can make a rectangle move using the following: #test rectangle id1

How to overlay data points on a static google image?

2016-10-18 Thread Madhavan Bomidi
Hello everyone, I have been using IDL for making plots until recently and currently transitioning to Python programming. I have a task to obtain a static google image for my region of interest and then overlay the variable frequency counts at different lat-long coordinates. While I have

delete pixel from the raster image with specific range value

2016-10-08 Thread chrischris201444
any idea how to delete pixel from the raster image with specific range value using numpy/scipy or gdal? for example i have a raster image with the 5 class : 1. 0-100 2. 100-200 3. 200-300 4. 300-500 5. 500-1000 and i want to delete class 1 range value or maybe class 1,2,4,5 -- https

Re: Why my image cannot be displayed?

2016-08-13 Thread huey . y . jiang
On Friday, August 12, 2016 at 9:40:15 PM UTC-4, huey.y...@gmail.com wrote: > Hi All, > > Image display drives me crazy. After I get it displayed, and want to do the > job with a class, display failed again. Please take a look at my trial code: > > from Tkinter import * >

Re: Why my image cannot be displayed?

2016-08-12 Thread MRAB
On 2016-08-13 02:40, huey.y.ji...@gmail.com wrote: Hi All, Image display drives me crazy. After I get it displayed, and want to do the job with a class, display failed again. Please take a look at my trial code: from Tkinter import * class imageDisplay: def __init__(self, parent=None

Why my image cannot be displayed?

2016-08-12 Thread huey . y . jiang
Hi All, Image display drives me crazy. After I get it displayed, and want to do the job with a class, display failed again. Please take a look at my trial code: from Tkinter import * class imageDisplay: def __init__(self, parent=None): canvas = Canvas(width=400, height

Re: cropping a random part of an image

2016-08-10 Thread drewes . mil
Ok, now it works for me! Thanks again! import random, os, time from PIL import Image INPATH = ('/home/.../Start/') OUTPATH = ('/home/.../Ziel/') dx = dy = 228 tilesPerImage = 25 files = os.listdir(INPATH) numOfImages = len(files) print(files) t = time.time() for file in files: im

Re: cropping a random part of an image

2016-08-10 Thread drewes . mil
Ok, did it :) import random, os, time from PIL import Image INPATH = ('/home/sdrewes/Desktop/Portaits/Bilder/Test/') OUTPATH = ('/home/sdrewes/Desktop/Portaits/Bilder/Gut_Crop/') dx = dy = 228 tilesPerImage = 100 files = os.listdir(INPATH) numOfImages = len(files) print(files) t = time.time

Re: cropping a random part of an image

2016-08-10 Thread drewes . mil
Hi Robin, I tried to understand and run your code, and I get the Error: "File "Rand_Crop.py", line 15, in with Image.open(os.path.join(INPATH, file)) as im: File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 528, in __getattr__ raise AttributeError(name) AttributeError:

Re: cropping a random part of an image

2016-08-10 Thread drewes . mil
Hi Peter, Hi Robin, thanks for your help, and especially for the code ;) @Peter: thanks for the links, I know, it is always better to write the code than to copy and paste! @Robin: the question, iḿ trying to answer is, if good pictures, in this case portraits, also have good "Parts", so if

Re: cropping a random part of an image

2016-08-09 Thread Robin Koch
over different subfolders, os.walk() is the better way to do it. You could add a counter (see: enumerate()) to have a better overview over the progress. Also you might have other preferences for the location of the tiles. (e.g. one folder per image). # Cuts random tiles from pictures

Re: cropping a random part of an image

2016-08-09 Thread Peter Otten
files with https://docs.python.org/dev/library/os.html#os.walk find out the image size and process the image with pillow http://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.size http://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.Image.crop using https://docs.pyth

cropping a random part of an image

2016-08-09 Thread drewes . mil
Hi, I'm new to python and I have 30.000 pictures. I need to crop, let's say 100, parts of 256x256, randomly out of every picture. I cant find an answer in the net, would be nice if someone could help me out! Thanks! Steffen -- https://mail.python.org/mailman/listinfo/python-list

Re: Image loading problem

2016-05-22 Thread Christian Gollwitzer
Am 22.05.16 um 22:19 schrieb Random832: On Sun, May 22, 2016, at 15:37, Michael Torrie wrote: The reference is indeed held by the label but the problem is the label is a Tcl/Tk object, thinly wrapped in Python. Okay but then in that case why doesn't the image get instantiated as a Tcl/Tk

Re: Image loading problem

2016-05-22 Thread Random832
On Sun, May 22, 2016, at 15:37, Michael Torrie wrote: > The reference is indeed held by the label but the problem is the label > is a Tcl/Tk object, thinly wrapped in Python. Okay but then in that case why doesn't the image get instantiated as a Tcl/Tk object which the label holds a ref

Re: Image loading problem

2016-05-22 Thread Michael Torrie
On 05/21/2016 01:55 PM, Random832 wrote: > On Sat, May 21, 2016, at 12:54, Peter Otten wrote: >> It's not your fault, there's an odd quirk in the library: you have to >> keep a reference of the PhotoImage instance around to prevent the >> image from being garbage-col

Re: Image loading problem

2016-05-22 Thread Peter Otten
Random832 wrote: > On Sat, May 21, 2016, at 12:54, Peter Otten wrote: >> It's not your fault, there's an odd quirk in the library: you have to >> keep a reference of the PhotoImage instance around to prevent the >> image from being garbage-collected. > >

Re: Image loading problem

2016-05-21 Thread huey . y . jiang
Thanks so much! All of methods works! -- https://mail.python.org/mailman/listinfo/python-list

Re: Image loading problem

2016-05-21 Thread Random832
On Sat, May 21, 2016, at 12:54, Peter Otten wrote: > It's not your fault, there's an odd quirk in the library: you have to > keep a reference of the PhotoImage instance around to prevent the > image from being garbage-collected. Just out of curiosity, why is this a "quirk"

Re: Image loading problem

2016-05-21 Thread Terry Reedy
On 5/21/2016 12:54 PM, Peter Otten wrote: sweating_...@yahoo.com wrote: I am working on an image project, and I can display my image in main(). I mean, I can load my image in my main(). Needless, it is awkward. I am trying to load my image with a function, but got an empty image window popped

Re: Image loading problem

2016-05-21 Thread Gary Herron
On 05/21/2016 08:22 AM, sweating_...@yahoo.com wrote: Hi All, I am working on an image project, and I can display my image in main(). I mean, I can load my image in my main(). Needless, it is awkward. I am trying to load my image with a function, but got an empty image window popped up

Re: Image loading problem

2016-05-21 Thread Peter Pearson
On Sat, 21 May 2016 08:22:41 -0700 (PDT), sweating_...@yahoo.com wrote: > > I am working on an image project, and I can display my image in > main(). I mean, I can load my image in my main(). Needless, it is > awkward. I am trying to load my image with a function, but got an > emp

Re: Image loading problem

2016-05-21 Thread Peter Otten
sweating_...@yahoo.com wrote: > I am working on an image project, and I can display my image in main(). I mean, I can load my image in my main(). Needless, it is awkward. I am trying to load my image with a function, but got an empty image window popped up, no image content loaded. Please t

Image loading problem

2016-05-21 Thread sweating_...@yahoo.com
Hi All, I am working on an image project, and I can display my image in main(). I mean, I can load my image in my main(). Needless, it is awkward. I am trying to load my image with a function, but got an empty image window popped up, no image content loaded. Please take a look at code: rom

Re: Request More Help With XBM Image

2016-03-01 Thread Wildman via Python-list
On Tue, 01 Mar 2016 12:56:03 -0600, Wildman wrote: > On Tue, 01 Mar 2016 19:26:55 +0100, Peter Otten wrote: > >> An exception is raised because you pass the command as a single argument > > > > I did not realize that how the command was passed would > make such a difference. I guess I am

Re: Request More Help With XBM Image

2016-03-01 Thread Wildman via Python-list
On Tue, 01 Mar 2016 20:30:59 +0100, Christian Gollwitzer wrote: > Am 29.02.16 um 22:51 schrieb Wildman: >> I want to take an image file, convert it to XBM format and >> display it. Thanks to Mr. Otten I can open and display the >> XBM image without any problems. T

Re: Request More Help With XBM Image

2016-03-01 Thread Christian Gollwitzer
Am 29.02.16 um 22:51 schrieb Wildman: I want to take an image file, convert it to XBM format and display it. Thanks to Mr. Otten I can open and display the XBM image without any problems. The script first calls an external program for the image conversion then I can open and display

Re: Request More Help With XBM Image

2016-03-01 Thread Wildman via Python-list
On Tue, 01 Mar 2016 19:26:55 +0100, Peter Otten wrote: > An exception is raised because you pass the command as a single argument I did not realize that how the command was passed would make such a difference. I guess I am stuck in my old VB habits for creating variables. You don't have to

Re: Request More Help With XBM Image

2016-03-01 Thread Peter Otten
Wildman via Python-list wrote: > On Tue, 01 Mar 2016 09:56:56 +0100, Peter Otten wrote: >> Wildman via Python-list wrote: >>> convert = "convert " + fileName + " -resize 48x48! -threshold 55% xbm:-" >>> p = subprocess.Popen([convert], stdout=subprocess.PIPE, shell=True) >>> xbmFile, err =

Re: Request More Help With XBM Image

2016-03-01 Thread Wildman via Python-list
On Tue, 01 Mar 2016 09:56:56 +0100, Peter Otten wrote: > Wildman via Python-list wrote: > >> I want to take an image file, convert it to XBM format and >> display it. Thanks to Mr. Otten I can open and display the >> XBM image without any problems. The script first call

Re: Request More Help With XBM Image

2016-03-01 Thread Peter Otten
Wildman via Python-list wrote: > I want to take an image file, convert it to XBM format and > display it. Thanks to Mr. Otten I can open and display the > XBM image without any problems. The script first calls an > external program for the image conversion then I can open &

Request More Help With XBM Image

2016-02-29 Thread Wildman via Python-list
I want to take an image file, convert it to XBM format and display it. Thanks to Mr. Otten I can open and display the XBM image without any problems. The script first calls an external program for the image conversion then I can open and display it. Of course, I am left with the XBM file

Re: Request Help With Displaying XBM Image

2016-02-26 Thread Wildman via Python-list
On Fri, 26 Feb 2016 22:49:58 +0100, Peter Otten wrote: > Wildman via Python-list wrote: > It's not you, the program as you wrote it should and would show the image, > were it not for an odd quirk in how images are handled in tkinter: > > You have to keep an explicit referen

Re: Request Help With Displaying XBM Image

2016-02-26 Thread Peter Otten
Wildman via Python-list wrote: > As part of a program I am working on I want to display a > 48x48 XBM image on the main window. I have done a lot > of searching for code snippets and I found what appears > to be the correct way to do it using a Label. So far I > have not b

Request Help With Displaying XBM Image

2016-02-26 Thread Wildman via Python-list
As part of a program I am working on I want to display a 48x48 XBM image on the main window. I have done a lot of searching for code snippets and I found what appears to be the correct way to do it using a Label. So far I have not been able to get it to work. I have tried different variations

[issue26337] Bypass imghdr module determines the type of image

2016-02-11 Thread Ramin Farajpour Cami
Changes by Ramin Farajpour Cami : -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue26337] Bypass imghdr module determines the type of image

2016-02-11 Thread Steven D'Aprano
Steven D'Aprano added the comment: I'm sorry, I don't understand what you think is the bug here. It looks like you are passing a corrupted file which has a PNG extension but is not actually a PNG file (it contains PHP code). What do you expect should happen? -- nosy: +steven.daprano

[issue26337] Bypass imghdr module determines the type of image

2016-02-11 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: images can be served with a content type of text/html,(which means we can certainly inject HTML). -- ___ Python tracker

[issue26337] Bypass imghdr module determines the type of image

2016-02-11 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: In normal if you choose a image and open image with editor set codes to image you get error , but I able to bypass image for upload if I use module imghdr for check valid image , booom upload image with malicious code

[issue26337] Bypass imghdr module determines the type of image

2016-02-10 Thread Ramin Farajpour Cami
module determines the type of image type: behavior versions: Python 3.5 Added file: http://bugs.python.org/file41891/phppng.png ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

bgpic doesn't show background image for turtle

2016-01-19 Thread Jean Richelle
Hello, I'm trying to have a background image for the turtle graphics. bgpic("filename.gif") works correctly in terminal mode but I'm getting an error when it is in a python program : File "VisuProg3.0.564.py", line 2206, in afficheLabyrinthe bgpic("L1.gif"

Re: Why my image is in bad quality ?

2015-12-17 Thread fsn761304
On Thursday, December 17, 2015 at 5:27:28 AM UTC+4, Nobody wrote: > On Wed, 16 Dec 2015 06:04:37 -0800, fsn761304 wrote: > > > pixbufObj = Gdk.pixbuf_get_from_window(window, x, y, width, height) ... > > image = Image.frombuffer(&qu

Re: Why my image is in bad quality ?

2015-12-16 Thread fsn761304
...here is the bad image: http://wikisend.com/download/748118/saved.png -- https://mail.python.org/mailman/listinfo/python-list

Re: Why my image is in bad quality ?

2015-12-16 Thread fsn761304
@gmail.com> wrote: > >> > I tried also another code (see below) and without scaling by 20 quality > >> > of recognition was very bad. > >> > > >> > from pytesseract import image_to_string > >> > from PIL import Image > &

Re: Why my image is in bad quality ?

2015-12-16 Thread BartC
On 16/12/2015 17:17, fsn761...@gmail.com wrote: ...here is the bad image: http://wikisend.com/download/748118/saved.png This is 3000x600 pixels; what was the original size? (150x30?) What does the original look like? You need to test step by step to see at what point it goes wrong. You're

Re: Why my image is in bad quality ?

2015-12-16 Thread fsn761304
On Thursday, December 17, 2015 at 1:36:55 AM UTC+4, BartC wrote: > On 16/12/2015 17:17, fsn761...@gmail.com wrote: > > ...here is the bad image: http://wikisend.com/download/748118/saved.png > > > > This is 3000x600 pixels; what was the original size? (150x30?) > >

Re: Why my image is in bad quality ?

2015-12-16 Thread BartC
? (Which might let you see by how many pixels each successive line is out and could give a clue.) It does seem as though something is going amiss with recognising the image dimensions, or you've inadvertently applied a 'shear' or 'slant' transformation. (Maybe you can apply a reverse transform to fix

Re: Why my image is in bad quality ?

2015-12-16 Thread Nobody
On Wed, 16 Dec 2015 06:04:37 -0800, fsn761304 wrote: > pixbufObj = Gdk.pixbuf_get_from_window(window, x, y, width, height) ... > image = Image.frombuffer("RGB", (width, height), > pixbufObj.get_pixels(), 'raw', 'RGB', 0, 1) The second-to-l

Why my image is in bad quality ?

2015-12-16 Thread fsn761304
I'm trying to make OCR-recognition on a screenshot, after screenshot taken it goes to pibxbuffer, which content goes to pytesseract. But after using pixbuffer image quality is bad (I tried to save it in a directory, instead of pixbuffer, and looked at it). Below is the problematic snippets

Re: Why my image is in bad quality ?

2015-12-16 Thread Denis McMahon
On Wed, 16 Dec 2015 06:04:37 -0800, fsn761304 wrote: > I'm trying to make OCR-recognition on a screenshot, after screenshot > taken it goes to pibxbuffer, which content goes to pytesseract. > But after using pixbuffer image quality is bad > image = image.resize((width*

Re: Why my image is in bad quality ?

2015-12-16 Thread Chris Angelico
On Thu, Dec 17, 2015 at 1:21 AM, <fsn761...@gmail.com> wrote: > I tried also another code (see below) and without scaling by 20 quality of > recognition was very bad. > > from pytesseract import image_to_string > from PIL import Image > > im = Image.open(&qu

Re: Why my image is in bad quality ?

2015-12-16 Thread fsn761304
gt; > But after using pixbuffer image quality is bad > > > image = image.resize((width*20,height*20), Image.ANTIALIAS) > > This appears to attempt to extrapolate 400 pixels from each pixel in the > original image. > > That only works on TV crime dramas, you ca

Re: Why my image is in bad quality ?

2015-12-16 Thread fsn761304
ytesseract import image_to_string > > from PIL import Image > > > > im = Image.open("screen.png") > > print(im) > > im = im.resize((214*20,26*20), Image.ANTIALIAS) > > print(image_to_string(im)) > > If you need to scale by 20x20 to get the text rec

Re: Why my image is in bad quality ?

2015-12-16 Thread fsn761304
nd without scaling by 20 quality > > > of recognition was very bad. > > > > > > from pytesseract import image_to_string > > > from PIL import Image > > > > > > im = Image.open("screen.png") > > > print(im) > > > im =

Re: Why my image is in bad quality ?

2015-12-16 Thread Chris Angelico
without scaling by 20 quality of >> > recognition was very bad. >> > >> > from pytesseract import image_to_string >> > from PIL import Image >> > >> > im = Image.open("screen.png") >> > print(im) >> > im = im.resize((214*20,26*20),

Image download failure from wget.download function.

2015-12-09 Thread ashwath
Hi I am trying to download the image from a URL, I am able to download a file but after downloading if I try to open the image it says file format is corrupted or damaged. I use this function to download the image - wget.download('http:realpython.com//learn//python-first-steps

Re: Image download failure from wget.download function.

2015-12-09 Thread Peter Otten
ashw...@nanoheal.com wrote: > I am trying to download the image from a URL, I am able to download a > file but after downloading if I try to open the image it says file format > is corrupted or damaged. What version of python are you using? Where did you get the wget libary?

Getting started Image processing python

2015-11-16 Thread Vindhyachal Takniki
1. I want to learn basic image processing in python. (working on raspberry pi 2 board) 2. I have a image with different color dots like red,white, etc.After taking image, need to identify how many are red,white etc. I am looking for free image processing libs for that. Which one is better

Re: Error see image

2015-10-14 Thread Laura Creighton
In a message of Wed, 14 Oct 2015 03:03:31 -, laverdur...@gmail.com writes: >hello I have this error >while trying to re-install the program and it’s still show >can you please help me ? 1. If you are running XP, you cannot run 3.5. XP is not supported. 2. Otherwise The

Error see image

2015-10-14 Thread laverdure02
hello I have this error while trying to re-install the program and it’s still show can you please help me ? Thanks!-- https://mail.python.org/mailman/listinfo/python-list

Re: A photo/image/video sharing app in Python

2015-09-22 Thread Chris Angelico
On Tue, Sep 22, 2015 at 3:53 PM, Cai Gengyang wrote: > A piece of software that would let end users easily create gorgeous > real-life, real-time cartoons on the web might not exist yet. But if it were > possible to invent this and get it commercialised , it could indeed

Re: A photo/image/video sharing app in Python

2015-09-22 Thread Cai Gengyang
On Tuesday, September 22, 2015 at 2:34:20 PM UTC+8, Chris Angelico wrote: > On Tue, Sep 22, 2015 at 3:53 PM, Cai Gengyang wrote: > > A piece of software that would let end users easily create gorgeous > > real-life, real-time cartoons on the web might not exist yet. But if

Re: A photo/image/video sharing app in Python

2015-09-22 Thread Cai Gengyang
On Tuesday, September 22, 2015 at 5:48:26 PM UTC+8, Cai Gengyang wrote: > On Tuesday, September 22, 2015 at 2:34:20 PM UTC+8, Chris Angelico wrote: > > On Tue, Sep 22, 2015 at 3:53 PM, Cai Gengyang wrote: > > > A piece of software that would let end users easily create

Re: A photo/image/video sharing app in Python

2015-09-21 Thread Cai Gengyang
> > > > (what technologies would I need to learn to create this?) > > > > Magic. > > Seriously, have you already seen a software which does approximately the > image editing that you have in mind? If not, chances are that it is not > possible or possible only

Re: A photo/image/video sharing app in Python

2015-09-21 Thread Chris Angelico
On Mon, Sep 21, 2015 at 10:53 PM, Cai Gengyang wrote: > Ok, so basically these are the features I want the app to have : > > 1) A system where users can upload photos/images/videos of their loved ones > and family onto the web-based app (It's going to be web-based website)

Re: A photo/image/video sharing app in Python

2015-09-21 Thread Great Avenger Singh
On Monday, 21 September 2015 15:08:53 UTC+5:30, Cai Gengyang wrote: > Hello, > > > So, I want to use Python to design a photo/image/video sharing app that i can > >test on users. One Example is DropBox doing this at very large extent. ;) > I have Python 2.7.10, 3.3.2

Re: A photo/image/video sharing app in Python

2015-09-21 Thread Cai Gengyang
On Monday, September 21, 2015 at 7:38:21 PM UTC+8, Great Avenger Singh wrote: > On Monday, 21 September 2015 15:08:53 UTC+5:30, Cai Gengyang wrote: > > Hello, > > > > > > So, I want to use Python to design a photo/image/video sharing app that i > > can

<    1   2   3   4   5   6   7   8   9   10   >