[PHP] GD2

2006-09-07 Thread Steve Marquez
Does anyone know anything about the gd2 for imagecreatetruecolor? I have written a script that uploads an image to a directory and displays a thumbnail of the image to the viewer. It works when I am using the live site, but on the testing server, on my machine, it does not work. We will be using a

Re: [PHP] GD2

2006-09-07 Thread Kyle
It could be that the PHP you are using for testing does not have GD support (whoever packaged it didn't have it compiled in). The quick way to check would be a quick phpinfo() script. That should at least give you somewhere to start. Kyle Steve Marquez wrote: > Does anyone know anything about t

Re: [PHP] GD2 gif resizing problem

2006-03-16 Thread Al
John Nichel wrote: tedd wrote: Here's my take -- gif's are no longer supported by the GD library because of patent problems. So development of how to deal with them has been moved to png. Untrue. GIF images *are* supported by the GD library. They were briefly taken out, but the support w

Re: [PHP] GD2 gif resizing problem

2006-03-16 Thread tedd
tedd wrote: Here's my take -- gif's are no longer supported by the GD library because of patent problems. So development of how to deal with them has been moved to png. Untrue. GIF images *are* supported by the GD library. They were briefly taken out, but the support was re-enabled in v2.

Re: [PHP] GD2 gif resizing problem

2006-03-16 Thread John Nichel
tedd wrote: Here's my take -- gif's are no longer supported by the GD library because of patent problems. So development of how to deal with them has been moved to png. Untrue. GIF images *are* supported by the GD library. They were briefly taken out, but the support was re-enabled in v2.

Re: [PHP] GD2 gif resizing problem

2006-03-16 Thread Al
tedd wrote: Based on the area increase; I'd expect the file size to about double, not be 4x as large. $src_img = imagecreatefromgif($filename); $dest_img = imagecreatetruecolor($new_width, $new_height); Can anyone explain or have a solution? Here's my take -- gif's are no longer supported b

Re: [PHP] GD2 gif resizing problem

2006-03-16 Thread tedd
Based on the area increase; I'd expect the file size to about double, not be 4x as large. $src_img = imagecreatefromgif($filename); $dest_img = imagecreatetruecolor($new_width, $new_height); Can anyone explain or have a solution? Here's my take -- gif's are no longer supported by the GD libr

Re: [PHP] GD2 gif resizing problem

2006-03-16 Thread Al
Jochem Maas wrote: Al wrote: I'm trying to resize GIF images and up with very large files For example: Original width = 720 New width = 980 Original height = 1008 New height = 1274 Original filesize = 80kb After resizing = 235kb Based on the area increase; I'd expect the file size to about dou

Re: [PHP] GD2 gif resizing problem

2006-03-16 Thread Jochem Maas
Al wrote: I'm trying to resize GIF images and up with very large files For example: Original width = 720 New width = 980 Original height = 1008 New height = 1274 Original filesize = 80kb After resizing = 235kb Based on the area increase; I'd expect the file size to about double, not be 4x as l

Re: [PHP] GD2 gif resizing problem

2006-03-15 Thread Al
John Nichel wrote: Al wrote: Philip Hallstrom wrote: I'm trying to resize GIF images and up with very large files For example: Original width = 720 New width = 980 Original height = 1008 New height = 1274 Original filesize = 80kb After resizing = 235kb Based on the area increase; I'd expect t

Re: [PHP] GD2 gif resizing problem

2006-03-15 Thread John Nichel
Al wrote: Philip Hallstrom wrote: I'm trying to resize GIF images and up with very large files For example: Original width = 720 New width = 980 Original height = 1008 New height = 1274 Original filesize = 80kb After resizing = 235kb Based on the area increase; I'd expect the file size to abou

Re: [PHP] GD2 gif resizing problem

2006-03-15 Thread Al
Philip Hallstrom wrote: I'm trying to resize GIF images and up with very large files For example: Original width = 720 New width = 980 Original height = 1008 New height = 1274 Original filesize = 80kb After resizing = 235kb Based on the area increase; I'd expect the file size to about double,

Re: [PHP] GD2 gif resizing problem

2006-03-15 Thread Philip Hallstrom
I'm trying to resize GIF images and up with very large files For example: Original width = 720 New width = 980 Original height = 1008 New height = 1274 Original filesize = 80kb After resizing = 235kb Based on the area increase; I'd expect the file size to about double, not be 4x as large. $sr

[PHP] GD2 gif resizing problem

2006-03-15 Thread Al
I'm trying to resize GIF images and up with very large files For example: Original width = 720 New width = 980 Original height = 1008 New height = 1274 Original filesize = 80kb After resizing = 235kb Based on the area increase; I'd expect the file size to about double, not be 4x as large. $src

Re: [PHP] GD2 Question

2005-11-30 Thread Jochem Maas
Ciprian Constantinescu wrote: Not efficient, because the actual size on the disk depends on the filesystem. I don't think you can find out before writing it to the disk excuse me but: 1. the OP asked for the size of the file, not the number of bytes it takes up on disk (which are eaten up in f

Re: [PHP] GD2 Question

2005-11-30 Thread Ciprian Constantinescu
Not efficient, because the actual size on the disk depends on the filesystem. I don't think you can find out before writing it to the disk "Jochem Maas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Karuna wrote: > > Hi. Is possible to calculate the filesize of image that will resu

Re: [PHP] GD2 Question

2005-11-30 Thread Jochem Maas
Karuna wrote: Hi. Is possible to calculate the filesize of image that will result from using imagejpeg without actually writing to disk? Thanks :) something like (although its not very efficient, I think): ob_start(); image_jpeg($im); // $im is an GD resource $data = ob_get_contents(); ob_en

