PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.php > PNG maximum dimensions?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
PNG maximum dimensions?

Réponse
 
LinkBack Outils de la discussion
Vieux 12/11/2007, 23h27   #1
gonzoduke85@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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?

  Réponse avec citation
Vieux 13/11/2007, 19h55   #2
Richard
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: PNG maximum dimensions?


<gonzoduke85@gmail.com> wrote in message
news:1194906444.590874.92530@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.


  Réponse avec citation
Vieux 14/11/2007, 08h13   #3
gonzoduke85@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: PNG maximum dimensions?

> 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.

  Réponse avec citation
Vieux 14/11/2007, 08h17   #4
Tim Roberts
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: PNG maximum dimensions?

gonzoduke85@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, timr@probo.com
Providenza & Boekelheide, Inc.
  Réponse avec citation
Vieux 14/11/2007, 15h13   #5
gonzoduke85@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: PNG maximum dimensions?

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 !


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.



  Réponse avec citation
Vieux 14/11/2007, 23h23   #6
Richard
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: PNG maximum dimensions?

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.



<gonzoduke85@gmail.com> wrote in message
news:1195049630.226601.299440@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 !
>
>
> 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.

>
>



  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 16h53.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11811 seconds with 14 queries