You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Mike -- EMAIL IGNORED <m_...@yahoo.com> on 2008/09/04 20:15:59 UTC

[users@httpd] Re: Prevent img smoothing?

On Thu, 04 Sep 2008 13:07:58 -0500, William A. Rowe, Jr. wrote:

> Mike -- EMAIL IGNORED wrote:
>> On my website I have a BMP picture that is 13x20 pixels. I want it
>> displayed as a matrix of little squares. Displaying on Win2k with IE or
>> Firefox, and on WinXP using IE, that is what I get.  But on WinXP with
>> Firefox, the picture is "smoothed" into a blurry mess.  Is there a way
>> to I prevent this?
> 
> Exactly as Dragon mentioned, apache has nothing to do with this.
> 
> I suspect the gif compression of a 130x200 image consisting of 10x10
> blocks would be not much bigger than your bmp picture. Just serve the
> correctly scaled image.
> 
[...]

The size is not the issue.  I want to get the effect of a visible
little squares.

Mike.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: Prevent img smoothing?

Posted by Mike -- EMAIL IGNORED <m_...@yahoo.com>.
On Thu, 04 Sep 2008 16:08:08 -0500, Justin Pasher wrote:

[...]
> I assume you are using Firefox 3 when viewing the page. FF3 has a new
> feature for automatically antialiasing images when they are resized.
> 
> http://forums.mozillazine.org/viewtopic.php?f=23&t=664257
> 
> At this time, you cannot turn it off (from what I can see). This means
> that you would have to use another program to resize the image to
> 200x308 before it's passed to the browser. There's nothing with Apache
> itself that can change this.
> 
> If you are running on a Linux box, you can use the ImageMagick "convert"
> command to do it on the server and then serve the new file to the user.
[...]

Another example of them giving me what they are sure I need.  In any
case, Photoshop did the trick.

Mike.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: Prevent img smoothing?

Posted by Justin Pasher <ju...@newmediagateway.com>.
Mike -- EMAIL IGNORED wrote:
> On Thu, 04 Sep 2008 11:40:09 -0700, Bradley Giesbrecht wrote:
>
>   
>> Give a link to an example.
>>
>>
>>     
> [...]
>
>    http://www.rosemike.net/photo/photo.html
>
> and look on the picture on the left.
>
> Mike.
>   

I assume you are using Firefox 3 when viewing the page. FF3 has a new 
feature for automatically antialiasing images when they are resized.

http://forums.mozillazine.org/viewtopic.php?f=23&t=664257

At this time, you cannot turn it off (from what I can see). This means 
that you would have to use another program to resize the image to 
200x308 before it's passed to the browser. There's nothing with Apache 
itself that can change this.

If you are running on a Linux box, you can use the ImageMagick "convert" 
command to do it on the server and then serve the new file to the user.

convert source.png -scale 200x308 destination.png

Justin Pasher

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: Prevent img smoothing?

Posted by Mike -- EMAIL IGNORED <m_...@yahoo.com>.
On Thu, 04 Sep 2008 13:46:43 -0700, Bradley Giesbrecht wrote:

> Not really sure what you are trying to do but you are using a bmp image
> that is 13x20 pixels and instructing the browser to display it 200
> pixels wide.
> 
> It's up to the browser to determine how to render the image file.
> 
> Some of these examples might help you get what you are looking for.
> 
> http://pixilla.com/temp/index.html
> 
> /brad
> 
[...]

Thanks, this is exactly what I needed. First I tried a hi-res jpg which
was about 35k and looked ok, and lo-res jpg which was awful. Then
I realized that I have at most 20x13=260 different colors, so the
256 colors in a gif should represent it almost exactly.  So my 1k
file can be represented almost exactly with only 12k! ;)

Mike.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: Prevent img smoothing?

Posted by Bradley Giesbrecht <br...@pixilla.com>.
Not really sure what you are trying to do but you are using a bmp  
image that is 13x20 pixels and instructing the browser to display it  
200 pixels wide.

It's up to the browser to determine how to render the image file.

Some of these examples might help you get what you are looking for.

http://pixilla.com/temp/index.html

/brad

On Sep 4, 2008, at 11:53 AM, Mike -- EMAIL IGNORED wrote:

> On Thu, 04 Sep 2008 11:40:09 -0700, Bradley Giesbrecht wrote:
>
>> Give a link to an example.
>>
>>
> [...]
>
>  http://www.rosemike.net/photo/photo.html
>
> and look on the picture on the left.
>
> Mike.
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server  
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: Prevent img smoothing?

Posted by Mike -- EMAIL IGNORED <m_...@yahoo.com>.
On Thu, 04 Sep 2008 11:40:09 -0700, Bradley Giesbrecht wrote:

> Give a link to an example.
> 
> 
[...]

   http://www.rosemike.net/photo/photo.html

and look on the picture on the left.

Mike.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: Prevent img smoothing?

Posted by Bradley Giesbrecht <br...@pixilla.com>.
Give a link to an example.


On Sep 4, 2008, at 11:15 AM, Mike -- EMAIL IGNORED wrote:

> On Thu, 04 Sep 2008 13:07:58 -0500, William A. Rowe, Jr. wrote:
>
>> Mike -- EMAIL IGNORED wrote:
>>> On my website I have a BMP picture that is 13x20 pixels. I want it
>>> displayed as a matrix of little squares. Displaying on Win2k with  
>>> IE or
>>> Firefox, and on WinXP using IE, that is what I get.  But on WinXP  
>>> with
>>> Firefox, the picture is "smoothed" into a blurry mess.  Is there a  
>>> way
>>> to I prevent this?
>>
>> Exactly as Dragon mentioned, apache has nothing to do with this.
>>
>> I suspect the gif compression of a 130x200 image consisting of 10x10
>> blocks would be not much bigger than your bmp picture. Just serve the
>> correctly scaled image.
>>
> [...]
>
> The size is not the issue.  I want to get the effect of a visible
> little squares.
>
> Mike.
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server  
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org