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
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
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
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.
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.
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
: 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
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
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
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
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
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
> -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,
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
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
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/)
35 matches
Mail list logo