No pictures can be uploaded in the background of weaving dream
I am running everything normal in this machine, but uploading the program to the server will not upload pictures.
The server is a Linux system, this machine is a Windows system, the system environment, directory permissions have been in accordance with the requirements of the 2nd step of Weaving Dream
This article describes several ways to use C # to handle pictures in the background, with the following specific code:
First: Save uploaded images directly to local
var supportedtypes = new[] {"JPG", "JPEG", "PNG", "GIF", "BMP"};
var fileName = system.web.httpcontext.current.request.files[0]. FileName;
var fileext = System.IO.Path.GetExtension (fileName). Substring (1);
First step: We find the include/uploadsafe.inc.php file according to the path of the following directoryStep Two: Open the uploadsafe.inc.php file with an editing software find the following code 45 lines-59 lines:$imtypes = array("Image/pjpeg", "Image/jpeg", "Image/gif", "Image/png","Image/xpng", "Image/wbmp", "Image/bmp");if (In_array (Strtolower (Trim (${$_key) _type '})), $imtypes)){$image _dd = @getimagesize ($$_key);if (!is_array ($image _dd)){Exit (' Upload filetype not allow! ');}}}In th
The specific learning methods are as follows:
1, this article on this proposition, to launch a detailed introduction! Here, in order for everyone to learn, only use PowerPoint itself with the function can!
The following figure, for a cropped rectangular picture, this is what we do not need!
2, if you want to achieve the effect of this proposition, please read the following carefully!
First, drag an AutoShape in the PowerPoint work area, such as the eight-side shape of this exampl
1, to solve the directly with the IMG tag PNG image display
The code is as follows
Copy Code
$ (document.body). Fixpng ({scope: ' img '});
All PNG pictures in the body can be displayed as transparent.
2, to solve the situation with transparent PNG background picture
The code is as follows
Copy Code
$ (' div '). Fixpng ();
All div
Simple to soften beautiful pictures and increase the texture of personality background
The paper introduces the soft processing method of the character picture. Process is also relatively simple, only need to use blurred image overlay can be softened processing, later can be based on their own preferences with filters, such as adding some texture, so that the screen more personality.OriginalFinal effect
1
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.