[PHP] Image Generation

2008-08-20 Thread Alex Chamberlain
Hi, I need to generate an online proof for vinyl lettering. Customers specify the text, font, colour, maximum frame size (mm) (ie the width and height it must fit into), and whether or not they want to keep aspect ratio (ie not distort the lettering). I want to represent all this on a single

Re: [PHP] Image Generation

2008-08-20 Thread Ashley Sheridan
I don't think GD has a built-in function to scale an image the way you are asking, and to do it on a pixel by pixel basis from within a function is going to be a very time consuming and memory costly process. Have you thought about using ImageMagik to do this? I know that you can exec() out to

Re: [PHP] Image Generation

2008-08-20 Thread Jochem Maas
Alex Chamberlain schreef: Hi, I need to generate an online proof for vinyl lettering. Customers specify the text, font, colour, maximum frame size (mm) (ie the width and height it must fit into), and whether or not they want to keep aspect ratio (ie not distort the lettering). I want to

Re: [PHP] Image Generation

2008-08-20 Thread Jochem Maas
Onderwerp: [PHP] Image Generation Van: Alex Chamberlain [EMAIL PROTECTED] Datum: Wed, 20 Aug 2008 08:29:50 +0100 Aan: PHP General list php-general@lists.php.net Aan: PHP General list php-general@lists.php.net Return-path: [EMAIL PROTECTED] Envelope

Re: [PHP] Image Generation

