sunhater / kcfinder

KCFinder web file manager
http://kcfinder.sunhater.com
403 stars 207 forks source link

Kcfinder memory_limit requiered? #66

Open IniLerm opened 10 years ago

IniLerm commented 10 years ago

Does anyone know how much memory is required on the server to resize large images? I want to upload large images with kcfinder but does not work. Example: type: png width: 4230px height: 2350px size: 4.4mb resolution: 96pps

these are the values ​​that I have in phpinfo and doesn´t work ...

Directive Local Value Master Value allow_url_fopen On On allow_url_include Off Off always_populate_raw_post_data Off Off arg_separator.input & & arg_separator.output & & asp_tags Off Off auto_append_file no value no value auto_globals_jit On On auto_prepend_file no value no value browscap no value no value default_charset no value no value default_mimetype text/html text/html disable_classes no value no value disable_functions no value no value display_errors On On display_startup_errors Off Off doc_root no value no value docref_ext no value no value docref_root no value no value enable_dl On On enable_post_data_reading On On error_append_string no value no value error_log xxxxxxxxxxxxxx error_prepend_string no value no value error_reporting -1 -1 exit_on_timeout Off Off expose_php On On extension_dir /usr/lib/php5.5/extensions/no-debug-non-zts-20121212 /usr/lib/php5.5/extensions/no-debug-non-zts-20121212 file_uploads On On highlight.comment #FF8000 #FF8000 highlight.default #0000BB #0000BB highlight.html #000000 #000000 highlight.keyword #007700 #007700 highlight.string #DD0000 #DD0000 html_errors On On ignore_repeated_errors Off Off ignore_repeated_source Off Off ignore_user_abort Off Off implicit_flush Off Off include_path .:/usr/lib/php5.5 .:/usr/lib/php5.5 log_errors On On log_errors_max_len 1024 1024 mail.add_x_header Off Off mail.force_extra_parameters no value no value mail.log no value no value max_execution_time 30 30 max_file_uploads 20 20 max_input_nesting_level 64 64 max_input_time -1 -1 max_input_vars 1000 1000 memory_limit 256M 256M open_basedir no value no value output_buffering 0 0 output_handler no value no value post_max_size 100M 100M precision 14 14 realpath_cache_size 16K 16K realpath_cache_ttl 120 120 register_argc_argv On On report_memleaks On On report_zend_debug On On request_order no value no value sendmail_from no value no value sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i serialize_precision 17 17 short_open_tag On On SMTP localhost localhost smtp_port 25 25 sql.safe_mode Off Off sys_temp_dir no value no value track_errors Off Off unserialize_callback_func no value no value upload_max_filesize 30M 30M upload_tmp_dir no value no value user_dir no value no value user_ini.cache_ttl 300 300 user_ini.filename .user.ini .user.ini variables_order EGPCS EGPCS xmlrpc_error_number 0 0 xmlrpc_errors Off Off zend.detect_unicode On On zend.enable_gc On On zend.multibyte Off Off zend.script_encoding no value no value

danitxo commented 9 years ago

It depends on whether it is an image or not. When an image is uploaded, it is resized to create the thumb, which may require a much higher value than the image size.