I experimented with JPEG when I started using the GD libraries and was not
satisfied with the results. Just too many image quality issues. Unless your
map is a image (vs a graphic) I wouldn't use Jpeg. The coloring you speak of
may be a result of jpeg compression. Using no compression will likely remove
this problem but you will pay a penalty in file size. If you have the option
convert your image to PNG or GIF (depending on what gd library you have)
using something like Photoshop. You'll probably like the results better.
"Hugh Danaher" <[EMAIL PROTECTED]> wrote in message
> Thank you for your help. I actually found an example on web monkey late
> last night for .gif and made the translation to .jpg. However, whatever
> color text I use, it turns out gray. Any help here would go down nicely.
> ----- Original Message -----
> From: "Chris Williams" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, February 03, 2002 8:29 AM
> Subject: [PHP] Re: imagecopy or why men don't use maps.
> > I think you might need to use
> > $source = ImageCreateFromJPEG('map1.jpg');
> > I've created several maps using this method, although I am using PNG.
> > could see them at our web site but unfortunatly it's not parsing PHP
> > correctly. Something went wrong during migration, but might be fixed in
> > couple of days.
> > "Hugh Danaher" <[EMAIL PROTECTED]> wrote in message
> > 000801c1ac61$a1d858c0$0100007f@localhost">news:000801c1ac61$a1d858c0$0100007f@localhost...
> > Help!
> > I have an image file which is a map of the local area. I want to put
> > symbols on the map at various points, but I first need to get the php
> > function to work.
> > My site has imaging enabled and I can create graphs from scratch, but
> > has stumped me so far.
> > Any help will be greatly appreciated.
> > Hugh
> > code? below:
> > $image=imagecreate(400,400); // created image
> > // source image info
> > $source="map1.jpg";
> > $imageinfo = getimagesize($source);
> > $source_00=0; // origin (0,0)
> > $source_width=$imageinfo;
> > $source_height-$imageinfo;
> > $image_00=0; // origin (0,0)
> > imagecopy($image,$source, $image_00, $image_00, $source_00, $source_00,
> > $source_width, $source_height); / / this is line 36.
> > Warning: Supplied argument is not a valid Image resource in
> > /www/site.com/somepage.php on line 36
> > --
> > 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