Zubrag.com
October 23, 2018, 07:10:08 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: thumbnail generator  (Read 9040 times)
erinther
Newbie
*
Posts: 1


« on: November 19, 2006, 06:37:18 AM »

Hi,
I'll look like as a stupid, but i don't know how to use this script. I've put it on my server, but then I don't know what to do. should I write a form to send details to thumb.php or what?

Logged
zubrag
Administrator
Hero Member
*****
Posts: 788


WWW
« Reply #1 on: November 20, 2006, 12:15:59 PM »

It all depends on what you need. What do you want to accomplish with this script? Please describe your needs. Do you want to generate thumbnail from some image and save it on server? Or you want to show thumbnail of some image from your server? Need more details in order to help you.
Logged
Raz
Newbie
*
Posts: 1


« Reply #2 on: December 01, 2006, 09:32:28 AM »

hi what i want to do is,
using my image upload form when i have uploaded a image the file goes to upload folder and i want to put the images that have been uploaded into thumb.php to show the images that have been uploaded

is this possible, if so how do i go about it

thank you
Raz
Logged
zubrag
Administrator
Hero Member
*****
Posts: 788


WWW
« Reply #3 on: December 01, 2006, 04:09:22 PM »

Example.

Lets say your big images (those uploaded) are stored in /home/yoursite/public_html/images/ folder. You want to show thumbnails of those images.

Save script (i.e. thumb.php) into /home/yoursite/public_html/ folder (i.e. one folder up from where big images are).

You need to put following HTML code on your pages to show images:
Code:
<img src="http://asite.com/thumb.php?src=images/some-image-01.jpg&x=50&y=50&f=0">

Above code would show small image of the some-image-01.jpg.

Does that help?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC