php - gd text and lines show up as grey in gif from Illustrator -


i'm using gd in php add text gif image illustrator. i've added text , drawn figures, , no matter how specify color, show gray (i'm guessing 50% gray).

i opened image in ms paint , re-saved gif. when did that, gave warning of color loss. however, colors show correctly when add things using gd on new image.

what's deal? have palette illustrator uses when saving original?

i'm using php version 5.2.6-1+lenny9. here's gd info:

gd support  enabled  gd version  2.0 or higher  freetype support    enabled freetype linkage    freetype freetype version    2.3.7  t1lib support   enabled  gif read support    enabled  gif create support  enabled  jpg support     enabled  png support     enabled  wbmp support    enabled 

gif indexed colour format - means image has limited palette of colours choose (up 256, if recall correctly, gif). when process image gd, have make sure you're correctly choosing kind of image resource copy things, alter or whatever. if imagecreatetruecolor(...) example, might problem - image resource using 24(?) bit true colour, having indexed colour resource copied it.. this.

without doing deeper research (never had particular issue), i'd guess using transparent png instead of gif fix.

e: also, when saving out photoshop or illustrator, use "save web" avoid other weird colour issues across browsers.


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -