PHP forum

Image upload and preview problem

Feb 25, 2010 10:29 pm
Mark Austin

Hi, I wonder if anyone can help and advise....I have created a page
where I can upload an image to a MySQL database and all works fine.
However, I am wanting to provide an image preview feature. Basically,
for those that are familiar with the Ebay website, when you upload an
image of the item you wish to sell, it provides a thumbnail preview of
that image. Is this possible with PHP or do I need to look at other
options? Any help or advice would be greatly appreciated. Many thanks.

Feb 26, 2010 12:04 am
Doug Miller
Re: Image upload and preview problem

In article <b4d04e22-6ed9-4ef4-b3a1-89eaab72d92d@u9g2000yqb.googlegroups.com>, Mark Austin <info@markjaustin.co.uk> wrote:
>Hi, I wonder if anyone can help and advise....I have created a page
>where I can upload an image to a MySQL database and all works fine.
>However, I am wanting to provide an image preview feature. Basically,
>for those that are familiar with the Ebay website, when you upload an
>image of the item you wish to sell, it provides a thumbnail preview of
>that image. Is this possible with PHP or do I need to look at other
>options? Any help or advice would be greatly appreciated. Many thanks.

Look into the functions ImageCopyResized() and ImageCopyResampled(). The
former is faster; the latter produces much higher quality images.




Previous Thread: Php image resize
Next Thread: What makes programming effective?

Related Forum Topics
Multiple image upload and thumbnail display
hello guys, i am a newbie to PHP, and i am looking for a code that can
upload images to a file, save the path in MySQL, create a thumbnail
and finally display the images. i would be grateful if someone can
help.


Print preview in php
Hi All,

I was wondering if someone can help me with a code to preview part of
a php page
and eventually print it.
I don't want to print all of the page with images etc, just the data
within a certain area of the page.

Anyone know if this is possible?

Regards
Marco


Emulate the browser print preview feature in php
Hi all,

is there a solution to the problem stated here :-

http://stackoverflow.com/questions/953396/how-to-display-a-print-preview-of-an-html-document

the problem is as follows :-

I need to display some HTML content as it will be printed. Basically,
I want to emulate the browser...
File upload on iOS
I have a form that includes uploading an image file as a requirement. I
just noticed that this does not work on iOS devices (iPhones, etc.). Is
there a way to make this work? HTML 5 file upload, perhaps? Or would
something like that require an app?


Asynchronous FTP Upload
hi guys,

could anyone tell me how i can handle an ftp upload to several servers
at once?

I found fb_nb_put, but i dont know how to combine 5 connections with
this.


any help would be nice :)

dude


Different servers, different results with a file upload
I have a small script that works fine on the development server,
but when I try to run it for real on the production server it
does not work.

here is the html:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
...
Simulate file upload so that move_uploaded_file succeeds
Hello all,

I'm writing a few PHP scripts that have to interface with an existing
framework which internals I have no control over (but which I have the
sources).
For the problem at hand, I am calling a function that is usually called
like...
Upload xlsx /xls and save to DB using minimum memory?
Hi,

I am trying to upload file and save data to DB.
IN File only 10 row and 5 column data.(normal sample data)
File has only 24.0 KB (24,576 bytes)

I am using..reader.php and oleread.php
to upload file

But It taking More than 650MB memory (681574400 bytes)

Is any other library Or...
Weird 1200 second timeout error on file upload
Hi,

I am getting a weird error in a file upload script.

Fatal error: Maximum execution time of 1200 seconds exceeded in

The file upload code works perfectly for me and I cna upload the
file. When my boss tries it out on his computer he gets this error
after the script runs for about 2...
Refresh of photo upload page in Browser too quick
Hi group,

I'm maintaining a site for a couple of dozen users, who can upload a photo
of themselves. The page, where they can do that displays a thumbnail of
their current photo and the upload form, which consist only of a file
selector and the submit button. If no photo is present on the...