On Mon, May 15, 2006 7:09 pm, Alberto Ferrer wrote:
> For that i recomend detect the MIME, my 2 cents:
>
> function image_get_info($image) {
> $details = array();
> $data = @getimagesize($image);
> if (is_array($data)){
> $types = array(
> '1' => 'GIF',
> '2' => 'JPEG',
> '3'
For that i recomend detect the MIME, my 2 cents:
function image_get_info($image) {
$details = array();
$data = @getimagesize($image);
if (is_array($data)){
$types = array(
'1' => 'GIF',
'2' => 'JPEG',
'3' => 'PNG',
'4' => 'SWF',
'5' => 'PSD',
'6' => 'BMP',
'7' => 'TIFF'
I'd make a wild guess that the FTP stuff isn't working...
Your biggest mistake is a total lack of error-handling...
On Mon, May 15, 2006 2:03 am, Gustav Wiberg wrote:
> Hi there!
>
> When I upload a picture from a form, then I want to create a copy with
> a
> smaller image.
> For example: I u
- Original Message -
From: "Rabin Vincent" <[EMAIL PROTECTED]>
To: "Gustav Wiberg" <[EMAIL PROTECTED]>
Cc: "PHP General"
Sent: Monday, May 15, 2006 1:35 PM
Subject: Re: [PHP] Copy of image -> smaller
On 5/15/06, Gustav Wiberg <[EMAIL
- Original Message -
From: "Chris" <[EMAIL PROTECTED]>
To: "Gustav Wiberg" <[EMAIL PROTECTED]>
Cc: "PHP General"
Sent: Monday, May 15, 2006 9:42 AM
Subject: Re: [PHP] Copy of image -> smaller
Gustav Wiberg wrote:
Hi there!
When I
On 5/15/06, Gustav Wiberg <[EMAIL PROTECTED]> wrote:
[snip]
//What should/could I do here?
//
//Set new width and height
//
$new_width = 100;
$new_height = 200;
$tmp_image=imagecreatefromjpeg($toPath . $mfileAdd);
$width = image
Gustav Wiberg wrote:
Hi there!
When I upload a picture from a form, then I want to create a copy with a
smaller image.
For example: I upload a picture with dimensions 200x150 name 4.jpg. I
also want a copy of this image but with the dimensions 100x75 pixels.
I've tried this below, but I'm mis
From: "Sascha Braun" <[EMAIL PROTECTED]>
To: "Gustav Wiberg" <[EMAIL PROTECTED]>
Sent: Monday, May 15, 2006 9:18 AM
Subject: Re: [PHP] Copy of image -> smaller
I dont have the code you need handy at the moment, but please take a look
at
imagemagick.org and th
Hi there!
When I upload a picture from a form, then I want to create a copy with a
smaller image.
For example: I upload a picture with dimensions 200x150 name 4.jpg. I also
want a copy of this image but with the dimensions 100x75 pixels. I've tried
this below, but I'm missing something I think
9 matches
Mail list logo