2008-08-20 Thread Ashley Sheridan
exec() out to this from within Windows and Linux, and ImageMagik is free to use (as far as I'm aware) so it could be just what you need. Ash www.ashleysheridan.co.uk Onderwerp: [PHP] Image Generation Van: Alex

Re: [PHP] Image Generation

2008-08-20 Thread Jochem Maas
www.ashleysheridan.co.uk Onderwerp: Re: [PHP] Image Generation Van: Jochem Maas [EMAIL PROTECTED] Datum: Wed, 20 Aug 2008 11:06:14 +0200 Aan: [EMAIL PROTECTED] Aan: [EMAIL PROTECTED] CC: Alex Chamberlain [EMAIL PROTECTED], PHP General list

Re: Re: [PHP] Image Generation

2008-08-20 Thread php
: Re: [PHP] Image Generation Van: Jochem Maas Datum: Wed, 20 Aug 2008 11:06:14 +0200 Aan: [EMAIL PROTECTED] [3] Aan: [EMAIL PROTECTED] [4] CC: Alex Chamberlain , PHP General list Return-path: [EMAIL PROTECTED] Envelope-to: [EMAIL

Re: Re: [PHP] Image Generation

2008-08-20 Thread Ashley Sheridan
: [PHP] Image Generation Van: Jochem Maas Datum: Wed, 20 Aug 2008 11:06:14 +0200 Aan: [EMAIL PROTECTED] [3] Aan: [EMAIL PROTECTED] [4] CC: Alex Chamberlain , PHP General list Return-path: [EMAIL PROTECTED] Envelope-to: [EMAIL PROTECTED] [7

Re: Re: [PHP] Image Generation

2008-08-20 Thread Ashley Sheridan
good enough for my needs. Ash www.ashleysheridan.co.uk [1] Onderwerp: Re: [PHP] Image Generation Van: Jochem Maas Datum: Wed, 20 Aug 2008 11:06:14 +0200 Aan: [EMAIL PROTECTED] [3

[PHP] Image Generation: Centering Text

2005-05-02 Thread Richard Collyer
Hello, I am using the following code. ?php $img_number = imagecreate(100,20); $white = imagecolorallocate($img_number,255,255,255); $black = imagecolorallocate($img_number,0,0,0); $grey_shade = imagecolorallocate($img_number,204,204,204); imagefill($img_number,0,0,$white); $number = $_GET['text'];

Re: [PHP] Image Generation: Centering Text

2005-05-02 Thread Richard Davey
Hello Richard, Monday, May 2, 2005, 4:47:42 PM, you wrote: RC But I need to center the text in the image that is generated. As I RC am using the same font and it is fixed at 10px I was thinking of RC doing something like: RC (Get Length of Text in Chars * Width of Average Char) DIV 2. RC

[PHP] image generation with PHP

2002-11-24 Thread Myrage
is it possible to generate images with texts automatically?? like for eg. if the text is 7555 then automatically an image is generated with the text 7555 in it any help? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] image generation Problems (jpeg)

2002-04-29 Thread Peter Revill
= PLEASE CC ALL AWNSERS TO [EMAIL PROTECTED] == hi, im having a few problems installing GD, ill start from the top: I need Jpeg support in my PHP installation, and unfortunatly, GD (the verison i have) does not

Re: [PHP] image generation Problems (jpeg)

2002-04-29 Thread heinisch
At 29.04.2002 20:02, you wrote: = PLEASE CC ALL AWNSERS TO [EMAIL PROTECTED] = hi, im having a few problems installing GD, ill start from the top: I need Jpeg support in my PHP installation, and unfortunatly, GD

Re: [PHP] image generation Problems (jpeg)

2002-04-29 Thread Jason Wong
On Monday 29 April 2002 20:02, Peter Revill wrote: hi, im having a few problems installing GD, ill start from the top: I need Jpeg support in my PHP installation, and unfortunatly, GD (the verison i have) does not support them, so i figure, ill install it, installing the libary jpeg-6b

Re: [PHP] image generation Problems (jpeg)

2002-04-29 Thread Peter Revill
Jason Wong wrote: On Monday 29 April 2002 20:02, Peter Revill wrote: hi, im having a few problems installing GD, ill start from the top: I need Jpeg support in my PHP installation, and unfortunatly, GD (the verison i have) does not support them, so i figure, ill install it, installing the

Re: [PHP] image generation Problems (jpeg)

2002-04-29 Thread Jason Wong
On Monday 29 April 2002 21:40, Peter Revill wrote: Im not even sure myself, linux on 2.2.14 on what should be a redhat box i know theres a command something like dsmod to get the info, hmm.. Never mind, as long as you're reasonably sure it's a RH system you're running on . Have you checked

Re: [PHP] image generation Problems (jpeg)

2002-04-29 Thread Peter Revill
Jason Wong wrote: On Monday 29 April 2002 21:40, Peter Revill wrote: Im not even sure myself, linux on 2.2.14 on what should be a redhat box i know theres a command something like dsmod to get the info, hmm.. Never mind, as long as you're reasonably sure it's a RH system you're

Re: [PHP] image generation Problems (jpeg)

2002-04-29 Thread heinisch
At 29.04.2002 15:24, you wrote: At 29.04.2002 20:02, you wrote: = PLEASE CC ALL AWNSERS TO [EMAIL PROTECTED] = hi, im having a few problems installing GD, ill start from the top: I need Jpeg support in my PHP

Re: [PHP] image generation Problems (jpeg)

2002-04-29 Thread Jason Wong
On Monday 29 April 2002 21:55, Peter Revill wrote: Its a colbat cube running some sort of modified linux, i think based on Redhat i doint know what kind of colbat cube I presume you mean Colbalt ;-) in which case you cannot use the RH rpms. If there aren't any special reasons, I would just

[PHP] image generation issues

2002-02-11 Thread Adrian Murphy
Hi, I'm using the code in the manual to draw text on a png. but Its not working - ImageString() works but not ImageTTFText() I uploaded arial.ttf from windows to fonts/ folder Any Ideas: as a side note: PNG's - any real disadvantage to using them instead of gifs - not withstanding the

RE: [PHP] image generation issues

2002-02-11 Thread Martin Towell
when you say it doesn't work, do you mean that you get an error message or it just doesn't write the text to the image? -Original Message- From: Adrian Murphy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 1:16 PM To: [EMAIL PROTECTED] Subject: [PHP] image generation issues

Re: [PHP] image generation issues

2002-02-11 Thread hugh danaher
); hope this helps. Hugh - Original Message - From: Martin Towell [EMAIL PROTECTED] To: 'Adrian Murphy' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, February 11, 2002 6:36 PM Subject: RE: [PHP] image generation issues when you say it doesn't work, do you mean that you get an error

Re: [PHP] image generation issues

2002-02-11 Thread Adrian Murphy
i get 'Could not read font in..' i set permissions to 777 on both file and folder - Original Message - From: Martin Towell [EMAIL PROTECTED] To: 'Adrian Murphy' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 2:36 AM Subject: RE: [PHP] image generation issues when

RE: [PHP] image generation issues

2002-02-11 Thread Martin Towell
, 2002 2:04 PM To: Martin Towell; [EMAIL PROTECTED] Subject: Re: [PHP] image generation issues i get 'Could not read font in..' i set permissions to 777 on both file and folder - Original Message - From: Martin Towell [EMAIL PROTECTED] To: 'Adrian Murphy' [EMAIL PROTECTED]; [EMAIL PROTECTED

Re: [PHP] image generation issues

2002-02-11 Thread Adrian Murphy
tried everything suggested and still get 'could not read font' oh well thanx. - Original Message - From: hugh danaher [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 3:00 AM Subject: Re: [PHP] image generation issues Adrian, If you're using the code

Re: [PHP] image generation issues

2002-02-11 Thread Adrian Murphy
: Re: [PHP] image generation issues Hi Some of MS fonts wont work, try downloading some freeware fonts. Tom At 01:24 PM 2/12/02, Adrian Murphy wrote: tried everything suggested and still get 'could not read font' oh well thanx. - Original Message - From: hugh danaher [EMAIL

[PHP] Image generation scripts

2001-12-22 Thread Step One
Hi there! I'm writing some stuff for a non-profit site as voluntary help. Does somebody have any PHP image generation scripts (GD) that could be used to pretty up a statistics page. The produced image should be a chart, pie, bars or something similar that could visually represent various

[PHP] Image Generation Library

2001-08-08 Thread ignacio . estrada
Hi to all, I need to create web pages containing images which should be updated periodically, but the image contents may vary as data coming from a database varies. What is that?, well the image will contain dynamic objects and static objects. The dynamic objects can be text (representing

RE: [PHP] Image Generation Library

2001-08-08 Thread Bruin, Bolke de
Hi, read the manual on the GD-library (www.php.net/image) it wont do any GIFS anymore, but it'll all the rest Bolke -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Verzonden: Wednesday, August 08, 2001 6:14 PM Aan: [EMAIL PROTECTED] Onderwerp: [PHP] Image

[PHP] image generation + SSL

2001-07-19 Thread Iztok Stotl
Hello ! I have a problem with image generation on secure sites (SSL) ;( When I open a new window from a file using SSL (relative adressing) : window.open(graf.php,Graf,location=no,toolbar=no,menubar=no,status=no,w idth=710,height=530); I get the message that there are also nonsecure elements

RE: [PHP] Website dealing with PHP image generation?

2001-07-01 Thread Jeff Lewis
PROTECTED] Subject: RE: [PHP] Website dealing with PHP image generation? Jeff, I am not extremely fimilar with this function. However, I did notice you are copying your image at a width and height of 1x1. this is my guess as far as i know by default this pixels. so the likehood you would see

Re: [PHP] Website dealing with PHP image generation?

2001-07-01 Thread ReDucTor
, 2001 1:48 AM Subject: RE: [PHP] Website dealing with PHP image generation? I have changed it to below but still get this error Warning: Supplied argument is not a valid Image resource in /home/hyrum/public_html/test.php on line 41 and that is the ImageCopy line: $image = ImageCreate(500, 70

RE: [PHP] Website dealing with PHP image generation?

2001-07-01 Thread Jeff Lewis
Tried with and without and no luck, it has me stumped :) Jeff -Original Message- From: ReDucTor [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 01, 2001 11:53 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Website dealing with PHP image generation? shouldn't

Re: [PHP] Website dealing with PHP image generation?

2001-07-01 Thread ReDucTor
); - Original Message - From: Jeff Lewis [EMAIL PROTECTED] To: ReDucTor [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, July 02, 2001 2:17 AM Subject: RE: [PHP] Website dealing with PHP image generation? Tried with and without and no luck, it has me stumped :) Jeff -Original

RE: [PHP] Website dealing with PHP image generation?

2001-07-01 Thread Jeff Lewis
dealing with PHP image generation? Try $image = ImageCreate(500, 70); $bg = ImageColorAllocate($image, 255, 255, 255); $blue = ImageColorAllocate($image, 0, 0, 255); $black = ImageColorAllocate($image, 0, 0, 0); $himage= ImageCreateFromGIF(/usr/hyrum/public_html/images/topics/hyrum.gif

Re: [PHP] Website dealing with PHP image generation?

2001-07-01 Thread ReDucTor
No Problem - Original Message - From: Jeff Lewis [EMAIL PROTECTED] To: ReDucTor [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, July 02, 2001 2:48 AM Subject: RE: [PHP] Website dealing with PHP image generation? I used ImageCreateFromPNG and it worked great! Thanks a lot! GIF

[PHP] Website dealing with PHP image generation?

2001-06-30 Thread Jeff Lewis
Ok, I have tried Experts Exchange, Devshed, and even posted on here asking. Does anyone know how to use the image generation? I looked for a good site on it but found nothing... My problem. I am creating an image on the fly based on newest entries in one my mySQL tables. In this created

RE: [PHP] Website dealing with PHP image generation?

2001-06-30 Thread Jon Yaggie
Jeff, I am not extremely fimilar with this function. However, I did notice you are copying your image at a width and height of 1x1. this is my guess as far as i know by default this pixels. so the likehood you would see an image copied at 1x1 is rather low. but perhaps i am complete

[PHP] Image generation

2001-06-28 Thread Young C. Fan
Hi, I'd like to write some scripts that resize high-res jpegs and gifs into smaller jpegs and gifs. What are the best tools for doing this? I've heard of the GD library and ImageMagick. Which one is better? Are there others? I'll definitely have to generate gif's, so png support by itself isn't