It is easy to use php and imagemagick to process the upload and scaling of image files. However, if you want to scale the uploaded image, you can use GD, however, it is complicated. ImageMagick is an image processing package. generally, SyntaxHighlighter is used in Linux software packages.
It is easy to use php and imagemagick to process the upload and scaling of image files. However, if you want to scale the uploaded image, you can use GD, however, it is complicated. ImageMagick is an image processing package, which is available in common Linux software packages. It includes many image processing tools, which can convert the image file format and perform various processing on the image, in which we will use its image scaling function. This is implemented through the tool convert in its software package. to call the file after convert-geometry width x High source file scaling, create an images directory under the current directory, this directory allows users to write data to the web. it is used to store uploaded images and scaled images. Below is a simple example, including image upload and processing. the test passes in RedHat6.0 + php3.0.12. Uploadform.html: file upload FORM <HTML> <HEAD> <TITLE> select file </TITLE> </HEAD> <body align = "CENTER"> <form ENCTYPE = "multipart/FORM-data "ACTION =" upload. php3 "METHOD = POST> Select image File: <input name = "image" TYPE = "file"> <input type = "submit" VALUE = "Send File"> </FORM> </BODY> </HTML> upload. php3: process uploaded image files