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
Ashley Sheridan schreef: I don't think GD has a built-in function to scale an image the way you are asking, of course you can scale images with GD, but everything works in pixels, ImageMagick is no different ... there is no such thing as millimeters when it comes to bitmap images, you can

Re: [PHP] Image Generation

2008-08-20 Thread Ashley Sheridan
Hence me saying in the way you are asking I know GD can scale images (I've done that myself on more than one occassion), but not images that are intended for print as opposed to screen viewing, as this appears to be. As for quality, I've found that GD offers comparable quality images to

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

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

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

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

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