Re: ValueError: no memory after 4GB

Henning von Bargen <[email protected]> Thu, 8 Apr 2021 15:16:01 +0000
Newsgroups gmane.comp.python.reportlab.user
Message-ID <AM0PR04MB65776A7A1C099D93D2490A50B0749@AM0PR04MB6577.eurprd04.prod.outlook.com>
Shaw, Theodore wrote:
> I'm trying to convert an SVG to a BMP that's about 100,000 pixels by 
> 100,000 pixels. My code looks like

I'm just curious:
WHY do you try to generate such a huge² image?
I mean, practically every image viewer program would fail with OutOfMemory if a user wants to look at this image.
Why don't you just keep the SVG?

Just to demonstrate the dimension:
Say, a colour laser printer uses 600 dpi (which is good enough for photos).
Then printing your image in this natural dpi resolution would result in a 4.2 m x 4.2 m paper...
I really cannot imagine a use-case...

Henning