imagecopyresize???????

imagecopyresize???????

am 06.04.2010 07:14:28 von Karl DeSaulniers

--Apple-Mail-2-165892687
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed

Hello List,
I am new here, and I am hoping this will be a quick and easy for
someone to help me with.
I am trying to create an upload form that lets a user upload a
product photo to the server.
In the process of this upload, I want to take the file they are
uploading and create two images to put on the server.
Both are specific sizes. A large image and a thumbnail.
I then want to throw away the file they uploaded.

My question is what is the proper way to do the uploading/resizing/
destroying?
I have been toying with imagecopyresize, but it never works.
I think I just have parameters out of order or something.

Also, I would like to put a copyright on the side.
I have been able to use imagestringup to do that,
but it covers the image I'm placing it on with
a transparent background and deletes the image.

How do you duplicate an image with transparency?
Or keep the transparency an image already has?
Most grateful for any help, pointers, tuts.

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com


--Apple-Mail-2-165892687--

Re: imagecopyresize

am 06.04.2010 10:38:55 von Karl DeSaulniers

--Apple-Mail-4-178159554
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed

Sweet deal.
Thanks Nadim. I think I got my script to work finally, but if it
proves to be a no-go.
I will definately take a look. Thanks for sharing.

Best,

Karl


On Apr 6, 2010, at 3:29 AM, Nadim Attari wrote:

Hello Karl,

Use the attached code i wrote myelf for my projects. You can upload
and create images of other sizes.

Hope it will be easy to use. Ese if you need help, come on MSN (my
email address)

Note that you will have to implement the watermark part - i'm
providing you the upload and create codes only.

regards,

nadim attari
mauritius (indian ocean)
-----------------------

Karl DeSaulniers wrote:
>
> Hello List,
> I am hoping this will be a quick and easy for someone to help me with.
> I am trying to create an upload form that lets a user upload a
> product photo to the server.
> In the process of this upload, I want to take the file they are
> uploading and create two images to put on the server.
> Both are specific sizes. A large image and a thumbnail.
> I then want to throw away the file they uploaded.
>
> My question is what is the proper way to do the uploading/resizing/
> destroying?
> I have been toying with imagecopyresize, but it never works.
> I think I just have parameters out of order or something.
>
> Also, I would like to put a copyright on the side.
> I have been able to use imagestringup to do that,
> but it covers the image im placing it on with
> a transparent background and deletes the image.
>
> How do you duplicate an image with transparency?
> Or keep the transparency an image already has?
> Most grateful for any help, pointers, tuts.
>
> Best,
>
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.com



__________ Information from ESET NOD32 Antivirus, version of virus
signature database 5002 (20100405) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


Karl DeSaulniers
Design Drumm
http://designdrumm.com


--Apple-Mail-4-178159554--

RE: Re: imagecopyresize

am 06.04.2010 11:07:51 von c.haensel

> -----Original Message-----
> From: Karl DeSaulniers [mailto:karl@designdrumm.com]
> Sent: Tuesday, April 06, 2010 10:39 AM
> To: nadim@alienworkers.com
> Cc: php-general@lists.php.net
> Subject: [PHP] Re: imagecopyresize
>
> Sweet deal.
> Thanks Nadim. I think I got my script to work finally, but if it
> proves to be a no-go.
> I will definately take a look. Thanks for sharing.
>
> Best,
>
> Karl
>
>
> On Apr 6, 2010, at 3:29 AM, Nadim Attari wrote:
>
> Hello Karl,
>
> Use the attached code i wrote myelf for my projects. You can upload
> and create images of other sizes.
>
> Hope it will be easy to use. Ese if you need help, come on MSN (my
> email address)
>
> Note that you will have to implement the watermark part - i'm
> providing you the upload and create codes only.
>
> regards,
>
> nadim attari
> mauritius (indian ocean)
> -----------------------
> ....

Hello Nadim,

would you mind sharing this script with me / us, too? I'd love to have a
look at it, if you don't mind :o)

All the best

Chris


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

Re: Re: imagecopyresize

am 06.04.2010 13:37:27 von Nadim Attari

