Kijin Sung
950b1c4074
Don't use imagedestroy() in PHP 8.0 or higher
2025-11-17 09:41:47 +09:00
Kijin Sung
2eaf869eba
Improve calculation of GD memory usage to support larger images
2025-11-13 22:18:31 +09:00
Kijin Sung
f3494e8a11
Fix failure to convert palette-based PNG to WebP #2608
2025-10-22 15:21:36 +09:00
Kijin Sung
32cde33701
Fix warning when image info doesn't contain channels
2025-06-01 18:54:37 +09:00
Kijin Sung
7af63ffde7
Return false in most legacy file manipulation methods if path is empty
2024-05-03 23:26:25 +09:00
Kijin Sung
13e8445309
Fix fatal error when trying to resize animated WebP using GD
2024-03-19 22:15:13 +09:00
Kijin Sung
9daa1a65cf
Deprecate old, rarely used methods of FileHandler
2023-10-04 01:33:57 +09:00
Kijin Sung
624bdec182
Fix potential type errors in FileHandler class
2023-10-04 01:31:35 +09:00
Kijin Sung
6a9902c3bb
Clean up default settings and proxy URL parsing logic
2023-04-23 14:26:19 +09:00
Kijin Sung
866d704d0d
Convert FileHandler::getRemoteResource() to use R\F\HTTP::request()
2023-04-23 00:19:03 +09:00
Kijin Sung
dfa1e93c79
Remove unnecessary header and footer from class files
...
- 아래에 이미 author 언급이 있으므로 중복되는 저작권 표기는 제거
- 클래스 하단에 불필요한 end of file 표시 제거 (파일 하나에 클래스 하나씩이므로
파일이 중간에 끊겼다면 클래스가 닫히지 않아 쉽게 알 수 있음)
2023-01-30 23:52:23 +09:00
Kijin Sung
c881e73c1d
Remove trailing whitespace in legacy class files
2023-01-17 21:07:55 +09:00
Kijin Sung
b8351bf3c8
Fix #2063 incorrect path to cacert.pem
2023-01-12 00:18:25 +09:00
Kijin Sung
07c809a9ef
Use compoer/ca-bundle instead of using our own cacert.pem
2022-12-26 00:57:50 +09:00
Kijin Sung
270f84abe9
Separate image rotation check into its own method in FileHandler
2022-12-20 19:17:43 +09:00
conory
8644227a03
움직이는 webp 이미지를 처리하지 못하면서 발생하는 오류 수정
...
TypeError #0 "imagecopyresampled(): Argument #2 ($src_image) must be of type GdImage, bool given" in modules/document/document.item.php on line 1247 (via classes/file/FileHandler.class.php on line 661)
2021-12-24 18:56:47 +09:00
Kijin Sung
ae44f26bc5
Fix fatal error in PHP 8.0 when thumbnail size is not given as integer
2021-11-22 15:01:28 +09:00
Kijin Sung
93fa7a46ce
Fix FileHandler::checkMemoryLoadImage() returning false if memory_limit is actually unlimited
2021-06-19 23:16:08 +09:00
Kijin Sung
633bc340e7
Fix #1707 support thumbnail height value of 'auto' in any type
2021-06-19 23:11:59 +09:00
Kijin Sung
1bbd6cdb5f
Force use of latest cacert.pem from Mozilla
2021-01-20 00:56:23 +09:00
Kijin Sung
06f973d227
Clean up createImageFile()
2021-01-19 21:13:49 +09:00
Kijin Sung
71d71a886c
Set 'fill' as default thumbnail method
2021-01-19 17:42:00 +09:00
Kijin Sung
175b797ee1
Support more types of image resizing
...
기존에 지원하던 crop, ratio 외에 fill, stretch, center 옵션을 추가
2021-01-19 17:23:43 +09:00
Kijin Sung
015238d75f
Remove other unnecessary function checks
2021-01-19 14:45:32 +09:00
Kijin Sung
adb6203f1b
Always use imagecreatetruecolor(), we're not using PHP 4.0 anymore :)
2021-01-19 14:42:11 +09:00
Kijin Sung
aeba5b2192
Remove meaningless imagedestroy() with undefined variable
2021-01-19 14:24:01 +09:00
Kijin Sung
1a204d8c52
Completely disable Debug logging if it is not enabled for the current user
...
관리자 또는 특정 IP에서만 디버그 기능을 사용하도록 설정된 경우,
그 밖의 요청에서는 어떤 에러메시지, 쿼리, 트리거 소요시간 등의 기록도
디버그 클래스에 저장하지 않도록 변경합니다.
워닝이 많이 발생하는 PHP 8.0에서는 20~30%의 성능 개선 효과가 있습니다.
2021-01-07 02:51:43 +09:00
Kijin Sung
417e4d15b0
More fixes to improve PHP 8.0 compatibility
2020-10-31 00:40:28 +09:00
Kijin Sung
68076b40c6
Make JPG quality in document/comment thumbnails configurable, too
2019-08-01 16:37:05 +09:00
Kijin Sung
8c242327a8
Implement auto-rotation of uploaded images
2019-08-01 15:25:12 +09:00
Kijin Sung
2b67798cab
Add option to adjust quality of JPG output
2019-08-01 03:49:16 +09:00
Kijin Sung
bf93afd7e5
Support converting BMP and WEBP images to JPG
2019-08-01 03:13:58 +09:00
Kijin Sung
bb6dc77acd
투명한 배경의 PNG 파일은 썸네일 생성시에도 투명하게 나오도록 변경
...
xpressengine/xe-core#2243
2018-06-11 23:40:33 +09:00
conory
fe1c182ecc
php7.2 Warning: count(): Parameter must be an array or an object that implements Countable
2018-03-03 21:45:45 +09:00
BJRambo
488181eaae
FileHandler::writeFile 의 리턴 주석 고침.
...
기존의 경우 FileHandler::writeFile의 주석이 void으로 반환한다고 되어잇지만 실제 리턴값은 bool과 string으로 리턴합니다. 해당 리턴값주석을 Rhymix\Framework\Storage::write에 있는 내용과 일치 시켰습니다.
2018-02-26 13:36:32 +09:00
Kijin Sung
b25ce87ae5
Import new XE functions clearStatCache() and invalidateOpcache()
...
xpressengine/xe-core 23ec7b7
라이믹스는 Storage 클래스에서 파일을 쓸 때마다 opcache와 stat cache를
자동으로 비워주고 있으므로 이런 조치가 필요하지 않으나,
XE와의 호환성을 위해 동일한 함수를 제공함. 사용을 권장하지 않음.
2017-12-09 01:38:46 +09:00
Kijin Sung
2ef85c2555
Use Storage::deleteEmptyDirectory() in FileHandler::removeEmptyDir()
2017-01-26 18:01:47 +09:00
Kijin Sung
4f15ae24ea
Display GB and TB sizes correctly in FileHandler::filesize()
2016-12-17 22:30:51 +09:00
Kijin Sung
d34ef5901f
Improve FileHandler::returnBytes() to handle a wider range of sizes
2016-12-17 20:49:10 +09:00
Kijin Sung
313e7048d5
Remove safe_mode condition from FileHandler
2016-07-03 17:59:50 +09:00
Kijin Sung
6c545fce08
Only use proxy server when the constant is defined
2016-06-18 15:07:42 +09:00
Kijin Sung
6791208ae1
Prevent function arguments from being exposed in the error log
...
Also: Produce backtrace when a regular error occurs
Also: Remove unnecessary check for DEBUG_BACKTRACE_IGNORE_ARGS
(This is not necessary in PHP > 5.3.6)
2016-06-15 17:03:32 +09:00
Kijin Sung
2d54687a52
Add slow remote requests to debug content
2016-06-08 16:15:32 +09:00
Kijin Sung
e1232cf4c1
Fix missing variable in FileHandler::getRemoteResource (thanks @bjrambo)
2016-06-03 13:36:27 +09:00
Kijin Sung
eedba6f032
Fix invalid result of FileHandler::getRealPath() on Windows
2016-05-19 21:03:44 +09:00
Kijin Sung
25965b5d72
Initial support for LESS and SCSS stylesheets
2016-05-03 21:23:38 +09:00
Kijin Sung
921d7d8568
Fix incorrect handling of path separator on Windows systems
2016-04-01 14:47:34 +09:00
Kijin Sung
9b5ee1af48
Fix #414 Unable to download file to nonexistent directory
2016-03-29 00:00:40 +09:00
conory
032f399d35
#405 이미지 메모리 체크에서 항상 false를 반환하는 문제수정
2016-03-25 19:32:48 +09:00
Kijin Sung
45b2910cee
Fix #397 error while uploading file to an existing directory
2016-03-21 16:18:31 +09:00