Re: [PHP] Image aliasing

2002-06-25 Thread Morgan Grubb

Andy,

If I had access to his server it would make things oh-so-simple.

As it is, he's running IIS and ASP, so no PHP GD loving for him. I've tried
pointing out to him what he's doing, and I'll be damned if I can figure out
why he's doing it the way he is (he being a fairly large company with an
absolutely shocking website).

I've written a couple of fairly graphics intensive presentations just to
highlight the difference, to no avail.

At any rate, it appears as though I'm completely out of luck on this issue.

--



Cheers,
Morgan Grubb.



"Andrew Chase" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi Morgan,
>
> None that I'm aware of.  I guess this is somewhat OT, but does the person
> you're giving the images to realize that resizing the images by means of
the
> HTML width/height attributes doesn't do anything to size of the file the
> person viewing the page has to download?  I don't know the particulars of
> your situation, but say you give him a dozen high quality JPEGS at 800x600
> pixels and about 120K each... if he puts those on a page and resizes them
to
> 96 x 72 in the HTML to make 'thumbnails', the user is still going to be
> stuck downloading 1440K!  That's a pretty hefty page to download even if
you
> have a broadband connection. (From an end-user standpoint, I find it
> *really* annoying when people do this!)
>
> Maybe you can point this out to the person you're supplying images to?
It's
> not a PHP-based solution, but maybe it will help :)
>
> Good Luck,
>
> -Andy
>
> P.S.  You could put together a PHP script that would use the GD
> 'imagecopyresampled' function to automatically generate the thumbnails for
> him, but that assumes 1) You have access to his server and 2) He has PHP
;)
>
>
> > -Original Message-
> > I'm wondering if anybody has ever figured out a way to get around the
> > absolutely abysmal way that Internet Explorer resizes images?
> >
> > The problem is that the person I'm supplying the images to refuses to
use
> > two copies (a small one, and a large one) and instead uses one (just the
> > large one) and when he needs a small representation of it he
> > slaps the large
> > image in and sets the width and height tags.
> >
> > The problem comes in when I'm trying to supply him with good
> > looking images.
> > Sure, the large image looks fine, but that smaller image gets aliased to
> > hell and back. Can the large image be recompressed in such a way that it
> > doesn't noticeably damage the large version, but improves how it
> > looks when
> > arbitrarily shrunk in IE?
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Image aliasing

2002-06-24 Thread Morgan Grubb

Kevin,

Dang.

