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

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.jpgbr/ FILE . FileDateTime: 1304086298br/ FILE . FileSize: 33464br/ FILE . FileType: 2br/ FILE . MimeType:

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 local

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

Re: [PHP] GD Watermark Question

2010-09-19 Thread Peter Lind
On 19 September 2010 16:05, tedd tedd.sperl...@gmail.com 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

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 I am

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

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

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 =

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

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 page.

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

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' ) ); readfile(

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 volantetuxs...@codeinside.it wrote: Hi to all I get a problem processing an image with GD libraries. This is my function   public function showPicture($id) {      

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 volantetuxs...@codeinside.it wrote: Hi to all I get a problem processing an image with GD libraries. This is my

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 Sheridana...@ashleysheridan.co.uk wrote: On Tue, 2009-07-14 at 13:27 -0300, Martin Scotta wrote: $immagine = $tipo($this-updir.$id.'.png'); $tipo is

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 Sheridana...@ashleysheridan.co.uk wrote: On Tue, 2009-07-14 at 13:27 -0300, Martin Scotta

Re: [PHP] [GD] Image errors

2009-07-14 Thread Martin Scotta
On Tue, Jul 14, 2009 at 1:48 PM, Ashley Sheridana...@ashleysheridan.co.uk 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

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 Sheridana...@ashleysheridan.co.uk 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(

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 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

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);

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 - 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 is

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 library

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);

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: ?php $image = smiley.png; $data = getimagesize($image);

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 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] wrote:

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: ?php // Set the content-type header(Content-type: image/png); // Create the image $im = imagecreatetruecolor(400, 30); // Create

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: ?php // Set the content-type header(Content-type: image/png); //

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: ?php // Set the content-type header(Content-type:

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 and ugly:

Re: [PHP] GD Library

2007-10-31 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

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

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

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

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:

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 img

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, 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 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 :(

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 dpi) 24

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 :( S

RE: [PHP] GD, and GD JPEG

2006-11-26 Thread Peter Lauri
-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: Hi there. I

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 your

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

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:

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 when restarting: PHP

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-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 both

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

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-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, that

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

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 back up

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, you've

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 of

Re: [PHP] GD to database directly

2006-07-13 Thread Kevin Waterson
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 Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb

Re: [PHP] GD to database directly

2006-07-13 Thread Kevin Waterson
This one time, at band camp, Richard Lynch [EMAIL PROTECTED] wrote: You really need to TEST your assumption about the DB being faster. Do you _really_ think I am speaking without testing any of this?? I once wrote an article on this very topic in PHP mag and published the benchmarks. Kevin

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 the

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 merely

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-12 Thread Jay Blanchard
[snip] How much of a performance hit? [/snip] Here is an interesting read; http://mysqldump.azundris.com/archives/36-Serving-Images-From-A-Database .html Your system receives a number of file read requests, requesting it to load a number of blocks from the disk into the mysqld process.

Re: [PHP] GD to database directly

2006-07-12 Thread Eric Butera
On 7/11/06, Adam Zey [EMAIL PROTECTED] wrote: The time taken per request, though (and that's about all we can get with a concurrency as low as 5) doesn't tell us much. We also don't know exactly what the PHP code is doing, how it does it, how your database is organized/indexed/accessed, if you

Re: [PHP] GD to database directly

2006-07-12 Thread Richard Lynch
On Tue, July 11, 2006 1:48 am, Kevin Waterson wrote: This one time, at band camp, Austin Denyer [EMAIL PROTECTED] wrote: It is generally accepted that storing things like that in a database is a Bad Thing. Much better to store the images as files and store the path in the database.

Re: [PHP] GD to database directly

2006-07-11 Thread Kevin Waterson
This one time, at band camp, Jay Blanchard [EMAIL PROTECTED] wrote: 1. Do not store images in a database, it is just a bad idea from a performance perspective (as has been covered many times heretofore). rubbish, has been proven other wise, you are quoting old wives tales Please provide

Re: [PHP] GD to database directly

2006-07-11 Thread Kevin Waterson
This one time, at band camp, Austin Denyer [EMAIL PROTECTED] wrote: It is generally accepted that storing things like that in a database is a Bad Thing. Much better to store the images as files and store the path in the database. Storing paths and databases in slower than just storing

Re: [PHP] GD to database directly

2006-07-11 Thread Kevin Waterson
This one time, at band camp, Larry Garfield [EMAIL PROTECTED] wrote: There may be other reasons you'd want to store binary data in an SQL database, but it will always be a performance hit over just passing a normal file that can be streamed right off the disk to the server's NIC. How

Re: [PHP] GD to database directly

2006-07-11 Thread Eric Butera
On 7/11/06, Kevin Waterson [EMAIL PROTECTED] wrote: How much of a performance hit? Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] GD to database directly

2006-07-11 Thread Adam Zey
Eric Butera wrote: On 7/11/06, Kevin Waterson [EMAIL PROTECTED] wrote: How much of a performance hit? Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] GD to database directly

