[PHP] php gd extension with cPanel

2013-03-14 Thread David Mehler
stalled as it's gone through cPanel. It does not however have the php-gd extension. I am wondering if there's an easy way to get this extension working? I do not want to have to recompile the whole php to do this. Thanks. Dave. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] gd Graphics Library Question (EXIF)

2011-04-30 Thread Stuart Dallas
On Saturday, 30 April 2011 at 03:32, Mitch wrote: I was wondering about that. Since I am not actually hosting my ISP would > have to have it loaded (or compiled into their PHP implementation), right? You may be able to use http://php.net/dl to load the extension (you'll need to build it to be co

Re: [PHP] gd Graphics Library Question (EXIF)

2011-04-29 Thread Mitch
I was wondering about that. Since I am not actually hosting my ISP would have to have it loaded (or compiled into their PHP implementation), right? I'll have to do some legwork with my ISP and ImageMagic On 4/29/2011 9:26 AM, Stuart Dallas wrote: On Friday, 29 April 2011 at 03:33, Mitch wrote:

Re: [PHP] gd Graphics Library Question (EXIF)

2011-04-29 Thread Stuart Dallas
On Friday, 29 April 2011 at 03:33, Mitch wrote: I have written a lightweight, easy to use photo album "system" in > HTML/PHP/MySQL.In addition to the Photo Album side I have written a > series of Admin Utilities to manage it with. One of the administrative > utilities uploads photos from my loca

Re: [PHP] gd Graphics Library Question (EXIF)

2011-04-29 Thread Gerardo Benitez
Hi Mitch, you could try with http://www.php.net/manual/en/function.exif-read-data.php I did a test with image jpg and this was the result: FILE . FileName: bruce_lee_black_white.jpg FILE . FileDateTime: 1304086298 FILE . FileSize: 33464 FILE . FileType: 2 FILE . MimeType: image/jpeg FILE . Section

[PHP] gd Graphics Library Question (EXIF)

2011-04-28 Thread Mitch
I have written a lightweight, easy to use photo album "system" in HTML/PHP/MySQL.In addition to the Photo Album side I have written a series of Admin Utilities to manage it with. One of the administrative utilities uploads photos from my local drive, resizes them to be more efficient on disk sp

Re: [PHP] GD Watermark Question

2010-09-19 Thread Peter Lind
On 19 September 2010 16:05, tedd wrote: > At 6:03 PM -0400 9/17/10, Gary wrote: >> >> Is there a way to insert a watermark on an image as it is being uploaded >> to >> the image file, then removed when it is called from a database to be >> viewed >> on a website? >> >> The rational behind this is

Re: [PHP] GD Watermark Question

2010-09-19 Thread tedd
At 6:03 PM -0400 9/17/10, Gary wrote: Is there a way to insert a watermark on an image as it is being uploaded to the image file, then removed when it is called from a database to be viewed on a website? The rational behind this is I have a photographers site I am doing, and I am limiting the si

Re: [PHP] GD Watermark Question

2010-09-17 Thread Ashley Sheridan
On Fri, 2010-09-17 at 18:03 -0400, Gary wrote: > Is there a way to insert a watermark on an image as it is being uploaded to > the image file, then removed when it is called from a database to be viewed > on a website? > > The rational behind this is I have a photographers site I am doing, and

[PHP] GD Watermark Question

2010-09-17 Thread Gary
Is there a way to insert a watermark on an image as it is being uploaded to the image file, then removed when it is called from a database to be viewed on a website? The rational behind this is I have a photographers site I am doing, and I am limiting the size of the images somewhat to reduce p

Re: [PHP] GD - import a PNG image and make transparant

2010-05-13 Thread Alex Davies
Hi Ash, Thanks for your suggestion. I think this is where my confusion is. I understand how to use imagecolorallocatealpha() to for example create a 50% transparant colour, and apply it to a new rectangle for example. I dont understand how to "apply" it to a new source image, for example $src = i

Re: [PHP] GD - import a PNG image and make transparant

2010-05-13 Thread Karl DeSaulniers
Hey tedd, Sorry bout that.. here you go. http://designdrumm.com/upload_images_test.zip Karl On May 13, 2010, at 9:06 AM, tedd wrote: At 6:40 PM -0500 5/12/10, Karl DeSaulniers wrote: Hi Alex, I have a php file I made just a few months ago. It takes a gif, jpeg or png of any size and sizes i

Re: [PHP] GD - import a PNG image and make transparant

2010-05-13 Thread tedd
At 6:40 PM -0500 5/12/10, Karl DeSaulniers wrote: Hi Alex, I have a php file I made just a few months ago. It takes a gif, jpeg or png of any size and sizes it proportionately to a specified size and then outputs a png. If the image is a transparent png or transparent gif, it will still hold th

