Re: Image rendering problem in Tomcat 5.5.1

2008-08-13 Thread Konstantin Kolinko
All this sounds like a browser issue.

Firefox 3.0 now supports zooming of the whole page (as compared to
scaling the font sizes only). Press Ctrl+0 to reset the page to 100%
(see the View menu for details).


2008/8/12 Szűcs Attila [EMAIL PROTECTED]:
 Christopher,

 Even if I am opening it through tomcat with IExplorer it looks good. Is it a 
 Firefox bug ? I don't know

 Atti



Re: Image rendering problem in Tomcat 5.5.1

2008-08-12 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Atti,

Szűcs Attila wrote:
| However when I am
| putting everything together the images are a little bit larger than
| in the original design. This is a problem because the image contains
| text which becomes blurry, and some spacer  and separator images are
| not shown in the right place.

Are you generating images on the fly and then compressing them yourself
(like actually drawing PNG or JPEG files on the server), or are you just
serving static content?

If you are serving static content, then the problem is likely to be your
HTML or CSS. If you have a 100x100 image, but you tell the client
(browser) that the image should be rendered at 120x120, then you'll get
this blurriness. You can control image rendering sizes using the 'width'
and 'height' attributes of an img tag, or with the 'width' and
'height' attributes of a CSS style applied to that tag.

If you are using Firefox as your browser, try using the DOM Inspector to
see what the effective width and height are for your images that look
funny. If you have MSIE, try using something like the IE Developer
Toolbar, which I think has somewhat similar capabilities. If you are
using another browser, I'm not sure what the options are.

| The interesting thing is, that I have copied the original design to
| the tomcat webapps dir (which is not cut into navigations and
| screens, just a html file with css and images) and when I open it
| through tomcat it is shown in the same way (blurry).

Have you ever seen a browser render the images in a non-blurry way?
Perhaps the design itself is flawed.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkihnOkACgkQ9CaO5/Lv0PDRFACgpTMvTBntQ7KhalMwtt25fb/4
N1oAn3M7uBUk1UUPMkAcZQwsNCcEGwS5
=mEHE
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Image rendering problem in Tomcat 5.5.1

2008-08-12 Thread Szűcs Attila
Christopher,

   Thanks for your reply. I am not generating the images. They are read from an 
image folder.
I forgot to mention that the design, when opened outside of tomcat (just the 
plain html file with css and images) looks all right, so the css and the html 
files are good. The other strange thing is that when I copy the blurry html's 
code and paste it in a plain html and open the file (without tomcat) everything 
works fine.
Even if I am opening it through tomcat with IExplorer it looks good. Is it a 
Firefox bug ? I don't know

Atti

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2008 5:24 PM
To: Tomcat Users List
Subject: Re: Image rendering problem in Tomcat 5.5.1

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Atti,

Szűcs Attila wrote:
| However when I am
| putting everything together the images are a little bit larger than
| in the original design. This is a problem because the image contains
| text which becomes blurry, and some spacer  and separator images are
| not shown in the right place.

Are you generating images on the fly and then compressing them yourself
(like actually drawing PNG or JPEG files on the server), or are you just
serving static content?

If you are serving static content, then the problem is likely to be your
HTML or CSS. If you have a 100x100 image, but you tell the client
(browser) that the image should be rendered at 120x120, then you'll get
this blurriness. You can control image rendering sizes using the 'width'
and 'height' attributes of an img tag, or with the 'width' and
'height' attributes of a CSS style applied to that tag.

If you are using Firefox as your browser, try using the DOM Inspector to
see what the effective width and height are for your images that look
funny. If you have MSIE, try using something like the IE Developer
Toolbar, which I think has somewhat similar capabilities. If you are
using another browser, I'm not sure what the options are.

| The interesting thing is, that I have copied the original design to
| the tomcat webapps dir (which is not cut into navigations and
| screens, just a html file with css and images) and when I open it
| through tomcat it is shown in the same way (blurry).

Have you ever seen a browser render the images in a non-blurry way?
Perhaps the design itself is flawed.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkihnOkACgkQ9CaO5/Lv0PDRFACgpTMvTBntQ7KhalMwtt25fb/4
N1oAn3M7uBUk1UUPMkAcZQwsNCcEGwS5
=mEHE
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Image rendering problem in Tomcat 5.5.1

2008-08-12 Thread Hassan Schroeder
On Tue, Aug 12, 2008 at 8:13 AM, Szűcs Attila
[EMAIL PROTECTED] wrote:

 I forgot to mention that the design, when opened outside of tomcat (just the 
 plain html file with css and images) looks all right, so the css and the html 
 files are good. The other strange thing is that when I copy the blurry 
 html's code and paste it in a plain html and open the file (without tomcat) 
 everything works fine.

I can't imagine how Tomcat could be influencing the display size of
images -- can you send a URL demonstrating this problem?

-- 
Hassan Schroeder  [EMAIL PROTECTED]