2006-07-10 Thread Larry Garfield
On Monday 10 July 2006 09:31, Peter Lauri wrote: [snip] 1. Do not store images in a database, it is just a bad idea from a performance perspective (as has been covered many times heretofore). [/snip] Is that really the case? Is this not depending on the application? :) My application will

RE: [PHP] GD to database directly

2006-07-10 Thread Jay Blanchard
[snip] I am creating images via GD and want to save them to the database. Right now I save them to the disk and then save them to the database. Is it possible to write them directly to the database and skip the middle step where I temporary write it to the hard disk? [/snip] 1. Do not store

RE: [PHP] GD to database directly

2006-07-10 Thread Peter Lauri
[snip] 1. Do not store images in a database, it is just a bad idea from a performance perspective (as has been covered many times heretofore). [/snip] Is that really the case? Is this not depending on the application? :) My application will never grow, and I can easily just change the file

Re: [PHP] GD to database directly

2006-07-10 Thread Austin Denyer
Peter Lauri wrote: [snip] 1. Do not store images in a database, it is just a bad idea from a performance perspective (as has been covered many times heretofore). [/snip] Is that really the case? Is this not depending on the application? :) My application will never grow, and I can easily

RE: [PHP] GD problems

2006-06-23 Thread Beauford
Since I know nothing of how this works, does this actually create a physical image, and if it does I'm assuming it would be in the originating directory from where the script was run - if this is the case, I got nothing. This is a moot point now as I have done what I need without using gd, but

Re: [PHP] GD problems

2006-06-23 Thread Chris
Beauford wrote: Since I know nothing of how this works, does this actually create a physical image, and if it does I'm assuming it would be in the originating directory from where the script was run - if this is the case, I got nothing. This is a moot point now as I have done what I need

RE: [PHP] GD problems

2006-06-23 Thread Beauford
Here's something else I just noticed. When I run the script below in Windows it works fine, in Linux I get this error: Fatal error: Call to undefined function bcmod() in /usr/local/apache/htdocs/home/cap.php on line 62 This is line 62: $pos_x = bcmod($code,$size_x-60) +3; Linux is running PHP

RE: [PHP] GD problems

2006-06-23 Thread Beauford
in Linux that is required by these scripts? This is what I've been fighting with the last two weeks. Thanks for all the help. -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: June 23, 2006 2:20 AM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] GD problems Beauford

Re: [PHP] GD problems

2006-06-23 Thread chris smith
On 6/24/06, Beauford [EMAIL PROTECTED] wrote: Here's something else I just noticed. When I run the script below in Windows it works fine, in Linux I get this error: Fatal error: Call to undefined function bcmod() in /usr/local/apache/htdocs/home/cap.php on line 62 David told you about this

RE: [PHP] GD problems

2006-06-23 Thread Beauford
though. Thanks to everyone. B -Original Message- From: chris smith [mailto:[EMAIL PROTECTED] Sent: June 23, 2006 6:11 PM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] GD problems On 6/24/06, Beauford [EMAIL PROTECTED] wrote: Here's something else I just noticed. When I

Re: [PHP] GD problems

2006-06-23 Thread chris smith
On 6/24/06, Beauford [EMAIL PROTECTED] wrote: Honestly, I've never seen anything so ridiculous. How is one to know that in order to get one program to work you have to install 28 others. I'm not trying to be a smart ass here, but seriously - No where in any documentation I've read does it say I

RE: [PHP] GD problems

2006-06-22 Thread David Robley
Beauford wrote: There is something wonky with gd. I completely reinstalled Slackware today, including PHP, gd, and all the other stuff - and still nothing. I downloaded 5 separate captcha scripts and only got one to work. The code in all of them is very similar in that it creates a

RE: [PHP] GD problems

2006-06-22 Thread Richard Lynch
On Wed, June 21, 2006 1:06 pm, Beauford wrote: This is the output from ?php var_dump(gd_info()); ?. As far as I can tell, jpeg support is enabled. It also says it is if I run phpinfo(). Yet is still doesn't work. Anyone know of a way I can test this further. A small script perhaps. ?php

RE: [PHP] GD problems

2006-06-21 Thread Beauford
Support]= bool(false) } -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: June 20, 2006 8:51 PM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] GD problems Beauford wrote: After my last email I searched around some more and found the following. /Q: gd keeps

