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? 5 16972
<go*********@gm ail.comwrote in message
news:11******** *************@2 2g2000hsm.googl egroups.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.
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. go*********@gma il.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.
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.com wrote:
>
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.
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*********@gm ail.comwrote in message
news:11******** **************@ o80g2000hse.goo glegroups.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.com wrote:
>> 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.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 dimensions,
and if I show the new image before setting its dimensions, the new
image is stretched first to the old image dimension before it is
adjusted to its own dimension.
I would like to load a new image with its own dimension at the same
time....
|
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.
|
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 memchr(),
memcmp(), memmove() a lot. Is there an ANSI C maximium size for
character arrays which are guaranteed to succeed, assuming the machine
has sufficient memory? And will the memxxx() functions work with that
size? I'm looking at hopefully...
|
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. Somebody suggested going to the
form's Properties >> Layout >> Size 1000,1000 but my version -Studio '02
v1.0- doesn't have that property. Am I missing something?
Thanks.
|
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?
| |
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 TIFF to several PNG files this causes a problem, becuase the
resulting image is (the page to the far left and a lot of black space
surrounding it and a filesize that is larger than needed.
Any ideas?
|
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 thumbnails and the enlarged image are set via variables. To work properly, all the original images must be the same dimensions which means a great deal of editing and cropping before the images can be posted. And portrait images sometimes cannot be cropped...
|
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 ways to "style"
a DIV, it should be noted that a CSS file is used in
this case. The same is required for an <IMG... element
contained within the DIV.
|
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).
or should i do it with javascript?
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |