Python Forum
PIL Image im.show() no show!
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PIL Image im.show() no show!
#1
For my little OMR programme, I need to crop the image I have into columns. Normally this works no problem.

The image is an A4 size .jpg. The 'bubbles' for each question are in rows and, in this case, 2 columns.

I have done this many many times. I keep entering coordinates for cropping, top left, bottom right, until I get what I want, then save the crop-coordinates.

Today something weird is wrong.

I load an image in /home/pedro/summer2022/OMR/20BE/pdf2jpg/20BE11.jpg to get the crop coordinates.

from PIL import Image, ImageOps
image = '/home/pedro/summer2022/OMR/20BE/pdf2jpg/20BE11.jpg'
Image opens the jpg, and im is the correct size, A4

Quote:>>> im = Image.open(image)
>>> im
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=1654x2339 at 0x7FB3AA6ABA30>

but when I try im.show()

Quote:>>> im.show()

I get "No images found in "file:///tmp/tmpw6yxazsp.PNG" (I can't see how to post the screenshot of the image of the output window, but that's what it says.)

This has always worked without a hitch!

Any clues as to what may be wrong? I guess an update changed something. A permissions thing??

I tried another Python programme I have to make little 5 question answer forms. Same problem, can't get the coordinates. Has always worked.
Reply


Messages In This Thread
PIL Image im.show() no show! - by Pedroski55 - Feb-06-2022, 11:32 AM
RE: PIL Image im.show() no show! - by snippsat - Feb-06-2022, 01:09 PM
RE: PIL Image im.show() no show! - by Pedroski55 - Feb-06-2022, 07:52 PM
RE: PIL Image im.show() no show! - by Pedroski55 - Feb-06-2022, 09:21 PM
RE: PIL Image im.show() no show! - by Pedroski55 - Feb-07-2022, 08:28 AM
RE: PIL Image im.show() no show! - by snippsat - Feb-07-2022, 11:42 AM
RE: PIL Image im.show() no show! - by Pedroski55 - Feb-08-2022, 06:32 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Can't get no email to show Raysz 0 459 Dec-11-2024, 03:44 PM
Last Post: Raysz
  Show powershell errors in flask-wtf web form robertkwild 14 2,503 Jun-30-2024, 03:15 PM
Last Post: robertkwild
  encode/decode to show correct country letters in a CTk combobox janeik 2 1,824 Sep-02-2023, 09:46 AM
Last Post: janeik
  PDF properties doesn't show created or modified date Pedroski55 4 2,500 Jun-19-2023, 08:09 AM
Last Post: Pedroski55
  Multiple.ui windows showing at the same time when I only want to show at a time eyavuz21 4 1,922 Dec-20-2022, 05:14 AM
Last Post: deanhystad
  How to get cell(x,y).value = "\'=name(p)" to show correctly ?? ozlevia 9 7,050 Oct-31-2022, 06:47 PM
Last Post: deanhystad
  Why doesn't it show me anything in print? Melcu54 2 1,527 Oct-01-2022, 12:07 AM
Last Post: snippsat
  PIL Image im.show() no show! Pedroski55 2 2,242 Sep-12-2022, 10:19 PM
Last Post: Pedroski55
Question Trouble installing modules/libraries and getting Notepad++ to show cyrillic letters Dragiev 6 3,797 Jul-24-2022, 12:55 PM
Last Post: Dragiev
  python basemap, cant show the right coordinates dbsr 0 1,384 Jun-08-2022, 01:55 PM
Last Post: dbsr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020