This picture bed program has functions such as automatically matching the relative size of pictures (not compressing pictures, resizing by code), automatically generating picture embedding codes, etc. The highlight is naturally the support for adding watermarks at free positions.
Supports customization of watermarks. The default position of the watermark on the page or whether to add it has corresponding setting parameters that can be adjusted. The watermark supports the addition of PNG transparent images, but does not support the addition of dynamic GIF watermarks.
Image codes are automatically generated. Due to different themes, the WordPress system actually generates different image codes, which results in a lot of code redundancy. Over time, the database will become unnecessarily large. The automatically generated HTML code is the simplest. , and the detailed information such as Alt and so on have been filled in. The Class of the picture area can be customized by setting parameters.
Image relative adaptive scaling function. Suppose your article area is 600px but we upload a 1000px image. There is no doubt that this image will overflow in width, but after we set the parameters in the background, this 1000px image will When generating the code, adjust the relative length and width of the image from the code so that the image just matches the article area, but the image is still 1000px, and there will be no compression or thumbnail generation. The width of the orange frame of the program is the width set in the background, which is very straightforward.
How to use:
Open index.php and sc.php respectively and adjust the setting parameters at the top of the file. After adjusting the parameters, save and upload to the server. If it is wordpress, you can naturally upload it to the uploadls directory. If it is other site systems, Upload to the image storage location and access sc.php. The names of both files can be changed at will. sc.php is the upload file and index.php is the browsing file. One thing to mention here is that "/" must be added to the end of the "path where the file is located".
This program belongs to the author. Please do not modify the work at will or delete the link address in the work. Using this program is your greatest encouragement to the author. Oh, by the way, more functions will be added later, please leave a message if you want any functions.