Quote Originally Posted by Talei View Post
Hello,
I want to ask if there is a easy way to determine size (in MB/KB, not the dimension of the image ) of image loaded into qpixmap. I'm using right now qpixmap.load(path) method, I know that I can load file into ByteArray and use qpixmap.loadFromData but wouldn't that be performance overkill?
QFileInfo::size()
Also is there a faster way of scaling image then qpixmap.scaled?
No. You can only prepare the image in the size you need in advance but you will still be calling scaled().

Right now I use combination of i.e. scaled( 640, 480, FastTransformation).scale(200, 100, SmoothTransformation). I know that I'm doing 2 sale but that's only for quality purpouse.
That's quite an optimal combination. Provided the first transformation reduces the size by integer number of times compared to the original image.