Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Screenshot problem
#2
Why not use the canvas postscript method to save the canvas as postscript then convert the postscript image to another format?
Output:
help(Canvas.postscript) Print the contents of the canvas to a postscript file. Valid options: colormap, colormode, file, fontmap, height, pageanchor, pageheight, pagewidth, pagex, pagey, rotate, width, x, y.
Also the pyscreenshot module says
Quote:The pyscreenshot module is obsolete in most cases. It was created because PIL ImageGrab module worked on Windows only, but now Linux and macOS are also supported.

An old trick to convert eps to postscript:

cv.postscript(file="circles.eps")
    from PIL import Image
    img = Image.open("circles.eps")
    img.save("circles.png", "png")
See also pillow image formats
« We can solve any problem by introducing an extra level of indirection »
Reply


Messages In This Thread
Screenshot problem - by DPaul - Mar-05-2024, 07:34 AM
RE: Screenshot problem - by Gribouillis - Mar-05-2024, 08:11 AM
RE: Screenshot problem - by DPaul - Mar-06-2024, 10:37 AM
RE: Screenshot problem - by DeaD_EyE - Mar-06-2024, 01:32 PM
RE: Screenshot problem - by DPaul - Mar-06-2024, 06:16 PM
RE: Screenshot problem - by DPaul - Mar-11-2024, 04:19 PM
RE: Screenshot problem - by DeaD_EyE - Mar-11-2024, 08:32 PM
RE: Screenshot problem - by DPaul - Mar-12-2024, 06:59 AM

Forum Jump:

User Panel Messages

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