--------------070902060202000005080304
Content-Type: multipart/alternative;
boundary="------------060307010809010609080306"


--------------060307010809010609080306
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hello Chris,

Here's a link: http://pages.intnet.mu/nadim/php/image.upload.txt

The code is minimal. Things I would like to add:

- resize transparent gifs
- resize animated gifs

Time doesn't permit me, unfortunately :-(

Regards,

Nadim Attari
-------------

Auto-Deppe C. Hänsel wrote:
>> -----Original Message-----
>> From: Karl DeSaulniers [mailto:karl@designdrumm.com]
>> Sent: Tuesday, April 06, 2010 10:39 AM
>> Subject: [PHP] Re: imagecopyresize
>>
>> Sweet deal.
>> Thanks Nadim. I think I got my script to work finally, but if it
>> proves to be a no-go.
>> I will definately take a look. Thanks for sharing.
>>
>> Best,
>>
>> Karl
>>
>> On Apr 6, 2010, at 3:29 AM, Nadim Attari wrote:
>>
>> Hello Karl,
>>
>> Use the attached code i wrote myelf for my projects. You can upload
>> and create images of other sizes.
>>
>> Hope it will be easy to use. Ese if you need help, come on MSN (my
>> email address)
>>
>> Note that you will have to implement the watermark part - i'm
>> providing you the upload and create codes only.
>>
>> regards,
>>
>> nadim attari
>> mauritius (indian ocean)
>> -----------------------
>> ....
>>
> Hello Nadim,
>
> would you mind sharing this script with me / us, too? I'd love to have a
> look at it, if you don't mind :o)
>
> All the best
>
> Chris



__________ Information from ESET NOD32 Antivirus, version of virus signature database 5003 (20100406) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


--------------060307010809010609080306
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit







Hello Chris,



Here's a link:



The code is minimal. Things I would like to add:



- resize transparent gifs

- resize animated gifs



Time doesn't permit me, unfortunately :-(



Regards,



Nadim Attari

-------------



Auto-Deppe C. Hänsel wrote:
cite="mid:00a301cad568$a3c433a0$eb4c9ae0$@haensel@auto-deppe .de"
type="cite">


-----Original Message-----
From: Karl DeSaulniers []
Sent: Tuesday, April 06, 2010 10:39 AM
Subject: [PHP] Re: imagecopyresize

Sweet deal.
Thanks Nadim. I think I got my script to work finally, but if it
proves to be a no-go.
I will definately take a look. Thanks for sharing.

Best,

Karl

On Apr 6, 2010, at 3:29 AM, Nadim Attari wrote:

Hello Karl,

Use the attached code i wrote myelf for my projects. You can upload
and create images of other sizes.

Hope it will be easy to use. Ese if you need help, come on MSN (my
email address)

Note that you will have to implement the watermark part - i'm
providing you the upload and create codes only.

regards,

nadim attari
mauritius (indian ocean)
-----------------------
.....


Hello Nadim,

would you mind sharing this script with me / us, too? I'd love to have a
look at it, if you don't mind :o)

All the best

Chris






__________ Information from ESET NOD32 Antivirus, version of virus signature database 5003 (20100406) __________



The message was checked by ESET NOD32 Antivirus.










--------------060307010809010609080306--


--------------070902060202000005080304
Content-Type: text/plain; charset=us-ascii

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

Re: Re: imagecopyresize

am 06.04.2010 15:42:15 von TedD

Hi:

Here's my code for doing watermarks:

http://webbytedd.com/b/watermark/


Cheers,

tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com

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

Re: Re: imagecopyresize

am 11.04.2010 23:25:04 von Karl DeSaulniers

Hello all.
I got my script to work, however, I am very new to php and I feel
that it is just way to bloated and a tad bit sloppy.
You can find a copy of my script here:

http://designdrumm.com/upload_images_test.php.zip

If anyone knows a way to shrink this or a way to short-hand most of
it, I would love to see it done and learn from it.
Pending if anyone has time to look into it for me.
TIA if you can.
Best,


Karl DeSaulniers
Design Drumm
http://designdrumm.com


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