PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Graphisme & Infographie > macromedia.dreamweaver > is it OK to use a single pixel for background tileimage?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
is it OK to use a single pixel for background tileimage?

Réponse
 
LinkBack Outils de la discussion
Vieux 10/06/2008, 03h53   #1
brainfillet
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut is it OK to use a single pixel for background tileimage?

I made web page with a single-color background, and used a color-picker tool in
dreamweaver to choose the color from one of the images in the webpage. But I
noticed in Firefox that the color is rendered differently in the background
than the original color in the graphic. So I used a single pixel jpg file
instead and tiled it as the background image. Is a single pixel graphic image,
tiled in the background, a problem for web browsers? Is it ever done? Does it
slow things down? Question number 2: Firefox seems to slightly diminish the
colors of the graphics in the web page. Does each browser display graphics,
and all colors, a little differently? Thanks for the !

  Réponse avec citation
Vieux 10/06/2008, 04h28   #2
Alan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: is it OK to use a single pixel for background tile image?



> Is a single pixel graphic image,
> tiled in the background, a problem for web browsers?


it is a problem in the old netscape browsers- they would draw the background
line by line before showing any content. Don't think it's a major problem in
other browsers.

i'd use maybe a 2x5 block instead of a single pixel.

--
Alan
Adobe Community Expert, dreamweaver

http://www.adobe.com/communities/experts/



  Réponse avec citation
Vieux 10/06/2008, 15h58   #3
Michael Fesser
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: is it OK to use a single pixel for background tile image?

..oO(brainfillet)

>I made web page with a single-color background, and used a color-picker tool in
>dreamweaver to choose the color from one of the images in the webpage. But I
>noticed in Firefox that the color is rendered differently in the background
>than the original color in the graphic. So I used a single pixel jpg file
>instead and tiled it as the background image. Is a single pixel graphic image,
>tiled in the background, a problem for web browsers?


For old browsers on slower systems. But it's a bad idea anyway. For a
single-color background an image doesn't make any sense, CSS is the way
to go.

Even worse is to do it with a JPEG. The color differences you see are
usually not caused by the browser (except maybe for IE, which has some
known problems there), but by the images themselves. Remember that JPEG
is a lossy format, you'll almost always get slightly different colors
after the compression. And dependent on the compression rate these
differences might become visible or not.

>Is it ever done?


Probably, but I would _never_ recommend it.

>Does it
>slow things down?


Every additional HTTP request and file download slows things down. Do as
much as you can with CSS.

>Question number 2: Firefox seems to slightly diminish the
>colors of the graphics in the web page. Does each browser display graphics,
>and all colors, a little differently? Thanks for the !


See above. It's the JPEG that causes the problem. So you might consider
to use a lower compression rate or the PNG format instead, dependent on
the image. JPEG is the perfect choice for photographs, but for other
images like logos, buttons or decorational stuff with big single-color
or transparent areas you should use PNG, which uses lossless compression
and keeps your colors as they are.

Micha
  Réponse avec citation
Vieux 10/06/2008, 16h02   #4
Matt
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: is it OK to use a single pixel for background tile image?

Saving to JPEG could cause a color shift in an image, although with a very
small monchrome image I wouldn't expect it. Saving to GIF would preserve the
color, as long as you don't allow the intended color to map to a different
one.


  Réponse avec citation
Vieux 10/06/2008, 16h50   #5
Michael Fesser
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: is it OK to use a single pixel for background tile image?

..oO(Matt)

>Saving to JPEG could cause a color shift in an image, although with a very
>small monchrome image I wouldn't expect it. Saving to GIF would preserve the
>color, as long as you don't allow the intended color to map to a different
>one.


Better use PNG. GIF is dead.

Micha
  Réponse avec citation
Vieux 10/06/2008, 22h30   #6
brainfillet
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: is it OK to use a single pixel for background tileimage?

Thanks for the ! By the way, Safari does not display the colors a little
off, the way Firefox does. Safari matches it right. Also, DW itself displays
the graphics a little diminished. When I look at the original Photoshop jpg
next it installed in DW, the DW version is diminished (lightened a little).

  Réponse avec citation
Vieux 11/06/2008, 01h56   #7
Randy Edmunds
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: is it OK to use a single pixel for background tile image?

> i'd use maybe a 2x5 block instead of a single pixel.

I think the minimum file download size is 1K, so you might as well make
it larger so the browser has less tiling to do.

Randy
  Réponse avec citation
Vieux 11/06/2008, 10h30   #8
Dooza
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: is it OK to use a single pixel for background tile image?

brainfillet wrote:
> Thanks for the ! By the way, Safari does not display the colors a little
> off, the way Firefox does. Safari matches it right. Also, DW itself displays
> the graphics a little diminished. When I look at the original Photoshop jpg
> next it installed in DW, the DW version is diminished (lightened a little).
>


Have you tried a GIF instead?

Steve
  Réponse avec citation
Vieux 20/06/2008, 18h38   #9
DizzDizzy
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: is it OK to use a single pixel for background tileimage?

i will make use of the adobe community experts and solve out the problems
thanks
  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 02h56.


É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,16934 seconds with 17 queries