DEV WIKI
백엔드 · 오류 메시지·상태명 확인

Returns true on success or false on failure

PHP Group 공식 원문에 표시된 Returns true on success or false on failure 항목의 문구를 확인하는 문서입니다.

빠른 답변

확인 범위
Returns true on success or false on failure 문구가 표시되면 이 문서에서 PHP Group 공식 원문의 같은 항목과 일치하는지 확인할 수 있습니다. 원문에 없는 원인이나 수정 방법은 이 문서만으로 단정하지 마십시오.
먼저 확인할 항목
현재 화면 또는 로그에서 `Returns true on success or false on failure` 문구를 확인합니다.
적용 범위
화면 또는 로그에 같은 오류 메시지·상태명이 표시된 경우
출처 확인일
2026-08-06
최종 검토
2026-08-06
관련 기술
오류·수정 제보 (새 창에서 열림)

이 문서의 범위

이 문서는 화면·로그의 오류 메시지 또는 상태명을 공식 자료와 대조하는 데 사용합니다. 이 문구만으로 실제 원인이나 변경 방법을 확정하지 않으며, 아래 관련 기술 문서에서 적용 환경을 추가로 확인해야 합니다.

현재 증상

  • 애플리케이션 오류 메시지

먼저 확인할 항목

현재 화면 또는 로그에서 `Returns true on success or false on failure` 문구를 확인합니다.

수집 원문의 발췌문과 현재 문구를 비교합니다.

피해야 할 조치

주의

  • 이 문서는 원문 문구의 일치만 확인합니다. 원문에 없는 원인이나 변경 절차를 단정하지 않습니다.

오류 메시지·상태명 확인 범위

확인 범위

이 문서는 화면 또는 로그에 표시된 Returns true on success or false on failure 문구가 PHP Group 공식 원문의 항목과 일치하는지 확인합니다.

원문 발췌

age. Parameters imageA GdImage object, returned by one of the image creation functions, such as imagecreatetruecolor(). file The path or an open stream resource (which is automatically closed after this function returns) to save the file to. If not set or null, the raw image stream will be output directly. quality quality is optional, and ranges from 0 (worst quality, smaller file) to 100 (best quality, biggest file). The default (-1) uses the default IJG quality value (about 75). Return Values Returns true on success or false on failure. CautionHowever, if libgd fails to output the image, this function returns true. Errors/Exceptions Throws a ValueError if quality is invalid. Changelog Version Description 8.4.0 Now throws a ValueError if quality is invalid. 8.0.0 image expects a GdImage instance now; previously, a valid gd resource was expected. Examples Example #1 Outputting a JPEG image to the browser The above example will output something similar to: Example #2 Saving a JPEG image to a file Example #3 Outputting the image at 75% quality to the browser Notes Note: If you want to output Progressive JPEGs, you need to set interlacing on with imageinterlace(). See Also imagepng() - Output a PNG image to either the browser or a file imagegif() - Output image to browser or file imagewbmp() - Output image to browser or file imageinterlace() - Enable or disable interlace imagetypes() - Return the image types supported by this PHP build Found A Problem? Learn How To Improve This Page • Submit a Pull Request • Report a Bug +add a note User Contributed Notes 34 notes up down 43 Ray.Paseur sometimes uses Gmail ¶15 years ago If string $filename is given and it exists, it will be overwritten. up down 36 francesco@essensys ¶17 years ago I didn't find any example like this on the Web, so I mixed pieces together.. hope this will save time to other people! Here's a complete solution to READ any image (gif jpg png) from the FILESYSTEM, SCALE it to a max width/height, SAVE the scaled image to a BLOB field keeping

확인 절차

  1. 현재 화면 또는 로그에서 Returns true on success or false on failure 문구를 확인합니다.
  2. 위 원문 발췌와 문구를 비교합니다.
  3. 문구가 일치하면 이 문서의 출처 링크에서 적용 환경과 원문 전체를 확인합니다.

주의

이 문서는 문구 식별 범위로 제한합니다. 출처가 직접 설명하지 않는 원인, 설정 변경, 권한 변경 또는 복구 절차를 이 문서만으로 실행하지 마십시오.

참고 자료

PHP: imagejpeg - Manual (새 창에서 열림)

PHP Group · 공식 자료 · 확인 범위: 공식 원문에 오류 문구와 해당 항목의 발췌문이 있습니다. · 확인일: 2026-08-06