public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: Magnus Hagander <[email protected]>
Cc: Greg Stark <[email protected]>
Cc: Peter Geoghegan <[email protected]>
Cc: PostgreSQL WWW <[email protected]>
Subject: Re: New archives for testing
Date: Sun, 06 Jan 2013 16:25:08 -0500
Message-ID: <[email protected]> (raw)
In-Reply-To: <CABUevEznc2gdDdOEqDkNM4sjXWwQMvDWvE6j0_8TAyf3+=ZEZQ@mail.gmail.com>
References: <CABUevEwmR5+9fc1i1cFVpc1S8XShHwvKopcaKKfq-Txa+_mq_g@mail.gmail.com>
	<[email protected]>
	<CABUevEzx8tAUZErb8PhADj=mzSEUdUE8-ueqUfuP=mnNjbMQ3A@mail.gmail.com>
	<CAEYLb_UWpcNdyEHzOyzGYs9+CEXqrNP8-c5tPd6X9v1fK9jKYQ@mail.gmail.com>
	<CABUevExrSBxtW3qkUA7-cn=DFTVVdcahDpWFovMcWOnRxf=ZhQ@mail.gmail.com>
	<CAM-w4HOUE2v_d1xhZOTk930ugu2UiAQbHLy41DjUiZtT355KAg@mail.gmail.com>
	<CABUevEznc2gdDdOEqDkNM4sjXWwQMvDWvE6j0_8TAyf3+=ZEZQ@mail.gmail.com>
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgsql-www>

Magnus Hagander <[email protected]> writes:
> On Sun, Jan 6, 2013 at 9:59 PM, Greg Stark <[email protected]> wrote:
>> I would be more concerned with the file size. You don't want someone
>> to be able to make an archive page send a hapless viewer a 100M image
>> file. Luckily file size doesn't require parsing the meta data.
>> 
>> Can you not deal with the image size by just sticking a css attribute
>> for max-height and max-width on the inlined image?

> That's certainly another option - limit it by size that way, and then
> limiting it by filesize for whether we include it or not. We can even
> give it scrollbars, I guess. That does make even more sense.

A file-size-based limit on what we'll inline seems perfectly sensible
from here.  As for scrollbars, if it's big enough to need those, we
probably don't want it inline ...

			regards, tom lane


-- 
Sent via pgsql-www mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-www



view thread (37+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected]
  Subject: Re: New archives for testing
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox