fix(watermark): case-insensitive Windows path check, text font size (wm_text_size), and fixed pixel size (wm_size_px)

This commit is contained in:
nertyog 2026-08-07 05:11:34 +03:00
parent be06ede1c3
commit c7eec6d352
3 changed files with 1469 additions and 98 deletions

View File

@ -2081,8 +2081,10 @@ class ControllerModuleImgOpti extends Controller {
$this->config->set('module_img_opti_wm_corner_radius', isset($this->request->post['module_img_opti_wm_corner_radius']) ? $this->request->post['module_img_opti_wm_corner_radius'] : 0);
$this->config->set('module_img_opti_wm_size_type', isset($this->request->post['module_img_opti_wm_size_type']) ? $this->request->post['module_img_opti_wm_size_type'] : 'original');
$this->config->set('module_img_opti_wm_size_percent', isset($this->request->post['module_img_opti_wm_size_percent']) ? $this->request->post['module_img_opti_wm_size_percent'] : 20);
$this->config->set('module_img_opti_wm_size_px', isset($this->request->post['module_img_opti_wm_size_px']) ? $this->request->post['module_img_opti_wm_size_px'] : 200);
$this->config->set('module_img_opti_wm_text_color', isset($this->request->post['module_img_opti_wm_text_color']) ? $this->request->post['module_img_opti_wm_text_color'] : '#ffffff');
$this->config->set('module_img_opti_wm_text_font', isset($this->request->post['module_img_opti_wm_text_font']) ? $this->request->post['module_img_opti_wm_text_font'] : '');
$this->config->set('module_img_opti_wm_text_size', isset($this->request->post['module_img_opti_wm_text_size']) ? $this->request->post['module_img_opti_wm_text_size'] : 24);
$this->config->set('module_img_opti_wm_target_product', 1);
$this->config->set('module_img_opti_wm_target_category', 0);

File diff suppressed because it is too large Load Diff