[I just sent this privately without realising. I'll copy it here]

If I had any control at all over the page that the images were getting
displayed on I would be using a rather funky little script I wrote some time
ago that handles smart image resampling.

Unfortunately, I don't have any access to it, which is why I was wondering
if there was a way to compress the JPEG in such a manner that IE doesn't
alias it so much.

What I've found through experimentation is that if the source image has any
aliasing on it, that gets amplified when IE shrinks it, but if the source
has no aliasing, then IE's shrunk image contains minimal aliasing.

Anyone know how IE handles image resizing?

[Done copying]

I guess IE doesn't actually resample the image so much as mess everything
up. Netscape handles resampling images a little better, but none of our
clients use Netscape, so that doesn't help me in any way.
--



Cheers,
Morgan Grubb.



"Kevin Stone" <[EMAIL PROTECTED]> wrote in message
004001c21bcf$2354dea0$6401a8c0@kevin">news:004001c21bcf$2354dea0$6401a8c0@kevin...
> I seriously doubt it.  Windows is going to resize all images the same
crappy
> way.  The fact is that Microsoft's graphics routines are abysmal. Anyone
> who's ever scaled an image in Preview and then seen the same thing done on
a
> Mac knows what I'm talking about.  All you can do is resize the image at
an
> exact ratio or the actual pixel size of the image and hope it doesn't look
> terrible.  Sorry for the downer. :(
> -Kevin
>
> - Original Message -
> From: "Morgan Grubb" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 24, 2002 4:02 PM
> Subject: [PHP] Image aliasing
>
>
> > Morning,
> >
> > I'm wondering if anybody has ever figured out a way to get around the
> > absolutely abysmal way that Internet Explorer resizes images?
> >
> > The problem is that the person I'm supplying the images to refuses to
use
> > two copies (a small one, and a large one) and instead uses one (just the
> > large one) and when he needs a small representation of it he slaps the
> large
> > image in and sets the width and height tags.
> >
> > The problem comes in when I'm trying to supply him with good looking
> images.
> > Sure, the large image looks fine, but that smaller image gets aliased to
> > hell and back. Can the large image be recompressed in such a way that it
> > doesn't noticeably damage the large version, but improves how it looks
> when
> > arbitrarily shrunk in IE?
> >
> > --
> >
> >
> >
> > Cheers,
> > Morgan Grubb.
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Image aliasing

2002-06-24 Thread Jerome Houston

morgan-
is there any way you can have those img tags (the ones with the height and 
width) changed to reference a php script?  you could write a script that 
reads in the image they're requesting, and takes a height and width as 
inputs, then uses php commands like imagecopyresampled() or 
imagecopyresized() to dynamically output a resized image?  maybe this would 
be too much load on your server, but it sure would cut down on the download 
time, and would almost *positively* give you better image quality.

might look something like this
http://yourserver.com/scriptpath/thumbnail.php?height=100&width=100"; >

with a script something to the effect of thumbnail.php: (assuming the file 
is a jpeg)


jerome


>From: "Morgan Grubb" <[EMAIL PROTECTED]>
>Reply-To: "Morgan Grubb" <[EMAIL PROTECTED]>
>
>Morning,
>
>I'm wondering if anybody has ever figured out a way to get around the
>absolutely abysmal way that Internet Explorer resizes images?
>
>The problem is that the person I'm supplying the images to refuses to use
>two copies (a small one, and a large one) and instead uses one (just the
>large one) and when he needs a small representation of it he slaps the 
>large
>image in and sets the width and height tags.
>
>The problem comes in when I'm trying to supply him with good looking 
>images.
>Sure, the large image looks fine, but that smaller image gets aliased to
>hell and back. Can the large image be recompressed in such a way that it
>doesn't noticeably damage the large version, but improves how it looks when
>arbitrarily shrunk in IE?
>

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Image aliasing

2002-06-24 Thread Andrew Chase

Hi Morgan,

None that I'm aware of.  I guess this is somewhat OT, but does the person
you're giving the images to realize that resizing the images by means of the
HTML width/height attributes doesn't do anything to size of the file the
person viewing the page has to download?  I don't know the particulars of
your situation, but say you give him a dozen high quality JPEGS at 800x600
pixels and about 120K each... if he puts those on a page and resizes them to
96 x 72 in the HTML to make 'thumbnails', the user is still going to be
stuck downloading 1440K!  That's a pretty hefty page to download even if you
have a broadband connection. (From an end-user standpoint, I find it
*really* annoying when people do this!)

Maybe you can point this out to the person you're supplying images to?  It's
not a PHP-based solution, but maybe it will help :)

Good Luck,

-Andy

P.S.  You could put together a PHP script that would use the GD
'imagecopyresampled' function to automatically generate the thumbnails for
him, but that assumes 1) You have access to his server and 2) He has PHP ;)


> -Original Message-
> I'm wondering if anybody has ever figured out a way to get around the
> absolutely abysmal way that Internet Explorer resizes images?
>
> The problem is that the person I'm supplying the images to refuses to use
> two copies (a small one, and a large one) and instead uses one (just the
> large one) and when he needs a small representation of it he
> slaps the large
> image in and sets the width and height tags.
>
> The problem comes in when I'm trying to supply him with good
> looking images.
> Sure, the large image looks fine, but that smaller image gets aliased to
> hell and back. Can the large image be recompressed in such a way that it
> doesn't noticeably damage the large version, but improves how it
> looks when
> arbitrarily shrunk in IE?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php