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
Kijin Sung
89bd526a13
Refactor FileHandler to call Storage class internally
2016-03-18 20:54:04 +09:00
Kijin Sung
2f64a4ce8f
Fix thumbnails for external URLs with no extension
2016-01-26 11:13:57 +09:00
Kijin Sung
971a3bd115
Move remaining non-composer classes to common/libraries
2016-01-13 16:22:07 +09:00
Kijin Sung
192e81620d
Replace Pear HTTP_Request with rmccue/Requests
2016-01-13 15:17:13 +09:00
Kijin Sung
8d6068ab2b
Immediately invalidate PHP scripts from opcache if modified or deleted
2016-01-09 21:04:51 +09:00
conory
e0b8ee720f
FileHandler static
2015-12-22 19:12:17 +09:00
Kijin Sung
377e1db946
Merge #1654 Cannot redeclare class HTTP_Request by sejin7940
...
* pr/1654:
Update FileHandler.class.php
2015-10-08 15:07:08 +09:00
sejin7940
ccdca9dba3
Update FileHandler.class.php
2015-07-17 23:19:02 +09:00
Kijin Sung
1392a1d1e6
FileHandler::getRemoteResource()에서 타임아웃 설정 사용시 존재하지 않는 메소드 호출 현상 수정
2015-06-13 15:23:06 +09:00
bnu
a480454664
fix #1409 FileHandler::getRemoteResource()에서 timeout 설정이 반영되지 않는 문제 고침
2015-04-15 12:40:23 +09:00
bnu
b3149a06e0
fix fff4ef1109
2015-04-08 10:18:04 +09:00
bnu
fff4ef1109
FileHandler::returnBytes()에서 잘못된 값을 반환하는 문제 수정
2015-04-01 13:46:44 +09:00
bnu
14ffdbe5f0
#1182 보완
...
- file::_changeBytes()를 FIleHandler::returnBytes()로 대체
2015-02-04 17:42:28 +09:00