[Interest] Writing big pictures to file

Petric Frank pfrank at gmx.de
Wed Apr 5 23:21:58 CEST 2017


Hello,

i have an application which writes pictures to *.png files.

Some of them are getting rather big - width becomes in the range on 150000 
pixels.
If the width grows above about 32k the file is somehow corrupt. Symptom here 
is that all drawings with x coordinates > 32K are cutted in the generated 
file. There are no errors displayed in this case.

A little code excerpt:
-------------- cut --------------
QImage image;  // filled graphics

// some drawing commands

image.save ("file.png");
-------------- cut --------------

Somewhere i have read that there is a limitation in size.

Is there a way to overcome this ?

Qt here is at version 5.6.2.
OS is Linux 64Bit (and Windows 32 Bit/mingw).

kind regards
  Petric




More information about the Interest mailing list