Re: [PHP] GD - import a PNG image and make transparant

2010-05-12 Thread Ashley Sheridan
On Thu, 2010-05-13 at 00:12 +0100, Alex Davies wrote: > Hi, > > I am trying to import a PNG image from disk, place it on top of a > transparant image created in GD and output it to the browser. In the case of > a low opacity setting, I would expect to see the background colour from the > HTML pag

Re: [PHP] GD - import a PNG image and make transparant

2010-05-12 Thread Karl DeSaulniers
Hi Alex, I have a php file I made just a few months ago. It takes a gif, jpeg or png of any size and sizes it proportionately to a specified size and then outputs a png. If the image is a transparent png or transparent gif, it will still hold the transparency. This is just a test page and it t

[PHP] GD - import a PNG image and make transparant

2010-05-12 Thread Alex Davies
Hi, I am trying to import a PNG image from disk, place it on top of a transparant image created in GD and output it to the browser. In the case of a low opacity setting, I would expect to see the background colour from the HTML page. If I set the opacity to 0, everything works - I end up with a t

Re: [PHP] PHP GD - Create a "flag"

2010-05-09 Thread Ashley Sheridan
On Sun, 2010-05-09 at 14:21 +0200, Giorgio wrote: > Thankyou Ashley, > > as I only need 5 colors for each image, my idea was to create a single pixel > image for each color and save it on the hd (so that i don't have to create > it every time). > > I've finally used this code: > > imagecopymerg

Re: [PHP] PHP GD - Create a "flag"

2010-05-09 Thread Ashley Sheridan
On Sun, 2010-05-09 at 14:21 +0200, Giorgio wrote: > Thankyou Ashley, > > as I only need 5 colors for each image, my idea was to create a single pixel > image for each color and save it on the hd (so that i don't have to create > it every time). > > I've finally used this code: > > imagecopymerg

Re: [PHP] PHP GD - Create a "flag"

2010-05-09 Thread Giorgio
Thankyou Ashley, as I only need 5 colors for each image, my idea was to create a single pixel image for each color and save it on the hd (so that i don't have to create it every time). I've finally used this code: imagecopymerge($base, $img1, 0, 0, 1, 1, 100, 500, 75); imagecopymerge($base, $img

Re: [PHP] PHP GD - Create a "flag"

2010-05-09 Thread Ashley Sheridan
On Sat, 2010-05-08 at 18:48 +0200, Giorgio wrote: > Hi, > > i've just started using GD libraries. My purpose is to create something like > a flag. > > So that i have a 600*600 px background image, and a 1*1 px image for each > colour I need. > > Ok now let's say i want to colour a third of the

[PHP] PHP GD - Create a "flag"

2010-05-08 Thread Giorgio
Hi, i've just started using GD libraries. My purpose is to create something like a flag. So that i have a 600*600 px background image, and a 1*1 px image for each colour I need. Ok now let's say i want to colour a third of the background image. I can use this code: imagecopymerge($base, $img1,

Re: [PHP] [GD] Image errors

2009-07-15 Thread Peter Ford
Martin Scotta wrote: > Why are you ussing GD? > All you need is output the image to the browser? > > try this... I didn't test/run this code, but it may work... > > public function showPicture( $id ) { > header('Content-type:' . mime_content_type( $this->updir . $id . > '.png' ) ); >

Re: [PHP] [GD] Image errors

2009-07-15 Thread Peter Ford
Ash, Martin, Seems you are both wandering around the obvious problem... I suspect that $tipo (in the next line) is *supposed* to be $type - sounds like a partial Italian translation to me... So given that $type="imagecreatefrompng" (for example, if the mime check returns 'png' - not very reliabl

Re: [PHP] [GD] Image errors

2009-07-14 Thread Martin Scotta
Why are you ussing GD? All you need is output the image to the browser? try this... I didn't test/run this code, but it may work... public function showPicture( $id ) { header('Content-type:' . mime_content_type( $this->updir . $id . '.png' ) ); readfile( $this->updir . $id . '.png' )

Re: [PHP] [GD] Image errors

2009-07-14 Thread Ashley Sheridan
On Tue, 2009-07-14 at 14:16 -0300, Martin Scotta wrote: > On Tue, Jul 14, 2009 at 1:48 PM, Ashley > Sheridan wrote: > > On Tue, 2009-07-14 at 13:41 -0300, Martin Scotta wrote: > >> He is calling the function by variable > >> > >> something like this > >> > >> $func = 'var_dump'; > >> > >> $func( ne

Re: [PHP] [GD] Image errors

2009-07-14 Thread Martin Scotta
On Tue, Jul 14, 2009 at 1:48 PM, Ashley Sheridan wrote: > On Tue, 2009-07-14 at 13:41 -0300, Martin Scotta wrote: >> He is calling the function by variable >> >> something like this >> >> $func = 'var_dump'; >> >> $func( new Foo ); >> >> On Tue, Jul 14, 2009 at 1:30 PM, Ashley >> Sheridan wrote: >>

Re: [PHP] [GD] Image errors

2009-07-14 Thread Ashley Sheridan
On Tue, 2009-07-14 at 13:41 -0300, Martin Scotta wrote: > He is calling the function by variable > > something like this > > $func = 'var_dump'; > > $func( new Foo ); > > On Tue, Jul 14, 2009 at 1:30 PM, Ashley > Sheridan wrote: > > On Tue, 2009-07-14 at 13:27 -0300, Martin Scotta wrote: > >> $

Re: [PHP] [GD] Image errors

2009-07-14 Thread Martin Scotta
He is calling the function by variable something like this $func = 'var_dump'; $func( new Foo ); On Tue, Jul 14, 2009 at 1:30 PM, Ashley Sheridan wrote: > On Tue, 2009-07-14 at 13:27 -0300, Martin Scotta wrote: >> $immagine = $tipo($this->updir.$id.'.png'); >> >> $tipo is undefined >> >> >> On

Re: [PHP] [GD] Image errors

2009-07-14 Thread Ashley Sheridan
On Tue, 2009-07-14 at 13:27 -0300, Martin Scotta wrote: > $immagine = $tipo($this->updir.$id.'.png'); > > $tipo is undefined > > > On Tue, Jul 14, 2009 at 12:48 PM, Il pinguino > volante wrote: > > Hi to all > > > > I get a problem processing an image with GD libraries. > > > > This is my functi

Re: [PHP] [GD] Image errors

2009-07-14 Thread Martin Scotta
$immagine = $tipo($this->updir.$id.'.png'); $tipo is undefined On Tue, Jul 14, 2009 at 12:48 PM, Il pinguino volante wrote: > Hi to all > > I get a problem processing an image with GD libraries. > > This is my function > >   public function showPicture($id) { >       header('Content-type: image/

[PHP] [GD] Image errors

2009-07-14 Thread Il pinguino volante
Hi to all I get a problem processing an image with GD libraries. This is my function public function showPicture($id) { header('Content-type: image/jpeg'); $mime = mime_content_type($this->updir.$id.'.png'); $type = explode('/',$mime); $type = 'imagecreatefrom'.$t

[PHP] GD to IMAGEMAGICK

2009-07-09 Thread TS
Hello. I have this code and the getFrame returns a GD truecolor image. However, I want to convert to imagemagick after I get that frame from ffmpeg. Here's my code: // GRAB A FRAME FROM THE VIDEO FOR A THUMB VIEW $video = new ffmpeg_movie($data_temp, false); $frame = $video->getFrame(90); //ret

Re: [PHP] GD and Converting a Transparent PNG-8 to a Transparent GIF

2009-01-18 Thread Graham Anderson
I got it to work :) Like you had recommended, I found a script in http://php.net/imagecolortransparent from: fmkaiba at optonline dot net 07-Feb-2008 08:05. The function is called, createthumb Cheers Graham On Jan 18, 2009, at 4:46 PM, Jochem Maas wrote: Graham Anderson schreef: Hi I am

Re: [PHP] GD and Converting a Transparent PNG-8 to a Transparent GIF

2009-01-18 Thread Graham Anderson
Thanks for the reply I tried the example (below) from the link and still get a gif with white background. Maybe, you can only do this with PNG-24s...not PNG-8s? Anyone else know if this can work? # Convert the PreExisting PNG Image to a GIF $img = imagecreatefrompng($pngPath); $gifAbsolu

Re: [PHP] GD and Converting a Transparent PNG-8 to a Transparent GIF

2009-01-18 Thread Jochem Maas
Graham Anderson schreef: > Hi > > I am having problems getting GD to convert a transparent PNG-8 to a > transparent GIF > The below WILL produce a GIF...but leaves a white background > > # Convert the PreExisting PNG Image to a GIF > $img = imagecreatefrompng($pngPath); > > # Set the GIF to be t

[PHP] GD and Converting a Transparent PNG-8 to a Transparent GIF

2009-01-17 Thread Graham Anderson
Hi I am having problems getting GD to convert a transparent PNG-8 to a transparent GIF The below WILL produce a GIF...but leaves a white background # Convert the PreExisting PNG Image to a GIF $img = imagecreatefrompng($pngPath); # Set the GIF to be transparent: Does not seem to work $trans_

Re: [PHP] php-gd problems on Ubuntu 8.04

2008-08-18 Thread Chantal Rosmuller
er wrote: > > Hi list, > > > > I have a PHP problem on Ubuntu 8.04, the php-gd package for ubuntu > > doesn't use the gd bundles library for security reasons if I understood > > this correctly. I solved it by downloading a php-gd fedora rpm and > > converting it

Re: [PHP] php-gd problems on Ubuntu 8.04

2008-08-18 Thread Luke
2008 18:58:57 Micah Gersten wrote: Make sure that your php.ini file for the cli is loading gd. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Chantal Rosmuller wrote: Hi list, I have a PHP problem on Ubuntu 8.04, the php-gd package for ubuntu doesn&#

Re: [PHP] php-gd problems on Ubuntu 8.04

2008-08-14 Thread Micah Gersten
Make sure that your php.ini file for the cli is loading gd. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Chantal Rosmuller wrote: > Hi list, > > I have a PHP problem on Ubuntu 8.04, the php-gd package for ubuntu > doesn't use the gd bu

[PHP] php-gd problems on Ubuntu 8.04

2008-08-14 Thread Chantal Rosmuller
Hi list, I have a PHP problem on Ubuntu 8.04, the php-gd package for ubuntu doesn't use the gd bundles library for security reasons if I understood this correctly. I solved it by downloading a php-gd fedora rpm and converting it to .deb with alien. it works for the apache websites but no

Re: [PHP] GD - Print Animated GIF

2008-06-19 Thread Per Jessen
Stephen Pynenburg wrote: > Hey All, > I'm new to the list, but hopefully it's a nice one :) > Anyway, my problem is fairly straightforward, but there doesn't seem > to be anything on it anywhere. When I read an animated GIF with > imagecreatefromgif(), then print it out with imagegif(), the result

[PHP] GD - Print Animated GIF

2008-06-18 Thread Stephen Pynenburg
Hey All, I'm new to the list, but hopefully it's a nice one :) Anyway, my problem is fairly straightforward, but there doesn't seem to be anything on it anywhere. When I read an animated GIF with imagecreatefromgif(), then print it out with imagegif(), the result is just the first frame of the anim

Re: [PHP] GD brush tracing letters

2008-06-14 Thread Daniel Brown
On Sun, Dec 16, 2007 at 7:16 PM, eric cash <[EMAIL PROTECTED]> wrote: > Quick GD question, I'm building a custom CAPTCHA, and I want to 'trace' > random letters (hopefully from a random font) with a brush. Is there an easy > way to do this, or am I going to have to build some ridiculous custom > li

[PHP] GD brush tracing letters

2008-06-14 Thread eric cash
Quick GD question, I'm building a custom CAPTCHA, and I want to 'trace' random letters (hopefully from a random font) with a brush. Is there an easy way to do this, or am I going to have to build some ridiculous custom library on my own to do it? Thanks! ec -- PHP General Mailing List (http:

Re: [PHP] GD - JPEG to PNG with transparency and color

2008-05-07 Thread tedd
At 12:16 PM -0400 5/6/08, Travis L. Font wrote: Following files: bg.png - Clear Transparent Image 14416fed5d4f78.jpg - Normal Jpeg Image The Code: header('content-type: image/png'); $watermark = imagecreatefromjpeg('14416fed5d4f78.jpg'); $watermark_width = imagesx($watermark); $watermark_hei

[PHP] GD - JPEG to PNG with transparency and color

2008-05-06 Thread Travis L. Font
Following files: bg.png - Clear Transparent Image 14416fed5d4f78.jpg - Normal Jpeg Image The Code: header('content-type: image/png'); $watermark = imagecreatefromjpeg('14416fed5d4f78.jpg'); $watermark_width = imagesx($watermark); $watermark_height = imagesy($watermark);

Re: [PHP] PHP GD library installing

2008-04-11 Thread Luca Paolella
On Apr 10, 2008, at 5:15 PM, Daniel Brown wrote: On Thu, Apr 10, 2008 at 4:54 AM, Luca Paolella <[EMAIL PROTECTED] > wrote: How do I install/activate the GD library with my existing PHP version? I'm quite sure it isn't already, since I got this error: Fatal error: Call to undefined function

Re: [PHP] PHP GD library installing

2008-04-10 Thread Daniel Brown
On Thu, Apr 10, 2008 at 4:54 AM, Luca Paolella <[EMAIL PROTECTED]> wrote: > How do I install/activate the GD library with my existing PHP version? I'm > quite sure it isn't already, since I got this error: > > Fatal error: Call to undefined function imagecreate() in > /Volumes/Data/Users/luca/Libr

Re: [PHP] PHP GD library installing

2008-04-10 Thread Thijs Lensselink
he dll from pecl4win.php.net. > > > > But from your directory structure i presume you have some sort of *nix > > system. > > So you have to reconfigure and rebuild PHP. > > > > Ouch... first try installing the php gd module through whatever > package manag

Re: [PHP] PHP GD library installing

2008-04-10 Thread Robin Vickery
t; > > > > On windows it's as easy as downloading the dll from pecl4win.php.net. > > > > > > But from your directory structure i presume you have some sort of *nix > > > system. > > > So you have to reconfigure and rebuild PHP. > > > > > >

Re: [PHP] PHP GD library installing

2008-04-10 Thread Thijs Lensselink
oading the dll from pecl4win.php.net. But from your directory structure i presume you have some sort of *nix system. So you have to reconfigure and rebuild PHP. Ouch... first try installing the php gd module through whatever package manager your *nix distribution uses. For instance, on Ubuntu linux y

Re: [PHP] PHP GD library installing

2008-04-10 Thread Robin Vickery
x27;s as easy as downloading the dll from pecl4win.php.net. > > But from your directory structure i presume you have some sort of *nix > system. > So you have to reconfigure and rebuild PHP. Ouch... first try installing the php gd module through whatever package manager your *nix di

Re: [PHP] PHP GD library installing

2008-04-10 Thread Thijs Lensselink
Quoting Luca Paolella <[EMAIL PROTECTED]>: How do I install/activate the GD library with my existing PHP version? I'm quite sure it isn't already, since I got this error: Fatal error: Call to undefined function imagecreate() in /Volumes/Data/Users/luca/Library/WebServer/Documents/reloadTest/ima

[PHP] PHP GD library installing

2008-04-10 Thread Luca Paolella
How do I install/activate the GD library with my existing PHP version? I'm quite sure it isn't already, since I got this error: Fatal error: Call to undefined function imagecreate() in /Volumes/Data/ Users/luca/Library/WebServer/Documents/reloadTest/image.php on line 6 Please forgive my igno

Re: [PHP] GD, changing an images pixel color, color matching, fuzzy picture

2008-03-28 Thread Casey
On Mar 28, 2008, at 7:38 PM, Lamonte <[EMAIL PROTECTED]> wrote: Casey wrote: I have an annoying habit of not using comments :) Explanations are inline. On Mar 28, 2008, at 7:10 PM, Lamonte <[EMAIL PROTECTED]> wrote: Casey wrote: On Mar 28, 2008, at 4:27 PM, Lamonte <[EMAIL PROTECTED]> wrot

Re: [PHP] GD, changing an images pixel color, color matching, fuzzy picture

2008-03-28 Thread Casey
I have an annoying habit of not using comments :) Explanations are inline. On Mar 28, 2008, at 7:10 PM, Lamonte <[EMAIL PROTECTED]> wrote: Casey wrote: On Mar 28, 2008, at 4:27 PM, Lamonte <[EMAIL PROTECTED]> wrote: Okay I created a script that changes a basic smiley face into a red smiley

Re: [PHP] GD, changing an images pixel color, color matching, fuzzy picture

2008-03-28 Thread Casey
On Mar 28, 2008, at 4:27 PM, Lamonte <[EMAIL PROTECTED]> wrote: Okay I created a script that changes a basic smiley face into a red smiley face..but it doesn't replace all the yellow, it looks like a yellow shadow in the background: $color = imagecolorallocate($im,hexdec(substr($hex,0,2)),h

[PHP] GD, changing an images pixel color, color matching, fuzzy picture

2008-03-28 Thread Lamonte
Okay I created a script that changes a basic smiley face into a red smiley face..but it doesn't replace all the yellow, it looks like a yellow shadow in the background: $color = imagecolorallocate($im,hexdec(substr($hex,0,2)),hexdec(substr($hex,2,2)),hexdec(substr($hex,4,6))); for($cloneH=0;$

Re: [PHP] GD / Pixel Font Rendering

2008-03-17 Thread Børge Holen
On Monday 17 March 2008 13:10:20 Jochem Maas wrote: > Børge Holen schreef: > > On Monday 17 March 2008 09:25:36 Jochem Maas wrote: > >> nihilism machine schreef: > >>> I am trying to render an 8 pixel pixel font without anti aliasing to > >>> look crisp (silkscreen) in 8pt with gd. the font is huge

Re: [PHP] GD / Pixel Font Rendering

2008-03-17 Thread Jochem Maas
Børge Holen schreef: On Monday 17 March 2008 09:25:36 Jochem Maas wrote: nihilism machine schreef: I am trying to render an 8 pixel pixel font without anti aliasing to look crisp (silkscreen) in 8pt with gd. the font is huge and ugly: -- any ideas? don't post twice. I recon he didn't.

Re: [PHP] GD / Pixel Font Rendering

2008-03-17 Thread Børge Holen
On Monday 17 March 2008 09:25:36 Jochem Maas wrote: > nihilism machine schreef: > > I am trying to render an 8 pixel pixel font without anti aliasing to > > look crisp (silkscreen) in 8pt with gd. the font is huge and ugly: > > > > > // Set the content-type > > header("Content-type: image/png"); >

Re: [PHP] GD / Pixel Font Rendering

2008-03-17 Thread Jochem Maas
nihilism machine schreef: I am trying to render an 8 pixel pixel font without anti aliasing to look crisp (silkscreen) in 8pt with gd. the font is huge and ugly: -- any ideas? don't post twice. use '8' instead of '20' for the fontsize. -- PHP General Mailing List (http://www.php.net/

[PHP] GD / Pixel Font Rendering

2008-03-15 Thread nihilism machine
I am trying to render an 8 pixel pixel font without anti aliasing to look crisp (silkscreen) in 8pt with gd. the font is huge and ugly: -- any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GD Library

2007-10-30 Thread Jochem Maas
Charlene wrote: > I have the GD Library installed, but I don't see any of the fonts. What > is the preferred location to download fonts (standard fonts like Arial, > Verdana, etc.) and which directory should they be stored in? 'standard fonts' is not. and any directory you want. upload any legal

[PHP] GD Library

2007-10-30 Thread Charlene
I have the GD Library installed, but I don't see any of the fonts. What is the preferred location to download fonts (standard fonts like Arial, Verdana, etc.) and which directory should they be stored in? Charlene -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

[PHP] gd with php 5.2.4

2007-10-14 Thread xx
Help! I'm using php version 5.2.4 and I'm not able to even get a pointer to a jpg image (ImageCreateFromJPEG(filename)). When I do so the program exits ... Can anybody help me, please? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GD Library

2007-09-13 Thread Samuel Vogel
I would point you to MAMP: http://www.mamp.info/ It's like Xampp but designed all for a Mac... Easy to install, to configure and to user ;) Regards, Samy Greg Donald schrieb: On Thu, 13 Sep 2007, Steve Marquez wrote: I am running PHP 4.4.7 without the GD Library and need it to run. I am v

Re: [PHP] GD Library

2007-09-13 Thread Greg Donald
On Thu, 13 Sep 2007, Steve Marquez wrote: > I am running PHP 4.4.7 without the GD Library and need it to run. > I am very novice on PHP, and am using a Mac with 10.3.9. > Can anyone point me in the right direction? http://destiney.com/blog/php-4-5-macos-x Hopefully those configs aren't totally o

RE: [PHP] GD Library

2007-09-13 Thread Jay Blanchard
[snip] I am running PHP 4.4.7 without the GD Library and need it to run. I am very novice on PHP, and am using a Mac with 10.3.9. Can anyone point me in the right direction? [/snip] http://www.php.net/gd tells you how to get and install the libraries. -- PHP General Mailing List (http://www.php.n

[PHP] GD Library

2007-09-13 Thread Steve Marquez
Greetings, I am running PHP 4.4.7 without the GD Library and need it to run. I am very novice on PHP, and am using a Mac with 10.3.9. Can anyone point me in the right direction? Thank you so much, -- Steve M.

Re: [PHP] GD Library and outputing image

2007-06-15 Thread tedd
At 9:17 PM +0100 6/13/07, Ross wrote: Never really used the GD much before very straightforward but how do I output the image on a page. This is fine on a php page on its own but what about one where the headers are already sent? Ross: That's not a problem. See this: http://xn--nvg.com/rotat

Re: [PHP] GD Library and outputing image

2007-06-13 Thread Daniel Brown
On 6/13/07, Stephen <[EMAIL PROTECTED]> wrote: Ross <[EMAIL PROTECTED]> wrote:Never really used the GD much before very straightforward but how do I output the image on a page. This is fine on a php page on its own but what about one where the headers are already sent? Save the image as

Re: [PHP] GD Library and outputing image

2007-06-13 Thread Stephen
Ross <[EMAIL PROTECTED]> wrote:Never really used the GD much before very straightforward but how do I output the image on a page. This is fine on a php page on its own but what about one where the headers are already sent? Save the image as file, first. The href src= etc

Re: [PHP] GD Library and outputing image

2007-06-13 Thread Daniel Brown
On 6/13/07, Ross <[EMAIL PROTECTED]> wrote: Never really used the GD much before very straightforward but how do I output the image on a page. This is fine on a php page on its own but what about one where the headers are already sent? I take it I can do something like this . Anyone got a bet

[PHP] GD Library and outputing image

2007-06-13 Thread Ross
Never really used the GD much before very straightforward but how do I output the image on a page. This is fine on a php page on its own but what about one where the headers are already sent? I take it I can do something like this . Anyone got a better method? $image = imagecreatefromjpeg

RE: [PHP] GD 2.0.28 + PHP 4.4.2 + pixelation :(

2006-12-27 Thread Steven Macintyre
> imagecopyresampled might help you... I use that and it works > without > problems. > Hi Peter, " I have done some searching via google and some answers say change copyimageresampled to copyimageresized etc" I have tried your suggestion with the same results ... that is what I was using first

Re: [PHP] GD 2.0.28 + PHP 4.4.2 + pixelation :(

2006-12-27 Thread Jochem Maas
Steven Macintyre wrote: > Hi All, > > I have done some searching via google and some answers say change > copyimageresampled to copyimageresized etc which should be the correct; use copyimageresampled() > > I have tried all fixes ... to no avail > > > I have one image here 1280 x 960 (150 dp

RE: [PHP] GD 2.0.28 + PHP 4.4.2 + pixelation :(

2006-12-27 Thread Peter Lauri
Hi, imagecopyresampled might help you... I use that and it works without problems. /Peter -Original Message- From: Steven Macintyre [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 27, 2006 10:17 AM To: php-general@lists.php.net Subject: [PHP] GD 2.0.28 + PHP 4.4.2 + pixelation

[PHP] GD 2.0.28 + PHP 4.4.2 + pixelation :(

2006-12-27 Thread Steven Macintyre
Hi All, I have done some searching via google and some answers say change copyimageresampled to copyimageresized etc I have tried all fixes ... to no avail I have one image here 1280 x 960 (150 dpi) 24 depth When using the following it pixelates ... function createthumb($name,$filename,$new

RE: [PHP] GD, and GD JPEG

2006-11-26 Thread Peter Lauri
Peter -Original Message- From: sublimenal [mailto:[EMAIL PROTECTED] Sent: Sunday, November 26, 2006 6:31 AM To: php-general@lists.php.net Subject: Re: [PHP] GD, and GD JPEG Hey you need to ./configure it into your php installation via the command line Jeff-153 wrote: > > >

Re: [PHP] GD, and GD JPEG

2006-11-25 Thread sublimenal
Hey you need to ./configure it into your php installation via the command line Jeff-153 wrote: > > > Hi there. > I installed a script but it requires GD and GD JPEG > > I downloaded GD, and GD JPEG > > But how the heck do I install it? > > Thanks guys > > -- > PHP General Mailing List (h

Re: [PHP] GD.. con't

2006-11-25 Thread Richard Lynch
On Sat, November 25, 2006 4:25 pm, Jeff wrote: > Do I have to compile it with a C program? You do not need to compile GD on Windows, unless you are a masochist. :-v Use http://php.net/phpinfo to find out where you php.ini file is, or should be. Whatever directory that shows for "php.ini", put yo

[PHP] GD.. con't

2006-11-25 Thread Jeff
Do I have to compile it with a C program? What programs do people suggest I use to make PHP Files? Is there a simple C program that will create basically whatever you want to do, without knowing the language? I recall studying it in school, vaguely recalling the code... Thanks, Jeff -- PHP

[PHP] GD, and GD JPEG

2006-11-25 Thread Jeff
Hi there. I installed a script but it requires GD and GD JPEG I downloaded GD, and GD JPEG But how the heck do I install it? Thanks guys -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GD - Problem writing text

2006-11-24 Thread Richard Lynch
On Thu, November 23, 2006 9:30 am, Fredrik Thunberg wrote: > imagettftext ($im, 30, 0, 10, 40 , $black, TTF_DIR. "times.ttf", > "Hello World!"); > FreeType Support enabled > FreeType Linkage with freetype > FreeType Version 2.1.3 > The one things that differs between the servers is:

[PHP] GD - Problem writing text

2006-11-23 Thread Fredrik Thunberg
Hi all This is my first attempt to wrie to this mailing list, so please bare with me. My problem is as follows I'm trying to generate a dynamic picture with some text on it. The code works fine on one of my servers, but not on the other one. The code I'm using: $im = imagecreatetruecolor

Re: [PHP] gd for php5 under RH ES4

2006-10-11 Thread Richard Lynch
On Wed, October 11, 2006 1:36 pm, Doug Fulton wrote: > I am trying to use the php gd library (for imagecreate, etc) with php5 > under Red Hat ES4. I tried installing php-gd via webmin (which in > turn, > I see, uses up2date), but get the following error in the apache error > log

[PHP] gd for php5 under RH ES4

2006-10-11 Thread Doug Fulton
I am trying to use the php gd library (for imagecreate, etc) with php5 under Red Hat ES4. I tried installing php-gd via webmin (which in turn, I see, uses up2date), but get the following error in the apache error log when restarting: PHP Warning: PHP Startup: Unable to load dynamic library

RE: [PHP] GD to database directly

2006-07-19 Thread tedd
At 12:36 PM -0500 7/19/06, Jay Blanchard wrote: >[snip] >... some research ... >[/snip] > >So, am I to assume that this issue about storing images in databases is >dead? Yes, it was dead before it started, as it was the last time this issue was discussed. Simply put, there are tradeoffs, but bot

RE: [PHP] GD to database directly

2006-07-19 Thread Jay Blanchard
[snip] ... some research ... [/snip] So, am I to assume that this issue about storing images in databases is dead? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] GD to database directly

2006-07-18 Thread Jay Blanchard
[snip] Kevin, you have more than once pointed out using a RAW format for operating the data system, what exactly do you mean? The database becomes the OS? If so, how do you set that up? It is something that I am not totally familiar with. [/snip] I did some research and went back to Kevin's origi

RE: [PHP] GD to database directly

2006-07-16 Thread Jay Blanchard
[snip] ...a lot of stuff started by my original answer... [/snip] While this has been a fine debate I find that the discussion has deteriorated badly. Can we bring it back on point? There are a lot of us using MySQL (and PostGreSQL) along with PHP and in practice we have found that storing images

Re: [PHP] GD to database directly

2006-07-16 Thread Kevin Waterson
This one time, at band camp, "Richard Lynch" <[EMAIL PROTECTED]> wrote: > Assume, for the sake of argument, that your hard drive crashed. > > And your backup tape was invalid. > > And the weekly backup tape is also invalid. > > And, for good measuere, the monthly tape is just so out-of-date, t

Re: [PHP] GD to database directly

2006-07-16 Thread Lester Caine
Richard Lynch wrote: Given the number of posts here in PHP-General alone, of people getting tripped up by these things, I have concluded that cramming images into the DB is far more trouble than it is worth. It *seems* like a Good Idea until you actually do it for awhile, and then run into all

Re: [PHP] GD to database directly

2006-07-15 Thread Richard Lynch
On Fri, July 14, 2006 9:52 pm, Kevin Waterson wrote: > > >> I'm more concerned about the disaster recovery of a DB from a >> crashed >> hard drive, which has been cluttered up with binary data, making >> data >> recovery. > > One of the greatest benifits of binary DB storage is a single point > of

Re: [PHP] GD to database directly

2006-07-14 Thread Kevin Waterson
This one time, at band camp, "Richard Lynch" <[EMAIL PROTECTED]> wrote: > I'm more concerned about the disaster recovery of a DB from a crashed > hard drive, which has been cluttered up with binary data, making data > recovery. One of the greatest benifits of binary DB storage is a single point

Re: [PHP] GD to database directly

2006-07-14 Thread Richard Lynch
On Thu, July 13, 2006 6:49 pm, Kevin Waterson wrote: > This one time, at band camp, "Richard Lynch" <[EMAIL PROTECTED]> wrote: >> If you've benchmarked on YOUR hardware and have a proven savings, >> fine, post your tests and output. > > Already done in previous threads. Actually, to be pedantic,

Re: [PHP] GD to database directly

2006-07-13 Thread Kevin Waterson
This one time, at band camp, "Richard Lynch" <[EMAIL PROTECTED]> wrote: > If you've benchmarked on YOUR hardware and have a proven savings, > fine, post your tests and output. Already done in previous threads. nowhere do I say the db is faster than file system. Just that various methods of db

Re: [PHP] GD to database directly

2006-07-13 Thread Richard Lynch
On Thu, July 13, 2006 1:25 pm, Kevin Waterson wrote: > This one time, at band camp, "Richard Lynch" <[EMAIL PROTECTED]> wrote: > > >> It's coming FROM THE FILE SYSTEM. > > databases can be stored on RAW partitions, thus eliminating FILE > SYSTEM > overhead And are you actually doing this, or merel

Re: [PHP] GD to database directly

2006-07-13 Thread Richard Lynch
On Tue, July 11, 2006 11:38 am, Eric Butera wrote: > I don't see a problem with storing images in the DB IF they aren't > going to be continually accessed that way. For example say you have a > script that lets a user upload an image and creates a small, medium, > and large view out of it. Stick

  1   2   3   4   5   6   >