Picture 3g
I now want to do a 3G Web site, the database gets the absolute path for the picture, but the picture is too large, the phone page directly display unrealistic, Seek method, absolute address the picture beyond that can not be modified
Reply to discussion (solution)
Feel the need to "want to be a eunuch, but can not cut chicken" as difficult.
"Chicken" is still to be cut.
Is it possible to generate a small set of pictures in batches? Or is there a request to generate it again?
When uploading, save a copy of the image compression.
Do you want to determine whether the phone is in the access page or the PC in the access page? Depending on the access, display or large or small graphs.
If yes, then Baidu "PHP Judge Mobile Access"
Picture or processing, and then through the CSS control display. If you control the size of the image through CSS, it will damage the image resolution
You can use JS to reduce the proportion of images, such as the display, or use PHP to generate thumbnails
Generate a small picture for your phone
Can do, the original image of how big, just when the call, with which PHP GD library first cut into the size you want, so that the picture is added to the memory, read speed ratio to read the original picture of the file much faster, the other generation of pictures can be set when the cache time, the time will definitely meet your requirements