[PHP] GD2 Question

2005-11-30 Thread Karuna
Hi. Is possible to calculate the filesize of image that will result from using imagejpeg without actually writing to disk? Thanks :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] GD2 on Linux

2005-09-07 Thread Robert Graham
Good day I am trying to get GD2 working on my Linux Box CentOS 4.0 with php4.2.2 the installation went well, but now, I can't find the gd2.so library that I need to put in /usr/lib/php4 directory. Can anyone give me some pointers on how to resolve this challange. Regards Robert -- PHP Genera

[PHP] GD2, imagecreatefromgif, imagegif, & animated gifs = first frame only?

2004-11-24 Thread Chris
My server is running PHP 5.0.2 and GD2 with full gif support. I'm having troubles with animated gifs when I use imagecreatefromgif() and imagegif(), in that I'm only getting the first frame. I could live with this if I have to, but I'd like to get animation working if possible. According t

Re: [PHP] Gd2 & Fonts

2004-07-23 Thread Jason Wong
On Friday 23 July 2004 14:37, Alexandru Boulescu wrote: > I'm a newbie to linux and I have a question related to gd2 and ttf fonts > under this operating system. > > I hava a php script that writes a text on a picture using functions like > and i don't know how and where to install ttf fonts for t

[PHP] Gd2 & Fonts

2004-07-22 Thread Alexandru Boulescu
Hi, I'm a newbie to linux and I have a question related to gd2 and ttf fonts under this operating system. I hava a php script that writes a text on a picture using functions like and i don't know how and where to install ttf fonts for this script to work. i've tried to put them in the same dir

[PHP] gd2 functions without gd2?

2004-06-25 Thread Edward Peloke
I have a small image resize function which works great on my local server as I have the gd2 library. It uses the imagecreatetruecolor function which makes the thumbnails look good, without it, they look bad. The problem is, my webhost is not going to upgrade to gd2 sois there anyway I can pul

[PHP] GD2 - doesn't show all of source image.

2004-05-11 Thread Joe Hill
Hi All There are two machines, one is running PHP 4.3.0 and the other PHP 4.1.2, both also have GD2. Both are running on Linux systems. On the 4.3.0 machine, running a simple PHP script (at bottom of email, for reference) works fine - the whole image shows, and the text is also shown. This is what

[PHP] GD2 (bundled) imagerotate

