How can i...?

See all posts Reply

How can i...? new!
by akenateb, 16 years, 2 months ago
Hello before all, i want to thak you about this work, it works great!.

My question is ive seen when you create an image it always creates a second image with reflection, how could i avoid this second image creation?

Thanks in advance.
R3g@rd$Reply
Re: How can i...? new!
by colin, 16 years, 2 months ago
I supposed you are using the test file upload.php. I have answered this question here.Reply
Re: How can i...? new!
by akenateb, 16 years, 2 months ago
Sorry but your indications are useless.

If someone want to avoid second image you [...] simply have to delete second image on upload.php.

It works fine.
Regards.Reply
Re: How can i...? new!
by colin, 16 years, 2 months ago
Please be courteous on this forum. You wouldn't have to ask your question if you had read the documentation, or had a better grasp of PHP basics.

The thread I linked to answered your question. It says: "The class creates one picture per call to the process() function."

The file upload.php is a test file. You are not supposed to use it as-is in your project. The test file creates two images from one uploaded file, for the sake of the example. Thus, it calls process() twice.

To have only one image created, simply call process() once. You can find example for this everywhere in the forum, the FAQ, and other pages.Reply
Re: How can i...? new!
by akenateb, 16 years, 2 months ago
Sorry if it seems to i wasnt courteous, it wasnt my intention.

Exactly, although im not using upload.php in my project, im using some of its code to make my project (this is why you made it, i think so), and yes if you delete second call image on this file, you will have only one image created.

Thanks for your patience.
Regards.Reply