如何自动生成图片缩略图?详细要求见内
Figgo 2003-02-25 09:45:14 这是主管给我的要求
For every JPEG, GIF or BMP image file of W*H pixels uploaded to our server, create a corresponding JPEG thumbnail image file of w*h pixels that satisfies the following conditions:
1.1. Aspect ratio must be maintained, i.e. w/h = W/H.
1.2. Longest side has 108 pixels, i.e. w=108 or h=108.
1.3. If both W and H are less than 108, do not enlarge the image. Set w=W and h=H.
1.4. JPEG compression parameters should be, in Photoshop “Save for Web” terms:
1.4.1. bicubic resampling
1.4.2. 40% quality
1.4.3. non-progressive
1.4.4. optimized
1.5. The image file size should be less than 4 KB to conserve storage.