2004-04-22 Thread php chucker
Going crazy! I'm using the imagerotate function against a PNG with transparency, to overlay another image via imagecopy. The problem is the transparent area is showing as black. If I don't use imagerotate and just stick with the imagecopy, the area is transparent. Why am I losing my transpar

[PHP] [problem solved] -> Is it possible to see if a jpeg is RGB or CMYK via PHP GD2?

2004-01-09 Thread SED
: SED [mailto:[EMAIL PROTECTED] Sent: 9. janúar 2004 09:51 To: [EMAIL PROTECTED] Subject: [PHP] Is it possible to see if a jpeg is RGB or CMYK via PHP GD2? I'm allowing user to upload images to a gallery. However, some user seem to have both RGB and CMYK jpeg images. I get an error

[PHP] Is it possible to see if a jpeg is RGB or CMYK via PHP GD2?

2004-01-09 Thread SED
I'm allowing user to upload images to a gallery. However, some user seem to have both RGB and CMYK jpeg images. I get an error from ImageCreateFromJPEG when the script is creating thumbnails from a CMYK jpeg. Can I somehow see if the image is RGB or CMYK, so I know when to skip the automatic thumbn

Re: [PHP] GD2 Fonts

2003-11-28 Thread Jason Wong
On Friday 28 November 2003 15:33, Catalin Trifu wrote: > Fonts, > > I am trying to use imageloadfont($PATH_TO_FONT . '/arial.ttf'); on a > windowze > machine. It fails without any error message. > Now, the font I use is the one from the windows Fonts/ dir. > I have also installe

[PHP] GD2 Fonts

2003-11-28 Thread Catalin Trifu
Fonts, I am trying to use imageloadfont($PATH_TO_FONT . '/arial.ttf'); on a windowze machine. It fails without any error message. Now, the font I use is the one from the windows Fonts/ dir. I have also installed the freetype extension. Can anyone tell me how they do it with

Re: [PHP] GD2 makes black thumbnails

2003-07-21 Thread Marek Kilimajer
Use imagecreatetruecolor() instead of imagecreate() Jiří Němec wrote: hello everyone, i have got a question about creating thumbnails from original JPG files. users upload their own pohotos in JPG format to server, and system makes a thumbnails. these thumbnails are sometime black. probably ther

[PHP] GD2 makes black thumbnails

2003-07-18 Thread Jiří Němec
hello everyone, i have got a question about creating thumbnails from original JPG files. users upload their own pohotos in JPG format to server, and system makes a thumbnails. these thumbnails are sometime black. probably there is problem in uploaded image files, bacaues if I open and save "for w

RE: [PHP] GD2 Bundled with PHP v 4.3.2

2003-05-30 Thread Ford, Mike [LSS]
> -Original Message- > From: Dave O Keeffe [mailto:[EMAIL PROTECTED] > Sent: 29 May 2003 15:28 > > I read in the ChangeLog for v4.3.2 that GD2 is bundled with > this release. I > downloaded and installed the Windows Installer version but my sample > imagecreate code still doesn't work,

[PHP] GD2 Bundled with PHP v 4.3.2

2003-05-30 Thread Dave O Keeffe
Hi All, I read in the ChangeLog for v4.3.2 that GD2 is bundled with this release. I downloaded and installed the Windows Installer version but my sample imagecreate code still doesn't work, it reports the error 'Call to undefined function: imagecreate()'. When I uncomment the ;extension=php_g

[PHP] php & GD2

2002-03-04 Thread Duncan
Hi again, i just saw that others seem to have the same problem while trying to compile php with GD2. I saw the link to Rasmus's php & GD2 install guide and tried it that way, but still get the same error as before. In file included from gd.c:36: php_gd.h:69: warning: static declar

[PHP] GD2 and alpha channels

2001-09-03 Thread Daniel Reichenbach
Hy, i would like to use the alpha channel funtionality in GD2 to put a jpeg into a PNG (24bit) with alpha channel. As i'm a total newbie with GD, i'd love to see some examples. Can somebody shed a light on this? Greetings from Germany, Daniel -- PHP General Mailing List (http://www.php.net/)