Jump to content

areuban

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

areuban's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. and after the upload form can i make it automatically display the resized image on the same page?
  2. thanks, when i save the file, how can i make it automatically save it as the originalfile with a thumb suffix... eg. jack.jpg and after it is resized, save it as jackthumb.jpg?
  3. UPDATE: ok this is the script i have now (SimpleImage.php) then i created this :<?php if( isset($_POST['submit']) ) { include('SimpleImage.php'); $image = new SimpleImage(); $image->load($_FILES['uploaded_image']['tmp_name']); $image->resizeToWidth(150); $image->output(); } else { ?> <form action="upload.php" method="post" enctype="multipart/form-data"> <input type="file" name="uploaded_image" /> <input type="submit" name="submit" value="Upload" /> </form> How can i then output the resulting image as part of an html file? after it has resized and saved it? please help [attachment deleted by admin]
  4. <?php $w=$_GET['w']; $h=isset($_GET['h'])?$_GET['h']:$w; $x=isset($_GET['x'])?$_GET['x']:0; $y=isset($_GET['y'])?$_GET['y']:0; $filename=$_GET['src']; header('Content-type: image/jpg'); header('Content-Disposition: attachment; filename='.$src); $image = imagecreatefromjpeg($filename); $crop = imagecreatetruecolor($w,$h); imagecopy ( $crop, $image, 0, 0, $x, $y, $w, $h ); imagejpeg($crop); ?>
  5. i tried this to utlise the function. im a real novice, learning each day <img src="crop.php?x=10&y=20&w=30&h=40&src=templates/new/images/site_header.jpg">
  6. here is the script im using [attachment deleted by admin]
  7. here is the script im using [attachment deleted by admin]
  8. thanks for the prompt reply ill post the code here shortly.
  9. hi guys, im new here! first post i need to crop images from a database or directory. ive downloaded scripts and use them on their own. when i try to call the function like this <img src="crop.php?x=10&y=20&w=30&h=40&src=templates/new/images/site_header.jpg"> nothing works! what am i doing wrong?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.