Re: [PHP] GD problems

2006-06-21 Thread Chris
Beauford wrote: This is the output from ?php var_dump(gd_info()); ?. As far as I can tell, jpeg support is enabled. It also says it is if I run phpinfo(). Yet is still doesn't work. Show us some code that doesn't work and you'll probably get some suggestions. -- Postgresql php tutorials

RE: [PHP] GD problems

2006-06-21 Thread Beauford
: June 21, 2006 8:41 PM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] GD problems Beauford wrote: This is the output from ?php var_dump(gd_info()); ?. As far as I can tell, jpeg support is enabled. It also says it is if I run phpinfo(). Yet is still doesn't work. Show us some code

Re: [PHP] GD problems

2006-06-20 Thread Chris
Beauford wrote: After my last email I searched around some more and found the following. /Q: gd keeps saying it can't find png or jpeg support. I did install libpng and libjpeg. What am I missing?/ /A: Be sure to do make install-headers for libpng and make install-lib for libjpeg, in addition

Re: [PHP] GD problems

2006-06-19 Thread Richard Lynch
On Mon, June 19, 2006 5:43 pm, Beauford wrote: I finally broke down and reinstalled PHP using the info from the site below, but GD is still not working. Phpinfo() shows it is enabled, as are the other libraries. So I'm lost as to what I am missing?

RE: [PHP] GD problems

2006-06-19 Thread Beauford
Hi again, I started again to see if I could get it to work. I first removed everything (libpng, libjpeg, zlib, and PHP). Then as before I followed the info in the link below. Now I get the following when I run make for PHP. Note also that I can not compile gd on it's own, I had to find a

Re: [PHP] GD problems

2006-06-19 Thread Chris
Beauford wrote: Hi again, I started again to see if I could get it to work. I first removed everything (libpng, libjpeg, zlib, and PHP). Then as before I followed the info in the link below. Now I get the following when I run make for PHP. Note also that I can not compile gd on it's own, I had

RE: [PHP] GD problems

2006-06-19 Thread Beauford
frustrated. Thanks again -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: June 19, 2006 9:10 PM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] GD problems Beauford wrote: Hi again, I started again to see if I could get it to work. I first removed

Re: [PHP] GD problems

2006-06-19 Thread Chris
Beauford wrote: Thanks for the reply, but what are these for then - libpng and libjpeg? No where does it say I need anything else. I have searched and searched for information on installing this and never have I seen anything about -devel packages. Even in the link I gave it says nothing about

RE: [PHP] GD problems

2006-06-19 Thread David Robley
. As you can see I'm way pass frustrated. Thanks again -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: June 19, 2006 9:10 PM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] GD problems Beauford wrote: Hi again, I started again to see if I could get

RE: [PHP] GD problems

2006-06-19 Thread Beauford
that doesn't use gd, or (shudder) move my web server to Windows. Thanks again -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: June 19, 2006 10:14 PM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] GD problems Beauford wrote: Thanks for the reply, but what

Re: [PHP] GD problems

2006-06-19 Thread Chris
Beauford wrote: What surprises me about this is that no one in the various forums, newsgroups, email lists, etc. can offer a solution. I'm sure I'm not the only one that's had this problem. I can't even get an answer from the gd forums or faq's. I offered the solution - install the header

Re: [PHP] GD

2006-06-13 Thread Tom Ray [Lists]
Beauford wrote: I'm using Slackware 10 and installed GD as an install package. I also changed some lines in the php.ini file for GD. Tom: I have no idea how this program works, all I know is that I need it for the captcha program to display the image. I wouldn't even bother otherwise.

Re: [PHP] GD

2006-06-13 Thread Richard Lynch
On windows, you just take out the ; in the line with php_gd2.dll in your php.ini file php.net has to be in the directory noted in ?php phpinfo();? And your extension_dir in php.ini has to be the directory where php_gd2.dll lives. On Mon, June 12, 2006 6:11 pm, Beauford wrote: Hi, I am trying

Re: [PHP] GD

2006-06-12 Thread Tom Ray [Lists]
Beauford wrote: Hi, I am trying to get GD working so I can use a captcha script and not having much luck. I can get it to work in Windows, but not Linux. I have seen a few comments suggesting that PHP needs to be compiled with the GD switch. Is there another way to do this? I have PHP,

Re: [PHP] GD

2006-06-12 Thread Ray Hauge
On Monday 12 June 2006 16:11, Beauford wrote: Hi, I am trying to get GD working so I can use a captcha script and not having much luck. I can get it to work in Windows, but not Linux. I have seen a few comments suggesting that PHP needs to be compiled with the GD switch. Is there another

  1   2   3   >