문제

Is there any way in PHP to reduce quality of a JPG image in order to reduce its file size instead of resizing its dimensions?

도움이 되었습니까?

해결책

Check this function's third argument:

http://php.net/imagejpeg

quality

quality is optional, and ranges from 0 (worst quality, smaller file) to 100 (best quality, biggest file). The default is the default IJG quality value (about 75).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top