PHP retrieves the JPEG picture in MySQL and then directly reduces it and pass it to the client, reducing network transmission bu

zhaozj2021-02-16  53

$ IMGSTREAM = '; // From database $ imagecreatefromstring ($ IMGSTREAM); ImageCopyResized ($ IM, $ IM, 0, 0, 0, 0, 50, 55, Imagex ($ I), ImageSy ($ M) ); // 50 thumbnail width, 55 high header ("content-type: image / jpeg"); Imagejpeg ($ IM, ", 0.5);

BabyStudio (Ababystudio) is viable, but puts a small picture on the original image. It should be built another IM.

转载请注明原文地址:https://www.9cbs.com/read-19182.html

New Post(0)