JPG image Size

Drop in here to discuss whatever you want.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
funrun1
Registered Member
Posts: 1
Joined: Tue Mar 16, 2021 6:31 pm

JPG image Size

Post by funrun1 » Tue Mar 16, 2021 6:44 pm

Hello!!!
Thanks in advance for the info...
What is the max size of a jpg? Height and width and/or file size

I have a drone image of a large area I wanted to import. (62000 x 40000 pixels) 90MB
It "loads" but shows 0 height and 0 width. No image is there. I tried to scale up from 0 but nothing happened.

I reduced the image size to 50% and it did not work- same issue as above.

Then to less than 25% 15000 x 1000 and it loads into the drawing correctly. 8MB

Wanted to know so I could maximize based on known restrictions...


***I did a quick search of the forum but couldn't find what I was looking for.
Sorry if this is the wrong place to post this.***

User avatar
andrew
Site Admin
Posts: 9036
Joined: Fri Mar 30, 2007 6:07 am

Re: JPG image Size

Post by andrew » Tue Mar 16, 2021 8:21 pm

The maximum number of bytes for the raw image data is 2'147'483'647 bytes. With four bytes per pixel (ARGB), the maximum size for the file is 536'870'911 pixels, or for example 23'170x23'170 pixels. This is a limitation of the Qt libraries.

Post Reply

Return to “Chat”