473,509 Members | 3,032 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PNG maximum dimensions?

I'm using a php script to generate a huge number of PNG image files.
Some of the larger PNGs are not viewable in a web browser, though-they
just show up as broken links. These ones are only viewable in
Photoshop and usually need to be cut down to around 30,000px tall (I
forget the exact number). Is this a limitation of the PNG format?
What are the maximum dimensions of a PNG image?

Nov 12 '07 #1
5 16940

<go*********@gmail.comwrote in message
news:11*********************@22g2000hsm.googlegrou ps.com...
I'm using a php script to generate a huge number of PNG image files.
Some of the larger PNGs are not viewable in a web browser, though-they
just show up as broken links. These ones are only viewable in
Photoshop and usually need to be cut down to around 30,000px tall (I
forget the exact number). Is this a limitation of the PNG format?
What are the maximum dimensions of a PNG image?
Hi,
do you have any idea of how much memory those imgs take when displayed?

R.
Nov 13 '07 #2
Hi,
do you have any idea of how much memory those imgs take when displayed?

R.
Sure. They are all very simple 8 bit pngs. Few of them take up more
than 500kB.

Nov 14 '07 #3
go*********@gmail.com wrote:
>
I'm using a php script to generate a huge number of PNG image files.
Some of the larger PNGs are not viewable in a web browser, though-they
just show up as broken links. These ones are only viewable in
Photoshop and usually need to be cut down to around 30,000px tall (I
forget the exact number). Is this a limitation of the PNG format?
What are the maximum dimensions of a PNG image?
How many web browsers have you tested, and on what platforms?

The PNG format uses a 32-bit field to store the width and height, so that's
not the problem. However, GDI in Windows uses signed 16-bit values in some
cases for physical coordinates, which limits you to 32,767.
--
Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Nov 14 '07 #4
I've tested Firefox, Safari and IE on Windows.

I guess I left out another detail, too. The app I use to create these
images "fails" halfway through creation of the PNG files, but only if
the length of the image is less than 16000px (the values could be
higher, this is just where I arbitrarily decided to split the files
into two. This app "failing" actually creates a perfect PNG image,
but as mentioned in a previous post, is only viewable to me in Adobe
PhotoShop. It's also worth noting that when the file is open in
PhotoShop, it cannot be saved back into PNG format-only BMP and other
less-desirable formats. The only way PhotoShop can save the file is
to divide it into ~30,000px parts.

I think you've answered my question with the maximum dimension being
32767. I'm just posting this bit to add to the discussion.

Thanks for the help!
On Nov 14, 2:17 am, Tim Roberts <t...@probo.comwrote:
>
How many web browsers have you tested, and on what platforms?

The PNG format uses a 32-bit field to store the width and height, so that's
not the problem. However, GDI in Windows uses signed 16-bit values in some
cases for physical coordinates, which limits you to 32,767.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.

Nov 14 '07 #5
Hi again,

assuming a square image, 1 image of 30000 pix would need around
30.000 * 30.000 / 1024 /1024 = 859 MB of memory to be displayed

A 24 bit = 2.7 GB of memory
A 32 bit = 3.6 GB

I am surprised that Photoshop can even open that...!
Can I ask what you need those images for? And how you manage to create them
in PHP?

R.

<go*********@gmail.comwrote in message
news:11**********************@o80g2000hse.googlegr oups.com...
I've tested Firefox, Safari and IE on Windows.

I guess I left out another detail, too. The app I use to create these
images "fails" halfway through creation of the PNG files, but only if
the length of the image is less than 16000px (the values could be
higher, this is just where I arbitrarily decided to split the files
into two. This app "failing" actually creates a perfect PNG image,
but as mentioned in a previous post, is only viewable to me in Adobe
PhotoShop. It's also worth noting that when the file is open in
PhotoShop, it cannot be saved back into PNG format-only BMP and other
less-desirable formats. The only way PhotoShop can save the file is
to divide it into ~30,000px parts.

I think you've answered my question with the maximum dimension being
32767. I'm just posting this bit to add to the discussion.

Thanks for the help!
On Nov 14, 2:17 am, Tim Roberts <t...@probo.comwrote:
>>
How many web browsers have you tested, and on what platforms?

The PNG format uses a 32-bit field to store the width and height, so
that's
not the problem. However, GDI in Windows uses signed 16-bit values in
some
cases for physical coordinates, which limits you to 32,767.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.


Nov 14 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2080
by: John | last post by:
I am rotating images at one location of my web site. My problem is if I set the width and height of the new image before I show the new image, the old image is stretched first to the new image...
2
28527
by: Kums | last post by:
What is the maximum permissible size of a database? Is there any limitation. What is the maximum # of tablespace's allowed in a database? Thanks for your response.
11
23972
by: Walter Dnes (delete the 'z' to get my real address | last post by:
I've noticed a few threads (full of sound and fury, signifying nothing) here recently about allocation of large memory blocks. I'm about to start on a personal pet project where I'll be using...
5
23279
by: VMI | last post by:
How can I increase the maximum size of a Windows form? I'm trying to make a really big Windows form (about 1000x1000) but the designer doesn't allow me to do that. It only goes up to 1000x780....
6
9882
by: MurrayTh | last post by:
Is there any way to determine the dimensions of an image using the image's URL? ie load image based on URL, and then get dimensions? or perhaps better method?
5
5964
by: Shane Story | last post by:
I can seem to get the dimensions of a frame in a multiframe tiff. After selecting activeframe, the Width/Height is still really much larger than the page's actual dimensions. When I split a...
1
2487
by: johnrees | last post by:
I am building a photo gallery using code which creates thumbnails of a specific size from any image. When clicked the thumbnail expands dynamically to a pre-determined size. The sizes of the...
1
2424
by: Mentat | last post by:
In the description below ??? marks specific problem areas. Any help is appreciated. Required ======== A method to detect the width and height values of a <DIV... element. Since there are two...
3
8841
by: =?iso-8859-1?q?Jean-S=E9bastien?= | last post by:
hello, is it possible to resize an image with same proportion. having a maximum height and a maximum width. the solution should work on main browsers (do not use max-height and max-width). ...
0
7234
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7344
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7412
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7069
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5060
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3216
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1570
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
441
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.