convert tiff image to gif image

Ads
 

convert tiff image to gif image

View Answers

January 31, 2009 at 1:00 AM

Hi

I am sending the solved code

FileUpload.php

<html>
<body>
<form action="Upload_File.php" method="post" enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="file" id="file" />
<br />
<input type="submit" name="submit" value="Submit" />
</form>
</body>
</html>

January 31, 2009 at 1:01 AM

Upload_File.php

<?php
if (($_FILES["file"]["type"] == "image/tiff") || ($_FILES["file"]["type"] == "image/tif")) {
if ($_FILES["file"]["error"] > 0){
echo "Return Code: " . $_FILES["file"]["error"] . "<br>";
} else {
echo "File Name: " . $_FILES["file"]["name"] . "<br>";
echo "File Type: " . $_FILES["file"]["type"] . "<br>";
echo "File Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br>";
echo "Temp File: " . $_FILES["file"]["tmp_name"] . "<br>";

list($name,$extension)= split('[.]', $_FILES["file"]["name"]);

$imgname = $name.".gif";

echo "Image Extension changed: ". $imgname . "<br>";

if (file_exists("upload/" . $imgname)){
echo $imgname . " already exists. ";
} else {
move_uploaded_file($_FILES["file"]["tmp_name"], "upload/" . $imgname);
echo "Stored in: " . "upload/" . $imgname;
}
}
} else {
echo "Invalid file";
}
?>

Thanks...

Ads









Related Tutorials/Questions & Answers:
ModuleNotFoundError: No module named 'large-image-source-tiff'
ModuleNotFoundError: No module named 'large-image-source-tiff'  Hi...: No module named 'large-image-source-tiff' How to remove the ModuleNotFoundError: No module named 'large-image-source-tiff' error? Thanks   
ModuleNotFoundError: No module named 'large-image-source-tiff'
ModuleNotFoundError: No module named 'large-image-source-tiff'  Hi...: No module named 'large-image-source-tiff' How to remove the ModuleNotFoundError: No module named 'large-image-source-tiff' error? Thanks   
Advertisements
how to convert string to image in java
how to convert string to image in java  how to convert string to image in java? I know we need to convert image to a byte array at some point in my application but do not know how to convert a image into byte string. Please
How to copy text from a gif image
How to copy text from a gif image  I have some gif images that containing some important text. i want to have that text in my notepad file. i have some hundred's of gif images like that. so that i can't type the text in notepad
how to convert image file to text file?
how to convert image file to text file?  hi, can anybody tell how to convert image file to text file? plz help me
image
image  how to add the image in servlet code
Image
Image  how to insert image in xsl without using xml. the image was displayed in pdf..Please help me
Image
Image  how to insert image in xsl without using xml. the image was displayed in pdf..Please help me
Image
Image  how to insert image in xsl without using xml. the image was displayed in pdf..Please help me
image
image   Dear every body please help me how to add and retrive image and video into oracle 11g using jsp
how to re size image proportionately using java for different images like jpeg, png, gif.
how to re size image proportionately using java for different images like jpeg, png, gif.  hi, i need sample code for re size image proportionately using java for different images like jpeg, png, gif, this code for my
PDF to Image
PDF to Image  Java code to convert PDF to Image
image Processing
image Processing  Please give Me a JPEG or GIf "LOSS LESS" Image Compression and Decompression Source Code Please Help Me I don't want links Kindly help me Compression ratio not matter
image scrolling
image scrolling  A brief description of scrolling image
Image Steganography
Image Steganography  SOURCE CODE FOR IMAGE STEGANOGRAPHY
image format
image format  what are the different format available in image
image format
image format  what are the different format available in image
To scan a image encode that image in j2me
To scan a image encode that image in j2me  Hai team i am new man of j2me i have doubt to scan a image and encode the image in j2me... Please clarify that doubt... Thanks in Advance... Kumar
browse image
browse image  how to browse the image in image box by browse button and save image in database by save button by swing   import java.sql.... java.awt.image.*; import java.awt.event.*; public class UploadImage extends JFrame { Image
browse image
browse image  how to browse the image in image box by browse button and save image in database by save button by swing   import java.sql.... java.awt.image.*; import java.awt.event.*; public class UploadImage extends JFrame { Image
image in database
image in database  how to set image in database and retrieve it using servlet(java)in msaccess
Image_creation
Image_creation  how to create an image from a set of pixel values stored in array - in java
image scrambling
image scrambling  Hi frinds : i want to read image and scrambling it then saved using java any help please
Icon image
Icon image  hiii how can we set image on the icon by which we can launch the application???   hello, when you will save a image named icon.png then it is automatically show this image on the icon
image Processing
image Processing   BCIF Image Compresssion Algorithm s alossless image Compression algorithm ,Pleas Help Me weather it can support only 24 bit bmp images
Image processing
Image processing  i want a browsing program in java in which we hv a small img and we hv to browse this img on a big image so that we can find the similar type of image in big img
scrolling image
scrolling image  How create a scrolling image in java
UIButton with image
UIButton with image  Hi, How to create UIButton with image? Thanks
TextField on the Image
TextField on the Image  how we set label or textfield etc. on the Image
update image
update image  sir, I want to do update image into database
Browse an image
Browse an image  hi................ i want to browse an image from... java.awt.event.*; public class UploadImage extends JFrame { Image img; JTextField..."); PreparedStatement psmnt = connection.prepareStatement("insert into images(image) values

Ads