Re: Copy of image -> smaller

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




----- Original Message ----- From: "Chris" <dmagick@xxxxxxxxx>
To: "Gustav Wiberg" <gustav@xxxxxxxxxxxxxx>
Cc: "PHP General" <php-general@xxxxxxxxxxxxx>
Sent: Monday, May 15, 2006 9:42 AM
Subject: Re:  Copy of image -> smaller


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 missing something I think... :-)

I'm using PHP 4.x (don't know exactly the vers.nr, but I can search for it if it is of importance)

First of all *run* to this thread and add some security checks to your image uploading:

http://marc.theaimsgroup.com/?l=php-general&m=114755779206436&w=2

Secondly, what does or doesn't happen with your code?

It looks fine at first glance but do you get an error? What do you expect it to do and what does it actually do?

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Hi there!

Thanx for tip about security!

There is no errors displayed, but the file test.jpg isn't created. It isn't accessible when accessing http://www.ledins.se/test.jpg

Best regards
/Gustav Wiberg

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux